amd64: change r_gdt to the local variable in hammer_time().
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
9ee6e17e68
commit
4ca9607322
@ -213,7 +213,7 @@ long realmem = 0;
|
||||
struct kva_md_info kmi;
|
||||
|
||||
static struct trapframe proc0_tf;
|
||||
struct region_descriptor r_gdt, r_idt;
|
||||
struct region_descriptor r_idt;
|
||||
|
||||
struct pcpu *__pcpu;
|
||||
struct pcpu temp_bsp_pcpu;
|
||||
@ -1609,6 +1609,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
|
||||
struct xstate_hdr *xhdr;
|
||||
u_int64_t rsp0;
|
||||
char *env;
|
||||
struct region_descriptor r_gdt;
|
||||
size_t kstack0_sz;
|
||||
int late_console;
|
||||
|
||||
|
@ -92,7 +92,7 @@ struct region_descriptor {
|
||||
extern struct user_segment_descriptor gdt[];
|
||||
extern struct soft_segment_descriptor gdt_segs[];
|
||||
extern struct gate_descriptor *idt;
|
||||
extern struct region_descriptor r_gdt, r_idt;
|
||||
extern struct region_descriptor r_idt;
|
||||
|
||||
void lgdt(struct region_descriptor *rdp);
|
||||
void sdtossd(struct user_segment_descriptor *sdp,
|
||||
|
Loading…
Reference in New Issue
Block a user