mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
This commit is contained in:
parent
8cfa8f7ec2
commit
ee831e51a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90633
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user