aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit via Bug reports for the GNU Hurd <bug-hurd@gnu.org>2024-12-09 12:17:23 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 22:16:30 +0100
commitae3597fe2e07bae7dea9cd6278a0fcf7dbb1df7b (patch)
tree5c9e6a0bc6d03791230a56dc26ee5d05894d4207
parenta79ebde4099f4e5cd201f077793867235ac6501b (diff)
downloadgnumach-ae3597fe2e07bae7dea9cd6278a0fcf7dbb1df7b.tar.gz
gnumach-ae3597fe2e07bae7dea9cd6278a0fcf7dbb1df7b.tar.bz2
gnumach-ae3597fe2e07bae7dea9cd6278a0fcf7dbb1df7b.zip
i386/cpuboot: Simplify for legibility
The current segmentation already adds -KERNELBASE. But only when accessing the memory. Message-ID: <20241209121706.879984-2-damien@zamaudio.com>
-rw-r--r--i386/i386/cpuboot.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S
index 7e6c4770..5486a5c7 100644
--- a/i386/i386/cpuboot.S
+++ b/i386/i386/cpuboot.S
@@ -169,12 +169,13 @@ apboot_jmp_offset:
movl %ecx,%eax
movl $PC_SIZE,%ebx
mul %ebx
- addl $percpu_array - KERNELBASE, %eax
+ addl $percpu_array, %eax
/* Record our cpu number */
- movl %ecx, (PERCPU_CPU_ID + KERNELBASE)(%eax)
+ movl %ecx, (PERCPU_CPU_ID)(%eax)
/* Set up temporary percpu descriptor */
+ addl $(-KERNELBASE), %eax
movw %ax, apboot_percpu_low
shr $16, %eax
movb %al, apboot_percpu_med