diff options
author | jhb <jhb@FreeBSD.org> | 2003-10-30 21:42:17 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-10-30 21:42:17 +0000 |
commit | 17278d122d22bbabbd4e8ed8deb6e2f6d0fd8b33 (patch) | |
tree | ee39961d73e2fc1c5974fe3a9034c337ccdaafa1 /sys/i386/include | |
parent | d3ac88e6bd5cd4fa6098bd4ebc98c8211cebbe3b (diff) | |
download | FreeBSD-src-17278d122d22bbabbd4e8ed8deb6e2f6d0fd8b33.zip FreeBSD-src-17278d122d22bbabbd4e8ed8deb6e2f6d0fd8b33.tar.gz |
Always export r_gdt and r_idt and give them extern declarations in
machine/segments.h.
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/mptable.h | 3 | ||||
-rw-r--r-- | sys/i386/include/segments.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h index deb79a7..6810a1a 100644 --- a/sys/i386/include/mptable.h +++ b/sys/i386/include/mptable.h @@ -250,9 +250,6 @@ static struct mtx ap_boot_mtx; /** XXX FIXME: where does this really belong, isa.h/isa.c perhaps? */ int current_postcode; -/** XXX FIXME: what system files declare these??? */ -extern struct region_descriptor r_gdt, r_idt; - int bsp_apic_ready = 0; /* flags useability of BSP apic */ int mp_naps; /* # of Applications processors */ int mp_nbusses; /* # of busses */ diff --git a/sys/i386/include/segments.h b/sys/i386/include/segments.h index 1877b07..036737c 100644 --- a/sys/i386/include/segments.h +++ b/sys/i386/include/segments.h @@ -245,6 +245,7 @@ extern union descriptor gdt[]; extern struct soft_segment_descriptor gdt_segs[]; extern struct gate_descriptor *idt; extern union descriptor ldt[NLDT]; +extern struct region_descriptor r_gdt, r_idt; void lgdt(struct region_descriptor *rdp); void sdtossd(struct segment_descriptor *sdp, |