summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--kernel/mp.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 6681b99..e4443f1 100644
--- a/README.md
+++ b/README.md
@@ -101,6 +101,9 @@ ram
0x1000
boot loader puts the kernel binary here.
+0x7000
+ entry point for APs (Application Processors).
+
0x7c00
first stage boot loader (loaded by bios) boot/mbr.asm
includes initial Global Descriptor Table!
diff --git a/kernel/mp.c b/kernel/mp.c
index d0b247d..5070b21 100644
--- a/kernel/mp.c
+++ b/kernel/mp.c
@@ -125,14 +125,14 @@ void show_mp_conf(mp_config *addr)
//*reg=(6<<8)|(1<<14)|1;
*reg=(5<<8)|(1<<14); // 101 INIT
- uint16_t *startpos=0xa000;
+ uint16_t *startpos=0x7000;
*startpos=0xfeeb;
sleep(10);
log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"STARTING proc 2");
- *reg=(6<<8)|(1<<14)|0xa; // 110 SIPI
+ *reg=(6<<8)|(1<<14)|0x7; // 110 SIPI
uint8_t *start_addr=addr;