diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-24 15:32:38 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-24 15:32:38 +0200 |
commit | 17ca5689edbf723e4f7d410bfcc39cc869c3ed28 (patch) | |
tree | 8317c9c2b9bd6577e227c6d724d7bed5bb3d8de6 /i386 | |
parent | 9d78d30a34ae406620b5b25847fc17ed2b08949a (diff) | |
download | gnumach-17ca5689edbf723e4f7d410bfcc39cc869c3ed28.tar.gz gnumach-17ca5689edbf723e4f7d410bfcc39cc869c3ed28.tar.bz2 gnumach-17ca5689edbf723e4f7d410bfcc39cc869c3ed28.zip |
Use fewer cpu_number_slow calls
Now that gs is initialized early.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/fpu.c | 2 | ||||
-rw-r--r-- | i386/i386/pit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c index e1818683..fefe5e49 100644 --- a/i386/i386/fpu.c +++ b/i386/i386/fpu.c @@ -119,7 +119,7 @@ init_fpu(void) #else /* MACH_RING1 */ unsigned int native = 0; - if (machine_slot[cpu_number_slow()].cpu_type >= CPU_TYPE_I486) + if (machine_slot[cpu_number()].cpu_type >= CPU_TYPE_I486) native = CR0_NE; /* diff --git a/i386/i386/pit.c b/i386/i386/pit.c index 9e527fca..6c006a98 100644 --- a/i386/i386/pit.c +++ b/i386/i386/pit.c @@ -118,7 +118,7 @@ pit_mdelay(int msec) void clkstart(void) { - if (cpu_number_slow() != 0) + if (cpu_number() != 0) /* Only one PIT initialization is needed */ return; unsigned char byte; |