summaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-24 14:55:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-24 14:55:38 +0200
commitcb1a760864262ad81b85ee8685e493df62894165 (patch)
tree6f56cc6d24544737a54145bea4dfec46208c8f2f /x86_64
parentb11e10e2c81c2b608176021364a36d84173358e3 (diff)
start/switch_timer: Use CPU_NUMBER
They are called from context that has gs initialized.
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/locore.S4
1 files changed, 2 insertions, 2 deletions
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 */