diff options
-rw-r--r-- | sys/amd64/amd64/mp_machdep.c | 3 | ||||
-rw-r--r-- | sys/amd64/amd64/mptable.c | 3 | ||||
-rw-r--r-- | sys/amd64/include/mptable.h | 3 | ||||
-rw-r--r-- | sys/i386/i386/mp_machdep.c | 3 | ||||
-rw-r--r-- | sys/i386/i386/mptable.c | 3 | ||||
-rw-r--r-- | sys/i386/include/mptable.h | 3 | ||||
-rw-r--r-- | sys/kern/subr_smp.c | 3 |
7 files changed, 14 insertions, 7 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index bed96be..6c3abeb 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c index bed96be..6c3abeb 100644 --- a/sys/amd64/amd64/mptable.c +++ b/sys/amd64/amd64/mptable.c @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h index bed96be..6c3abeb 100644 --- a/sys/amd64/include/mptable.h +++ b/sys/amd64/include/mptable.h @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index bed96be..6c3abeb 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c index bed96be..6c3abeb 100644 --- a/sys/i386/i386/mptable.c +++ b/sys/i386/i386/mptable.c @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h index bed96be..6c3abeb 100644 --- a/sys/i386/include/mptable.h +++ b/sys/i386/include/mptable.h @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index bed96be..6c3abeb 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -464,7 +464,8 @@ init_secondary(void) gdt_segs[GPRIV_SEL].ssd_base = (int) &SMP_prvspace[myid]; gdt_segs[GPROC0_SEL].ssd_base = (int) &SMP_prvspace[myid].globaldata.gd_common_tss; - SMP_prvspace[myid].globaldata.gd_prvspace = &SMP_prvspace[myid]; + SMP_prvspace[myid].globaldata.gd_prvspace = + &SMP_prvspace[myid].globaldata; for (x = 0; x < NGDT; x++) { ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); |