From e328f82d9232c1dac1dddd03b22da88c4d0dcdc5 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 6 Apr 2021 11:13:37 +0000 Subject: made gdt flush: label hidden --- kernel/cpu.c | 4 ++-- 1 file 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 -- cgit v1.3.1-1-g115d