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:
Konstantin Belousov 2019-11-10 10:03:22 +00:00
parent d70bab39f2
commit 415d23ebfd
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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,