| version 1.83, 2009/02/13 22:41:02 |
version 1.84, 2009/03/08 16:03:31 |
|
|
| |
|
| |
|
| /*- |
/*- |
| * Copyright (c) 1998, 2000, 2004, 2006, 2007 The NetBSD Foundation, Inc. |
* Copyright (c) 1998, 2000, 2004, 2006, 2007, 2009 The NetBSD Foundation, Inc. |
| * All rights reserved. |
* All rights reserved. |
| * |
* |
| * This code is derived from software contributed to The NetBSD Foundation |
* This code is derived from software contributed to The NetBSD Foundation |
| * by Charles M. Hannum. |
* by Charles M. Hannum, and by Andrew Doran. |
| * |
* |
| * Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
|
|
| testl %ebx,%ebx |
testl %ebx,%ebx |
| jz 1f |
jz 1f |
| pushl $5f |
pushl $5f |
| call _C_LABEL(printf) |
call _C_LABEL(panic) |
| addl $4,%esp |
addl $4,%esp |
| #ifdef DDB |
#ifdef DDB |
| int $3 |
int $3 |
|
|
| INTRFASTEXIT |
INTRFASTEXIT |
| 3: STI(%eax) |
3: STI(%eax) |
| pushl $4f |
pushl $4f |
| call _C_LABEL(printf) |
call _C_LABEL(panic) |
| addl $4,%esp |
addl $4,%esp |
| pushl $IPL_NONE |
pushl $IPL_NONE |
| call _C_LABEL(spllower) |
call _C_LABEL(spllower) |
| addl $4,%esp |
addl $4,%esp |
| jmp .Lsyscall_checkast |
jmp .Lsyscall_checkast |
| 4: .asciz "WARNING: SPL NOT LOWERED ON SYSCALL EXIT\n" |
4: .asciz "SPL NOT LOWERED ON SYSCALL EXIT\n" |
| 5: .asciz "WARNING: SPL NOT ZERO ON SYSCALL ENTRY\n" |
5: .asciz "SPL NOT ZERO ON SYSCALL ENTRY\n" |
| #endif /* DIAGNOSTIC */ |
#endif /* DIAGNOSTIC */ |
| 9: |
9: |
| cmpl $0, CPUVAR(WANT_PMAPLOAD) |
cmpl $0, CPUVAR(WANT_PMAPLOAD) |