Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/mach/arch/powerpc/fasttraps Use per process emuld...



details:   https://anonhg.NetBSD.org/src/rev/e440153b55d4
branches:  trunk
changeset: 542265:e440153b55d4
user:      manu <manu%NetBSD.org@localhost>
date:      Fri Jan 24 22:35:43 2003 +0000

description:
Use per process emuldata for the thread id for now, but this will change
shortly. This makes hello world working again.

diffstat:

 sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 9305bc78f7d6 -r e440153b55d4 sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c
--- a/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c    Fri Jan 24 22:21:43 2003 +0000
+++ b/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c    Fri Jan 24 22:35:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_fasttraps_thread.c,v 1.3 2003/01/21 04:01:10 matt Exp $ */
+/*     $NetBSD: mach_fasttraps_thread.c,v 1.4 2003/01/24 22:35:43 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_fasttraps_thread.c,v 1.3 2003/01/21 04:01:10 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_fasttraps_thread.c,v 1.4 2003/01/24 22:35:43 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -63,7 +63,7 @@
        } */ *uap = v;
        struct mach_emuldata *med;
 
-       med = (struct mach_emuldata *)l->l_emuldata;
+       med = (struct mach_emuldata *)l->l_proc->p_emuldata;
        med->med_p = SCARG(uap, p);
        
        return 0;
@@ -77,7 +77,7 @@
 {
        struct mach_emuldata *med;
 
-       med = (struct mach_emuldata *)l->l_emuldata;
+       med = (struct mach_emuldata *)l->l_proc->p_emuldata;
        *retval = (register_t)(med->med_p);
 
        return 0;



Home | Main Index | Thread Index | Old Index