Mostly cosmetic. Move various variables from .s files to .c files so that
gdb generates debug info for them.
This commit is contained in:
parent
12a18cf7f1
commit
bea02ebe6c
@ -70,9 +70,15 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
|
||||
&hw_instruction_sse, 0,
|
||||
"SIMD/MMX2 instructions available in CPU");
|
||||
|
||||
/* Must *NOT* be BSS or locore will bzero these after setting them */
|
||||
int cpu = 0; /* Are we 386, 386sx, 486, etc? */
|
||||
u_int cpu_id = 0; /* Stepping ID */
|
||||
u_int cpu_feature = 0; /* Feature flags */
|
||||
u_int cpu_high = 0; /* Highest arg to CPUID */
|
||||
#ifdef CPU_ENABLE_SSE
|
||||
u_int cpu_fxsr; /* SSE enabled */
|
||||
u_int cpu_fxsr = 0; /* SSE enabled */
|
||||
#endif
|
||||
char cpu_vendor[20] = ""; /* CPU Origin code */
|
||||
|
||||
#ifdef I486_CPU
|
||||
/*
|
||||
|
@ -123,16 +123,7 @@
|
||||
.space 0x2000 /* space for tmpstk - temporary stack */
|
||||
HIDENAME(tmpstk):
|
||||
|
||||
.globl boothowto,bootdev
|
||||
|
||||
.globl cpu,cpu_vendor,cpu_id,bootinfo
|
||||
.globl cpu_high, cpu_feature
|
||||
|
||||
cpu: .long 0 /* are we 386, 386sx, or 486 */
|
||||
cpu_id: .long 0 /* stepping ID */
|
||||
cpu_high: .long 0 /* highest arg to CPUID */
|
||||
cpu_feature: .long 0 /* features */
|
||||
cpu_vendor: .space 20 /* CPU origin code */
|
||||
.globl bootinfo
|
||||
bootinfo: .space BOOTINFO_SIZE /* bootinfo that we can handle */
|
||||
|
||||
KERNend: .long 0 /* phys addr end of kernel (just after bss) */
|
||||
|
@ -123,16 +123,7 @@
|
||||
.space 0x2000 /* space for tmpstk - temporary stack */
|
||||
HIDENAME(tmpstk):
|
||||
|
||||
.globl boothowto,bootdev
|
||||
|
||||
.globl cpu,cpu_vendor,cpu_id,bootinfo
|
||||
.globl cpu_high, cpu_feature
|
||||
|
||||
cpu: .long 0 /* are we 386, 386sx, or 486 */
|
||||
cpu_id: .long 0 /* stepping ID */
|
||||
cpu_high: .long 0 /* highest arg to CPUID */
|
||||
cpu_feature: .long 0 /* features */
|
||||
cpu_vendor: .space 20 /* CPU origin code */
|
||||
.globl bootinfo
|
||||
bootinfo: .space BOOTINFO_SIZE /* bootinfo that we can handle */
|
||||
|
||||
KERNend: .long 0 /* phys addr end of kernel (just after bss) */
|
||||
|
@ -70,9 +70,15 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
|
||||
&hw_instruction_sse, 0,
|
||||
"SIMD/MMX2 instructions available in CPU");
|
||||
|
||||
/* Must *NOT* be BSS or locore will bzero these after setting them */
|
||||
int cpu = 0; /* Are we 386, 386sx, 486, etc? */
|
||||
u_int cpu_id = 0; /* Stepping ID */
|
||||
u_int cpu_feature = 0; /* Feature flags */
|
||||
u_int cpu_high = 0; /* Highest arg to CPUID */
|
||||
#ifdef CPU_ENABLE_SSE
|
||||
u_int cpu_fxsr; /* SSE enabled */
|
||||
u_int cpu_fxsr = 0; /* SSE enabled */
|
||||
#endif
|
||||
char cpu_vendor[20] = ""; /* CPU Origin code */
|
||||
|
||||
#ifdef I486_CPU
|
||||
/*
|
||||
|
@ -123,16 +123,7 @@
|
||||
.space 0x2000 /* space for tmpstk - temporary stack */
|
||||
HIDENAME(tmpstk):
|
||||
|
||||
.globl boothowto,bootdev
|
||||
|
||||
.globl cpu,cpu_vendor,cpu_id,bootinfo
|
||||
.globl cpu_high, cpu_feature
|
||||
|
||||
cpu: .long 0 /* are we 386, 386sx, or 486 */
|
||||
cpu_id: .long 0 /* stepping ID */
|
||||
cpu_high: .long 0 /* highest arg to CPUID */
|
||||
cpu_feature: .long 0 /* features */
|
||||
cpu_vendor: .space 20 /* CPU origin code */
|
||||
.globl bootinfo
|
||||
bootinfo: .space BOOTINFO_SIZE /* bootinfo that we can handle */
|
||||
|
||||
KERNend: .long 0 /* phys addr end of kernel (just after bss) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user