Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 _C_LABEL(curproc) disappeared - have cpu_...



details:   https://anonhg.NetBSD.org/src/rev/5b9608e4c535
branches:  trunk
changeset: 537563:5b9608e4c535
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Oct 02 15:23:31 2002 +0000

description:
_C_LABEL(curproc) disappeared - have cpu_info now
(still uniprocessor only)

diffstat:

 sys/arch/i386/i386/kvm86call.s |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d47e45fb4eb8 -r 5b9608e4c535 sys/arch/i386/i386/kvm86call.s
--- a/sys/arch/i386/i386/kvm86call.s    Wed Oct 02 15:22:44 2002 +0000
+++ b/sys/arch/i386/i386/kvm86call.s    Wed Oct 02 15:23:31 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm86call.s,v 1.1 2002/07/07 12:56:34 drochner Exp $ */
+/* $NetBSD: kvm86call.s,v 1.2 2002/10/02 15:23:31 drochner Exp $ */
 
 /*-
  * Copyright (c) 1998 Jonathan Lemon
@@ -35,7 +35,7 @@
 
 #include "assym.h"
 
-__KERNEL_RCSID(0, "$NetBSD: kvm86call.s,v 1.1 2002/07/07 12:56:34 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kvm86call.s,v 1.2 2002/10/02 15:23:31 drochner Exp $");
 
        .data
        .align 4
@@ -82,7 +82,7 @@
        rep
        movsl                           /* copy frame to new stack */
 
-       movl    _C_LABEL(curproc),%ecx
+       movl    _C_LABEL(cpu_info_primary)+CPU_INFO_CURPROC,%ecx
        movl    P_ADDR(%ecx),%eax
        pushl   %eax                    /* save curpcb */
        movl    vm86pcb,%eax
@@ -161,7 +161,7 @@
        movl    $0,kvm86_incall         /* reset trapflag */
 
        movl    _C_LABEL(gdt),%eax
-       movl    _C_LABEL(curproc),%ecx
+       movl    _C_LABEL(cpu_info_primary)+CPU_INFO_CURPROC,%ecx
        movl    P_MD_TSS_SEL(%ecx),%edi
        movl    SCRTSS0, %edx
        movl    %edx, 0(%eax,%edi,1)    /* restore first word */



Home | Main Index | Thread Index | Old Index