summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-13 21:38:48 +0000
committerbde <bde@FreeBSD.org>2002-02-13 21:38:48 +0000
commit94db1ca69376f242300dd5b2bec4be1140ced5d8 (patch)
tree9461527199a07463300cb1b68b5cdd599b0ca5ec /sys/amd64
parent0b1af429c60bbc107db458c1587e98ce1fd6cb92 (diff)
downloadFreeBSD-src-94db1ca69376f242300dd5b2bec4be1140ced5d8.zip
FreeBSD-src-94db1ca69376f242300dd5b2bec4be1140ced5d8.tar.gz
Don't confuse a struct with its first member. This fixes:
./@/i386/i386/machdep.c: In function `init386': ./@/i386/i386/machdep.c:1700: warning: assignment from incompatible pointer type
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index acb555c..c0ce595 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1697,7 +1697,7 @@ init386(first)
gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1);
gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1);
#ifdef SMP
- pc = &SMP_prvspace[0];
+ pc = &SMP_prvspace[0].pcpu;
gdt_segs[GPRIV_SEL].ssd_limit =
atop(sizeof(struct privatespace) - 1);
#else
OpenPOWER on IntegriCloud