2005-02-16 Yoshinori K. Okuji <okuji@enbug.org>

* grub/asmstub.c (grub_stage2): Remove the attribute `volatile'
  from doit. I hope this change is safe for all compilers.
This commit is contained in:
okuji 2005-02-16 20:45:48 +00:00
parent 041e243877
commit 257fff664f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-02-16 Yoshinori K. Okuji <okuji@enbug.org>
* grub/asmstub.c (grub_stage2): Remove the attribute `volatile'
from doit. I hope this change is safe for all compilers.
2005-02-15 Yoshinori K. Okuji <okuji@enbug.org> 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/builtins.c (install_func): If DEST_DRIVE is a hard * stage2/builtins.c (install_func): If DEST_DRIVE is a hard

View file

@ -117,7 +117,7 @@ grub_stage2 (void)
/* We need a nested function so that we get a clean stack frame, /* We need a nested function so that we get a clean stack frame,
regardless of how the code is optimized. */ regardless of how the code is optimized. */
volatile void doit (void) void doit (void)
{ {
/* Make sure our stack lives in the simulated memory area. */ /* Make sure our stack lives in the simulated memory area. */
asm volatile ("movl %%esp, %0\n\tmovl %1, %%esp\n" asm volatile ("movl %%esp, %0\n\tmovl %1, %%esp\n"