Grrr, don't grow the stack *up*, grown it *down* as everything else expects.

Fixes a frequent memory stomp of the bootinfo page (the kernel entry address,
no less) that occurrs when you turn the serial-debug code in the ARM 2nd-
stage bootloader.
This commit is contained in:
rafal 2008-03-08 01:50:06 +00:00
parent aa88e6d9cd
commit 6e46f6378f

View File

@ -1,4 +1,4 @@
; $NetBSD: arm.asm,v 1.6 2006/03/05 04:05:39 uwe Exp $
; $NetBSD: arm.asm,v 1.7 2008/03/08 01:50:06 rafal Exp $
;
; Copyright (c) 2001 The NetBSD Foundation, Inc.
; All rights reserved.
@ -337,7 +337,7 @@
EXPORT |colorbar|
|colorbar| PROC
stmea sp!, {r4-r7, lr}
stmfd sp!, {r4-r7, lr}
adr r4, |$FBADDR|
ldr r4, [r4]
@ -357,7 +357,7 @@
subs r7, r7, #1
bne |color_loop|
ldmea sp!, {r4-r7, pc}
ldmfd sp!, {r4-r7, pc}
|$FBADDR|
DCD 0xc0003000 ; use WindowsCE default.
ENDP ; |colorbar|
@ -465,7 +465,7 @@
ENDP ;|btputc|
|hexdump| PROC
stmea sp!, {r4-r5, lr}
stmfd sp!, {r4-r5, lr}
mov r4, r0
mov r0, #0x30
bl btputc
@ -497,7 +497,7 @@
bl btputc
mov r0, #0x0a
bl btputc
ldmea sp!, {r4-r5, pc}
ldmfd sp!, {r4-r5, pc}
ENDP ;|hexdump|
|$UARTTXADR|