diff options
author | wdenk <wdenk> | 2004-02-08 19:38:38 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-02-08 19:38:38 +0000 |
commit | f6e20fc6ca5a45316f94743d8b60dce4d9766bc8 (patch) | |
tree | cdea7c7227b937ff231d98e50e64b6fa447bacda /cpu/ixp/cpu.c | |
parent | f4863a7aec41f1f78fe93eade700b15b287a5ef7 (diff) | |
download | u-boot-imx-f6e20fc6ca5a45316f94743d8b60dce4d9766bc8.zip u-boot-imx-f6e20fc6ca5a45316f94743d8b60dce4d9766bc8.tar.gz u-boot-imx-f6e20fc6ca5a45316f94743d8b60dce4d9766bc8.tar.bz2 |
Patch by Anders Larsen, 09 Jan 2004:
ARM memory layout fixes: the abort-stack is now set up in the
correct RAM area, and the BSS is zeroed out as it should be.
Furthermore, the magic variables 'armboot_end' and 'armboot_end_data'
of the linker scripts are replaced by '__bss_start' and '_end',
resp., which is a further step to eliminate unnecessary differences
between the implementation of the CPU architectures.
Diffstat (limited to 'cpu/ixp/cpu.c')
-rw-r--r-- | cpu/ixp/cpu.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/cpu/ixp/cpu.c b/cpu/ixp/cpu.c index d12e8bd..d4fd823 100644 --- a/cpu/ixp/cpu.c +++ b/cpu/ixp/cpu.c @@ -37,22 +37,16 @@ int cpu_init (void) { /* - * setup up stack if necessary + * setup up stacks if necessary */ -/* - - FIXME: the stack is _below_ the uboot code!! - #ifdef CONFIG_USE_IRQ - IRQ_STACK_START = _armboot_end + - CONFIG_STACKSIZE + CONFIG_STACKSIZE_IRQ - 4; - FIQ_STACK_START = IRQ_STACK_START + CONFIG_STACKSIZE_FIQ; - _armboot_real_end = FIQ_STACK_START + 4; -#else - _armboot_real_end = _armboot_end + CONFIG_STACKSIZE; + DECLARE_GLOBAL_DATA_PTR; + + IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4; + FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ; #endif -*/ - pci_init(); + + pci_init(); return 0; } @@ -84,7 +78,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { extern void reset_cpu (ulong addr); - printf ("reseting ...\n"); + printf ("resetting ...\n"); udelay (50000); /* wait 50 ms */ disable_interrupts (); |