Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: fallen/NetBSD
base: 336347a087e4
...
head fork: fallen/NetBSD
compare: 26030153c653
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
5 sys/arch/milkymist/conf/GENERIC
View
@@ -1,5 +1,6 @@
-machine milkymist lm32
+include "arch/milkymist/conf/std.milkymist"
+options INCLUDE_CONFIG_FILE # embed config file in kernel binary
maxusers 16
options HZ=100
@@ -10,5 +11,3 @@ file-system KERNFS
file-system FDESC
config netbsd root on ? type ?
-
-mainbus0 at root
22 sys/arch/milkymist/conf/files.milkymist
View
@@ -0,0 +1,22 @@
+#
+#
+
+maxpartitions 16
+
+maxusers 2 8 64
+
+device mainbus {}
+attach mainbus at root
+
+device cpu
+attach cpu at mainbus
+
+# timers
+device timer
+attach timer at mainbus
+file arch/milkymist/dev/timer.c
+
+# serial port
+device uart: tty
+attach uart at mainbus
+file arch/milkymist/dev/uart.c uart needs-flag
2  sys/arch/milkymist/milkymist/locore.s
View
@@ -119,7 +119,7 @@ _crt0:
mv r1, r2
mvi r2, 0
mvi r3, 0
- bi main
+ bi milkymist_startup
.save_all:
addi sp, sp, -56
8 sys/arch/milkymist/milkymist/machdep.c
View
@@ -111,21 +111,21 @@ milkymist_startup(void)
memset(edata, 0, end - edata);
/* Initialize CPU ops. */
- sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7750);
+ lm32_cpu_init();
/* Console */
consinit();
/* Load memory to UVM */
physmem = atop(IOM_RAM_SIZE);
- kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end)));
+ kernend = atop(round_page(end));
uvm_page_physload(
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
VM_FREELIST_DEFAULT);
/* Initialize proc0 u-area */
- sh_proc0_init();
+ lm32_proc0_init();
/* Initialize pmap and start to address translation */
pmap_bootstrap();
@@ -166,7 +166,7 @@ cpu_startup(void)
strcpy(cpu_model, "LatticeMico32\n");
- sh_startup();
+ lm32_startup();
}
SYSCTL_SETUP(sysctl_machdep_setup, "sysctl machdep subtree setup")

No commit comments for this range

Something went wrong with that request. Please try again.