diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2007-05-27 16:10:40 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2007-05-27 16:10:40 +0000 |
commit | f955750c37cc8364dc887f6b81890edc49537c6c (patch) | |
tree | 04b15bf15226bab460008b75c8a1f56a31303e33 /sys/arch/arm | |
parent | cf1cd27fe5706a55f9f3a6e9a6adc96706990372 (diff) |
shrink the kernel for code that shouldn't be used anyway, ok kettenis@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/bus_space_notimpl.S | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/sys/arch/arm/arm/bus_space_notimpl.S b/sys/arch/arm/arm/bus_space_notimpl.S index a0a51be2d47..7c26ec3048a 100644 --- a/sys/arch/arm/arm/bus_space_notimpl.S +++ b/sys/arch/arm/arm/bus_space_notimpl.S @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_space_notimpl.S,v 1.1 2004/02/01 05:09:48 drahn Exp $ */ +/* $OpenBSD: bus_space_notimpl.S,v 1.2 2007/05/27 16:10:39 drahn Exp $ */ /* $NetBSD: bus_space_notimpl.S,v 1.2 2001/09/10 02:20:19 reinoud Exp $ */ /* @@ -57,15 +57,25 @@ #define NOT_IMPL(func) \ GLOBAL(func) ; \ LABEL(func) ; \ - stmfd sp!, {r0-r3} ; \ - adr r0, LNAME(__C(func,_text)) ; \ - mov r1, sp ; \ - b _C_LABEL(panic) ; \ + adr r4, LNAME(__C(func,_text)) ; \ + b bs_notimpl_panic ; \ ; \ LLABEL(__C(func,_text)) ; \ - .asciz FTEXT(func,: args at 0x%08x\n) ; \ + .asciz __S(func) ; \ .align 0 ; +bs_notimpl_message: + .asciz __S(BUS_SPACE) "_%s: args at %p" + + .align 2 +bs_notimpl_panic: + stmfd sp!, {r0-r3} + adr r0, bs_notimpl_message + mov r1, r4 + mov r2, sp + b _C_LABEL(panic) + + /* * misc functions |