diff options
| author | Mike Smith <msmith@FreeBSD.org> | 1999-09-10 22:36:03 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 1999-09-10 22:36:03 +0000 |
| commit | a1691eacb159fbdc24fbbaafa31a55a4c88d673f (patch) | |
| tree | 052e3ef1b4193d7768a957595eb2aa1eff638a6b /sys | |
| parent | 0329a5ba95d5ad013a18ca7b62f8fe4c00736b31 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/i386/apm/apm.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index 4017d649893a..1d9e6b6ce872 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -20,7 +20,6 @@ #include "opt_devfs.h" #include "opt_vm86.h" -#include "opt_smp.h" #include <sys/param.h> #include <sys/systm.h> @@ -53,10 +52,6 @@ #include <machine/vm86.h> #endif -#ifdef SMP -#include <machine/smp.h> -#endif - static int apm_display __P((int newstate)); static int apm_int __P((u_long *eax, u_long *ebx, u_long *ecx, u_long *edx)); static void apm_resume __P((void)); @@ -127,10 +122,6 @@ static struct cdevsw apm_cdevsw = static void setup_apm_gdt(u_int code32_base, u_int code16_base, u_int data_base, u_int code32_limit, u_int code16_limit, u_int data_limit) { -#ifdef SMP - int x; -#endif - /* setup 32bit code segment */ gdt_segs[GAPMCODE32_SEL].ssd_base = code32_base; gdt_segs[GAPMCODE32_SEL].ssd_limit = code32_limit; @@ -147,14 +138,6 @@ setup_apm_gdt(u_int code32_base, u_int code16_base, u_int data_base, u_int code3 ssdtosd(gdt_segs + GAPMCODE32_SEL, &gdt[GAPMCODE32_SEL].sd); ssdtosd(gdt_segs + GAPMCODE16_SEL, &gdt[GAPMCODE16_SEL].sd); ssdtosd(gdt_segs + GAPMDATA_SEL , &gdt[GAPMDATA_SEL ].sd); - -#ifdef SMP - for (x = 1; x < NCPU; x++) { - gdt[x * NGDT + GAPMCODE32_SEL].sd = gdt[GAPMCODE32_SEL].sd; - gdt[x * NGDT + GAPMCODE16_SEL].sd = gdt[GAPMCODE16_SEL].sd; - gdt[x * NGDT + GAPMDATA_SEL ].sd = gdt[GAPMDATA_SEL ].sd; - } -#endif } /* 48bit far pointer. Do not staticize - used from apm_setup.s */ |
