Deleted Added
full compact
mp_x86.c (46703) mp_x86.c (47081)
1/*
2 * Copyright (c) 1996, by Steve Passe
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
1/*
2 * Copyright (c) 1996, by Steve Passe
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
25 * $Id: mp_machdep.c,v 1.100 1999/05/08 17:48:22 peter Exp $
26 */
27
28#include "opt_smp.h"
29#include "opt_vm86.h"
30#include "opt_cpu.h"
31#include "opt_user_ldt.h"
32
33#ifdef SMP

--- 444 unchanged lines hidden (view full) ---

478#endif
479
480 gsel_tss = GSEL(GPROC0_SEL, SEL_KPL);
481 gdt[myid * NGDT + GPROC0_SEL].sd.sd_type = SDT_SYS386TSS;
482 common_tss.tss_esp0 = 0; /* not used until after switch */
483 common_tss.tss_ss0 = GSEL(GDATA_SEL, SEL_KPL);
484 common_tss.tss_ioopt = (sizeof common_tss) << 16;
485#ifdef VM86
26 */
27
28#include "opt_smp.h"
29#include "opt_vm86.h"
30#include "opt_cpu.h"
31#include "opt_user_ldt.h"
32
33#ifdef SMP

--- 444 unchanged lines hidden (view full) ---

478#endif
479
480 gsel_tss = GSEL(GPROC0_SEL, SEL_KPL);
481 gdt[myid * NGDT + GPROC0_SEL].sd.sd_type = SDT_SYS386TSS;
482 common_tss.tss_esp0 = 0; /* not used until after switch */
483 common_tss.tss_ss0 = GSEL(GDATA_SEL, SEL_KPL);
484 common_tss.tss_ioopt = (sizeof common_tss) << 16;
485#ifdef VM86
486 common_tssd = gdt[myid * NGDT + GPROC0_SEL].sd;
486 tss_gdt = &gdt[myid * NGDT + GPROC0_SEL].sd;
487 common_tssd = *tss_gdt;
487#endif
488 ltr(gsel_tss);
489
490 load_cr0(0x8005003b); /* XXX! */
491
492 pmap_set_opt((unsigned *)PTD);
493
494 invltlb();

--- 2123 unchanged lines hidden ---
488#endif
489 ltr(gsel_tss);
490
491 load_cr0(0x8005003b); /* XXX! */
492
493 pmap_set_opt((unsigned *)PTD);
494
495 invltlb();

--- 2123 unchanged lines hidden ---