diff v09.c @ 52:51b437557f42

boot without disk image dir -e on other directory
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 22 Jul 2018 15:52:39 +0900
parents 7c5379eb406e
children 8d151f303bee
line wrap: on
line diff
--- a/v09.c	Sun Jul 22 05:48:04 2018 +0900
+++ b/v09.c	Sun Jul 22 15:52:39 2018 +0900
@@ -83,7 +83,31 @@
     exit(2);
  }
  long len = filesize(image);
+ /*
+  * 
+  *    0x0000-0xdfff    normal mem
+  *    0xxxxx-0xdfff    rom
+  *    0xe000-0xe100    i/o
+  *    0xe000-0xffff    rom
+  *
+  * discless boot
+  *    rom image will be copyied from 0xed00-0x1xxxx
+  *    boot copies 0x10000-0x1xxxx to os9's boot memory 
+  */
 #ifdef USE_MMU
+ /*
+  * In case of Coco, there is no ROM (switched out after boot )
+  *    0x00000-0x0fdff    normal mem
+  *    0x0fe00-0x0ffff    ram fixed address ram including io
+  *    0x10000-0x7ffff    ram (512Kb memory current implementation)
+  * it should have 2MB memory
+  *    0x10000-0xfffff    ram
+  *  >0x100000            lapround
+  *
+  * discless boot
+  *    rom image will be copyied from 0xed00-0x1xxxx
+  *    boot copies 0x10000-0x1xxxx to os9's boot memory 
+  */
  phymem = malloc(memsize + len - 0x2000);
  rommemsize = memsize + len - 0x2000;
  mem    = phymem + memsize - 0x10000 ;