From: Matthew Dillon Date: Mon, 27 Mar 2017 06:40:20 +0000 (-0700) Subject: kernel - Add GD_IRESERVED access to assembly X-Git-Tag: v5.1.0~726 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/30c6fbb5c6965c273c2838b3da483b7efc1cd14e kernel - Add GD_IRESERVED access to assembly * Useful for debugging. No use-cases committed. --- diff --git a/sys/platform/pc64/x86_64/genassym.c b/sys/platform/pc64/x86_64/genassym.c index 3ae63c85d1..0ae3f04d0c 100644 --- a/sys/platform/pc64/x86_64/genassym.c +++ b/sys/platform/pc64/x86_64/genassym.c @@ -113,6 +113,7 @@ ASSYM(GD_SAMPLE_PC, offsetof(struct mdglobaldata, mi.gd_sample_pc)); ASSYM(GD_SAMPLE_SP, offsetof(struct mdglobaldata, mi.gd_sample_sp)); ASSYM(GD_CPUMASK_SIMPLE, offsetof(struct mdglobaldata, mi.gd_cpumask_simple)); ASSYM(GD_CPUMASK_OFFSET, offsetof(struct mdglobaldata, mi.gd_cpumask_offset)); +ASSYM(GD_IRESERVED, offsetof(struct mdglobaldata, mi.gd_ireserved[0])); ASSYM(PCB_CR3, offsetof(struct pcb, pcb_cr3)); ASSYM(PCB_R15, offsetof(struct pcb, pcb_r15)); diff --git a/sys/platform/pc64/x86_64/global.s b/sys/platform/pc64/x86_64/global.s index 1b2b9f1b31..ce612a5490 100644 --- a/sys/platform/pc64/x86_64/global.s +++ b/sys/platform/pc64/x86_64/global.s @@ -66,6 +66,9 @@ .set gd_fpu_lock, globaldata + GD_FPU_LOCK .set gd_savefpu, globaldata + GD_SAVEFPU + .globl gd_ireserved + .set gd_ireserved, globaldata + GD_IRESERVED + /* * The BSP version of these get setup in locore.s and pmap.c, while * the AP versions are setup in mp_machdep.c.