diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1997-09-01 01:54:52 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1997-09-01 01:54:52 +0000 |
| commit | e28b96049b0acfe82f4701ca2f9130a4324ac26b (patch) | |
| tree | bca815b7877b3583da04ebd757cd77113b6416ee /sys/kern/subr_smp.c | |
| parent | a367bd9e25dc5b555151811f4b46fd24dfa8a2c7 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_smp.c')
| -rw-r--r-- | sys/kern/subr_smp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 322f0f1b3b12..1cca90d9d0fd 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.34 1997/08/31 03:05:56 smp Exp smp $ + * $Id: mp_machdep.c,v 1.49 1997/08/31 03:17:47 fsmp Exp $ */ #include "opt_smp.h" @@ -241,6 +241,10 @@ extern pt_entry_t *KPTphys; /* Virtual address of per-cpu common_tss */ extern struct i386tss common_tss; +#ifdef VM86 +extern u_int private_tss; /* flag indicating private tss */ +extern struct segment_descriptor common_tssd; +#endif /* VM86 */ /* IdlePTD per cpu */ pd_entry_t *IdlePTDS[NCPU]; @@ -408,6 +412,10 @@ init_secondary(void) common_tss.tss_esp0 = 0; /* not used until after switch */ common_tss.tss_ss0 = GSEL(GDATA_SEL, SEL_KPL); common_tss.tss_ioopt = (sizeof common_tss) << 16; +#ifdef VM86 + common_tssd = gdt[slot].sd; + private_tss = 0; +#endif /* VM86 */ ltr(gsel_tss); load_cr0(0x8005003b); /* XXX! */ |
