diff options
author | benno <benno@FreeBSD.org> | 2002-04-29 12:14:31 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-04-29 12:14:31 +0000 |
commit | 7b2f527b762ff7efbf18017fe8d715d4dc5ed89a (patch) | |
tree | 45a1ef1295e7ad8713b677cd19c22c066f8608eb /sys/powerpc/include/pcpu.h | |
parent | 2715240fe7a7238d5caa38cf8f6fb16ee0755a5c (diff) | |
download | FreeBSD-src-7b2f527b762ff7efbf18017fe8d715d4dc5ed89a.zip FreeBSD-src-7b2f527b762ff7efbf18017fe8d715d4dc5ed89a.tar.gz |
Commit of stuff that's been sitting in my tree for a while.
Highlights include:
- New low-level trap code from NetBSD. The high level code still needs a lot
of work.
- Fixes for some pmap handling in thread switching.
- The kernel will now get to attempting to jump into init in user mode. There
are some pmap/trap issues which prevent it from actually getting there though.
Obtained from: NetBSD (parts)
Diffstat (limited to 'sys/powerpc/include/pcpu.h')
-rw-r--r-- | sys/powerpc/include/pcpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h index 4d37de4..c222ee0 100644 --- a/sys/powerpc/include/pcpu.h +++ b/sys/powerpc/include/pcpu.h @@ -33,10 +33,13 @@ #ifdef _KERNEL #include <machine/cpufunc.h> +struct pmap; + #define PCPU_MD_FIELDS \ int pc_inside_intr; \ u_int32_t pc_next_asn; /* next ASN to alloc */ \ - u_int32_t pc_current_asngen /* ASN rollover check */ + u_int32_t pc_current_asngen; /* ASN rollover check */\ + struct pmap *pc_curpmap /* current pmap */ #define PCPUP ((struct pcpu *) powerpc_get_pcpup()) |