machdep.c (121228) | machdep.c (121754) |
---|---|
1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 24 unchanged lines hidden (view full) --- 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 38 */ 39 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 24 unchanged lines hidden (view full) --- 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 38 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/i386/i386/machdep.c 121228 2003-10-18 22:25:07Z njl $"); | 41__FBSDID("$FreeBSD: head/sys/i386/i386/machdep.c 121754 2003-10-30 21:42:17Z jhb $"); |
42 43#include "opt_atalk.h" 44#include "opt_compat.h" 45#include "opt_cpu.h" 46#include "opt_ddb.h" 47#include "opt_inet.h" 48#include "opt_ipx.h" 49#include "opt_isa.h" --- 1170 unchanged lines hidden (view full) --- 1220 * Initialize segments & interrupt table 1221 */ 1222 1223int _default_ldt; 1224union descriptor gdt[NGDT * MAXCPU]; /* global descriptor table */ 1225static struct gate_descriptor idt0[NIDT]; 1226struct gate_descriptor *idt = &idt0[0]; /* interrupt descriptor table */ 1227union descriptor ldt[NLDT]; /* local descriptor table */ | 42 43#include "opt_atalk.h" 44#include "opt_compat.h" 45#include "opt_cpu.h" 46#include "opt_ddb.h" 47#include "opt_inet.h" 48#include "opt_ipx.h" 49#include "opt_isa.h" --- 1170 unchanged lines hidden (view full) --- 1220 * Initialize segments & interrupt table 1221 */ 1222 1223int _default_ldt; 1224union descriptor gdt[NGDT * MAXCPU]; /* global descriptor table */ 1225static struct gate_descriptor idt0[NIDT]; 1226struct gate_descriptor *idt = &idt0[0]; /* interrupt descriptor table */ 1227union descriptor ldt[NLDT]; /* local descriptor table */ |
1228#ifdef SMP 1229/* table descriptors - used to load tables by microp */ 1230struct region_descriptor r_gdt, r_idt; 1231#endif | 1228struct region_descriptor r_gdt, r_idt; /* table descriptors */ |
1232 1233int private_tss; /* flag indicating private tss */ 1234 1235#if defined(I586_CPU) && !defined(NO_F00F_HACK) 1236extern int has_f00f_bug; 1237#endif 1238 1239static struct i386tss dblfault_tss; --- 677 unchanged lines hidden (view full) --- 1917} 1918 1919void 1920init386(first) 1921 int first; 1922{ 1923 struct gate_descriptor *gdp; 1924 int gsel_tss, metadata_missing, off, x; | 1229 1230int private_tss; /* flag indicating private tss */ 1231 1232#if defined(I586_CPU) && !defined(NO_F00F_HACK) 1233extern int has_f00f_bug; 1234#endif 1235 1236static struct i386tss dblfault_tss; --- 677 unchanged lines hidden (view full) --- 1914} 1915 1916void 1917init386(first) 1918 int first; 1919{ 1920 struct gate_descriptor *gdp; 1921 int gsel_tss, metadata_missing, off, x; |
1925#ifndef SMP 1926 /* table descriptors - used to load tables by microp */ 1927 struct region_descriptor r_gdt, r_idt; 1928#endif | |
1929 struct pcpu *pc; 1930 1931 proc0.p_uarea = proc0uarea; 1932 thread0.td_kstack = proc0kstack; 1933 thread0.td_pcb = (struct pcb *) 1934 (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; 1935 atdevbase = ISA_HOLE_START + KERNBASE; 1936 --- 842 unchanged lines hidden --- | 1922 struct pcpu *pc; 1923 1924 proc0.p_uarea = proc0uarea; 1925 thread0.td_kstack = proc0kstack; 1926 thread0.td_pcb = (struct pcb *) 1927 (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; 1928 atdevbase = ISA_HOLE_START + KERNBASE; 1929 --- 842 unchanged lines hidden --- |