Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/i386/i386/locore.S,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/i386/i386/locore.S,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.78.2.3 retrieving revision 1.81 diff -u -p -r1.78.2.3 -r1.81 --- src/sys/arch/i386/i386/locore.S 2009/04/28 07:34:08 1.78.2.3 +++ src/sys/arch/i386/i386/locore.S 2008/11/19 18:35:58 1.81 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.78.2.3 2009/04/28 07:34:08 skrll Exp $ */ +/* $NetBSD: locore.S,v 1.81 2008/11/19 18:35:58 ad Exp $ */ /* * Copyright-o-rama! @@ -71,11 +71,11 @@ /*- - * Copyright (c) 1998, 2000, 2004, 2006, 2007, 2009 The NetBSD Foundation, Inc. + * Copyright (c) 1998, 2000, 2004, 2006, 2007 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation - * by Charles M. Hannum, and by Andrew Doran. + * by Charles M. Hannum. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -134,11 +134,10 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.78.2.3 2009/04/28 07:34:08 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.81 2008/11/19 18:35:58 ad Exp $"); #include "opt_compat_oldboot.h" #include "opt_ddb.h" -#include "opt_modular.h" #include "opt_multiboot.h" #include "opt_realmem.h" #include "opt_vm86.h" @@ -1047,7 +1046,6 @@ ENTRY(cpu_switchto) .Lcopy_iobitmap: /* Copy I/O bitmap. */ - incl _C_LABEL(pmap_iobmp_evcnt)+EV_COUNT movl $(IOMAPSIZE/4),%ecx pushl %esi pushl %edi @@ -1080,10 +1078,8 @@ END(savectx) * Old call gate entry for syscall */ IDTVEC(osyscall) - cli # must be first instruction pushfl # set eflags in trap frame popl 8(%esp) - orl $PSL_I,(%esp) # re-enable ints on return to user pushl $7 # size of instruction for restart jmp syscall1 IDTVEC_END(osyscall) @@ -1098,13 +1094,12 @@ IDTVEC(syscall) syscall1: pushl $T_ASTFLT # trap # for doing ASTs INTRENTRY - STI(%eax) #ifdef DIAGNOSTIC movl CPUVAR(ILEVEL),%ebx testl %ebx,%ebx jz 1f pushl $5f - call _C_LABEL(panic) + call _C_LABEL(printf) addl $4,%esp #ifdef DDB int $3 @@ -1155,14 +1150,14 @@ syscall1: INTRFASTEXIT 3: STI(%eax) pushl $4f - call _C_LABEL(panic) + call _C_LABEL(printf) addl $4,%esp pushl $IPL_NONE call _C_LABEL(spllower) addl $4,%esp jmp .Lsyscall_checkast -4: .asciz "SPL NOT LOWERED ON SYSCALL EXIT\n" -5: .asciz "SPL NOT ZERO ON SYSCALL ENTRY\n" +4: .asciz "WARNING: SPL NOT LOWERED ON SYSCALL EXIT\n" +5: .asciz "WARNING: SPL NOT ZERO ON SYSCALL ENTRY\n" #endif /* DIAGNOSTIC */ 9: cmpl $0, CPUVAR(WANT_PMAPLOAD) @@ -1185,7 +1180,6 @@ IDTVEC(svr4_fasttrap) pushl $2 # size of instruction for restart pushl $T_ASTFLT # trap # for doing ASTs INTRENTRY - STI(%eax) pushl $RW_READER pushl $_C_LABEL(svr4_fasttrap_lock) call _C_LABEL(rw_enter) @@ -1278,7 +1272,7 @@ ENTRY(sse2_idlezero_page) xorl %eax, %eax .align 16 1: - testl $RESCHED_KPREEMPT, CPUVAR(RESCHED) + cmpl $0, CPUVAR(RESCHED) jnz 2f movnti %eax, 0(%edx) movnti %eax, 4(%edx)