Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Add offsets in struct cpu_i...



details:   https://anonhg.NetBSD.org/src/rev/e9c787eeecf2
branches:  sommerfeld_i386mp_1
changeset: 482167:e9c787eeecf2
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sun Feb 20 17:53:26 2000 +0000

description:
Add offsets in struct cpu_info for the benefit of locore.s and similar
bottom-feeders.

diffstat:

 sys/arch/i386/i386/genassym.cf |  23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diffs (48 lines):

diff -r 5bd62070b76d -r e9c787eeecf2 sys/arch/i386/i386/genassym.cf
--- a/sys/arch/i386/i386/genassym.cf    Sun Feb 20 17:52:01 2000 +0000
+++ b/sys/arch/i386/i386/genassym.cf    Sun Feb 20 17:53:26 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.17 1999/06/17 00:12:11 thorpej Exp $
+#      $NetBSD: genassym.cf,v 1.17.10.1 2000/02/20 17:53:26 sommerfeld Exp $
 
 #
 # Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,6 +77,7 @@
 include "opt_compat_svr4.h"
 include "opt_compat_freebsd.h"
 include "opt_compat_linux.h"
+include "opt_multiprocessor.h"
 
 include <sys/param.h>
 include <sys/proc.h>
@@ -112,6 +113,10 @@
 include <machine/freebsd_machdep.h>
 endif
 
+ifdef MULTIPROCESSOR
+include <machine/cpu.h>
+endif
+
 include "isa.h"
 if NISA > 0
 include <machine/isa_machdep.h>
@@ -214,3 +219,19 @@
 define BIOSCALLREG_EDI         offsetof(struct bioscallregs, EDI)
 define BIOSCALLREG_EFLAGS      offsetof(struct bioscallregs, EFLAGS)
 endif
+
+ifdef MULTIPROCESSOR
+
+define CPU_INFO_CURPROC        offsetof(struct cpu_info, ci_curproc)
+define CPU_INFO_CURPCB         offsetof(struct cpu_info, ci_curpcb)
+define CPU_INFO_IDLE_PCB       offsetof(struct cpu_info, ci_idle_pcb)
+define CPU_INFO_LEVEL          offsetof(struct cpu_info, ci_level)
+define CPU_INFO_VENDOR         offsetof(struct cpu_info, ci_vendor[0])
+define CPU_INFO_SIGNATURE      offsetof(struct cpu_info, ci_signature)
+define CPU_INFO_FEATURES       offsetof(struct cpu_info, ci_feature_flags)
+define CPU_INFO_RESCHED        offsetof(struct cpu_info, ci_want_resched)
+define CPU_INFO_ASTPENDING     offsetof(struct cpu_info, ci_astpending)
+
+define SIZEOF_CPU_INFO         sizeof(struct cpu_info)
+
+endif



Home | Main Index | Thread Index | Old Index