summaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.c
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-10-05 00:55:35 +0200
committerAlmuHS <almuhs@github.com>2019-10-05 00:55:35 +0200
commita974cddce30241001bad2596ebd6edd7dd86ee6f (patch)
tree19747b8577c1003b5dedf669bd54e33c74faabc9 /i386/i386at/model_dep.c
parentd9038d6af2bebe98f41936ec812dc87a36077e38 (diff)
Revert "refactor: moved BSP's apic_id initialization to c_boot_entry"
This reverts commit b076434a3c6303d817dc839d2097bc6f308b6dea.
Diffstat (limited to 'i386/i386at/model_dep.c')
-rw-r--r--i386/i386at/model_dep.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 1cadbb2d..047567e7 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -580,7 +580,6 @@ if(ncpu == 1){
*/
void c_boot_entry(vm_offset_t bi)
{
- int apic_id;
#if ENABLE_IMMEDIATE_CONSOLE
romputc = immc_romputc;
#endif /* ENABLE_IMMEDIATE_CONSOLE */
@@ -687,15 +686,6 @@ void c_boot_entry(vm_offset_t bi)
break;
}
- if(lapic != 0){
- apic_id = lapic->apic_id.r;
-
- //update BSP machine_slot and apic2kernel
- machine_slot[0].apic_id = apic_id;
- apic2kernel[apic_id] = 0;
- }
-
-
/*
* Start the system.
*/