summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-09-01 11:23:29 +0200
committerMichal Idziorek <m.i@gmx.at>2014-09-01 11:23:29 +0200
commit0ff20ed46d47f5829146bce2f9923c4100519c88 (patch)
tree330abc3bcd3f15434b3104bbb6d3589f1aeedf7f
parent2efcb6caf52a73bafb3332ee5e0468ef4c1cd9a9 (diff)
Changed entry point for APs
-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;