2009-11-11 Till Straumann <strauman@slac.stanford.edu>

* shared/start/start.S: Align initial stack to
	CPU_STACK_ALIGNMENT.
This commit is contained in:
Till Straumann
2009-11-11 14:25:09 +00:00
parent f8427ea233
commit 131e0467d2
2 changed files with 20 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2009-11-11 Till Straumann <strauman@slac.stanford.edu>
* shared/start/start.S: Align initial stack to
CPU_STACK_ALIGNMENT.
2009-11-03 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* shared/clock/clock.c: Remove classic decrementer handler
@@ -21,6 +26,12 @@
shared/irq/openpic_i8259_irq.c: Changed exception header file
includes.
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/vme_universe.c:
Fixed compiler warnings by adding prototypes to function
declarations and moving extern declarations to global scope.
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* shared/startup/pgtbl_setup.c: Fixed compiler warnings

View File

@@ -106,11 +106,17 @@ enter_C_code:
* stack = &__rtems_end + 4096
*/
addis r9,r0, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@ha
addi r9,r9, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@l
mr r1, r9
addi r9,r9, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@l
/*
* align initial stack
* (we hope that the bootloader stack was 16-byte aligned
* or we haven't used altivec yet...)
*/
li r0, (CPU_STACK_ALIGNMENT-1)
andc r1, r9, r0
/*
* We are now in a environment that is totally independent from
* bootloader setup.
* bootloader setup.
*/
/* pass result of 'save_boot_params' to 'boot_card' in R3 */
bl boot_card