* grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-14 20:59:00 +02:00
parent 275433e642
commit b71c3faedb
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
Don't export grub_gate_a20.

View file

@ -61,9 +61,11 @@ codestart:
/* Save ieee1275 stack for future use by booter. */
mov %o6, %o1
/* Our future stack. */
sethi %hi(GRUB_KERNEL_MACHINE_STACK_SIZE - 2047), %o5
or %o5, %lo(GRUB_KERNEL_MACHINE_STACK_SIZE - 2047), %o5
sethi %hi(GRUB_KERNEL_MACHINE_STACK_SIZE), %o5
or %o5, %lo(GRUB_KERNEL_MACHINE_STACK_SIZE), %o5
add %o3, %o5, %o6
and %o6, ~0xff, %o6
sub %o6, 2047, %o6
sub %o2, 4, %o2
sub %o3, 4, %o3