aboutsummaryrefslogtreecommitdiff
path: root/i386
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 /i386
parentb11e10e2c81c2b608176021364a36d84173358e3 (diff)
downloadgnumach-cb1a760864262ad81b85ee8685e493df62894165.tar.gz
gnumach-cb1a760864262ad81b85ee8685e493df62894165.tar.bz2
gnumach-cb1a760864262ad81b85ee8685e493df62894165.zip
start/switch_timer: Use CPU_NUMBER
They are called from context that has gs initialized.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/locore.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/locore.S b/i386/i386/locore.S
index 870db785..05b3b13d 100644
--- a/i386/i386/locore.S
+++ b/i386/i386/locore.S
@@ -244,7 +244,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),%edx),%eax /* get old time stamp */
movl %ecx,CX(EXT(current_tstamp),%edx) /* set new time stamp */
@@ -262,7 +262,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),%edx) /* set initial time stamp */
movl S_ARG0,%ecx /* get timer */