From cb1a760864262ad81b85ee8685e493df62894165 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 24 Sep 2023 14:55:38 +0200 Subject: start/switch_timer: Use CPU_NUMBER They are called from context that has gs initialized. --- x86_64/locore.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x86_64') diff --git a/x86_64/locore.S b/x86_64/locore.S index d640ef73..b282da4f 100644 --- a/x86_64/locore.S +++ b/x86_64/locore.S @@ -351,7 +351,7 @@ timer_normalize: * Switch to a new timer. */ ENTRY(timer_switch) - CPU_NUMBER_NO_GS(%edx) /* get this CPU */ + CPU_NUMBER(%edx) /* get this CPU */ movl VA_ETC,%ecx /* get timer */ movl CX(EXT(current_tstamp),%rdx),%eax /* get old time stamp */ movl %ecx,CX(EXT(current_tstamp),%rdx) /* set new time stamp */ @@ -369,7 +369,7 @@ ENTRY(timer_switch) * Initialize the first timer for a CPU. */ ENTRY(start_timer) - CPU_NUMBER_NO_GS(%edx) /* get this CPU */ + CPU_NUMBER(%edx) /* get this CPU */ movl VA_ETC,%ecx /* get timer */ movl %ecx,CX(EXT(current_tstamp),%rdx) /* set initial time stamp */ movl S_ARG0,%ecx /* get timer */ -- cgit v1.2.3