equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
86 #define REG_PC REG_EIP |
86 #define REG_PC REG_EIP |
87 #define REG_FP REG_EBP |
87 #define REG_FP REG_EBP |
88 #define SPELL_REG_SP "esp" |
88 #define SPELL_REG_SP "esp" |
89 #define SPELL_REG_FP "ebp" |
89 #define SPELL_REG_FP "ebp" |
90 #endif // AMD64 |
90 #endif // AMD64 |
|
91 |
|
92 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
91 |
93 |
92 address os::current_stack_pointer() { |
94 address os::current_stack_pointer() { |
93 #ifdef SPARC_WORKS |
95 #ifdef SPARC_WORKS |
94 register void *esp; |
96 register void *esp; |
95 __asm__("mov %%"SPELL_REG_SP", %0":"=r"(esp)); |
97 __asm__("mov %%"SPELL_REG_SP", %0":"=r"(esp)); |