summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-04-06 11:13:37 +0000
committerAda Christine <adachristine18@gmail.com>2021-04-06 11:13:37 +0000
commite328f82d9232c1dac1dddd03b22da88c4d0dcdc5 (patch)
tree770ed83014c7da96d0f028518543fbf76e151f91 /kernel
parent449188ab88b3cde24fefa52707d2e535d70a7e4a (diff)
made gdt flush: label hidden
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 3c7284c..83a264b 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -145,12 +145,12 @@ static void gdt_init(void)
// [ss] @rsp+8
// [rip] @rsp
"pushq %1\n"
- "lea .flush(%%rip), %%rax\n"
+ "lea .Lflush(%%rip), %%rax\n"
"push %%rax\n"
// far return, now we're in the code segment
// defined here.
"lretq\n"
- ".flush:\n"
+ ".Lflush:\n"
"ltr %w3\n"
"popf\n"
// dependency on pre-boot GDT is now gone