Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Panic instead of printf, same as syscall.



details:   https://anonhg.NetBSD.org/src/rev/afb33399d4b2
branches:  trunk
changeset: 967377:afb33399d4b2
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Dec 07 10:19:35 2019 +0000

description:
Panic instead of printf, same as syscall.

diffstat:

 sys/arch/amd64/amd64/amd64_trap.S |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (25 lines):

diff -r 42af9dff389c -r afb33399d4b2 sys/arch/amd64/amd64/amd64_trap.S
--- a/sys/arch/amd64/amd64/amd64_trap.S Sat Dec 07 06:26:31 2019 +0000
+++ b/sys/arch/amd64/amd64/amd64_trap.S Sat Dec 07 10:19:35 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amd64_trap.S,v 1.50 2019/11/14 16:23:52 maxv Exp $     */
+/*     $NetBSD: amd64_trap.S,v 1.51 2019/12/07 10:19:35 maxv Exp $     */
 
 /*
  * Copyright (c) 1998, 2007, 2008, 2017 The NetBSD Foundation, Inc.
@@ -694,13 +694,8 @@
        STI(si)
        movabsq $4f,%rdi
        movl    CPUVAR(ILEVEL),%esi
-       movl    %ebx,%edx
-       xorq    %rax,%rax
-       call    _C_LABEL(printf)
-       movl    %ebx,%edi
-       call    _C_LABEL(spllower)
-       jmp     .Lalltraps_checkast
-4:     .asciz  "WARNING: SPL NOT LOWERED ON TRAP EXIT %x %x\n"
+       call    _C_LABEL(panic)
+4:     .asciz  "spl not lowered on trap exit, ilevel=%x"
 #endif
 END(alltraps)
 



Home | Main Index | Thread Index | Old Index