Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
5  sys/arch/milkymist/conf/GENERIC
... ...
@@ -1,5 +1,6 @@
1  
-machine milkymist lm32
  1
+include "arch/milkymist/conf/std.milkymist"
2 2
 
  3
+options INCLUDE_CONFIG_FILE # embed config file in kernel binary
3 4
 maxusers 16
4 5
 
5 6
 options HZ=100
@@ -10,5 +11,3 @@ file-system KERNFS
10 11
 file-system FDESC
11 12
 
12 13
 config netbsd root on ? type ?
13  
-
14  
-mainbus0 at root
22  sys/arch/milkymist/conf/files.milkymist
... ...
@@ -0,0 +1,22 @@
  1
+#
  2
+#
  3
+
  4
+maxpartitions 16
  5
+
  6
+maxusers 2 8 64
  7
+
  8
+device	mainbus {}
  9
+attach	mainbus at root
  10
+
  11
+device	cpu
  12
+attach	cpu at mainbus
  13
+
  14
+# timers
  15
+device	timer
  16
+attach	timer at mainbus
  17
+file	arch/milkymist/dev/timer.c
  18
+
  19
+# serial port
  20
+device	uart: tty
  21
+attach	uart at mainbus
  22
+file	arch/milkymist/dev/uart.c		uart needs-flag
2  sys/arch/milkymist/milkymist/locore.s
@@ -119,7 +119,7 @@ _crt0:
119 119
 	mv      r1, r2
120 120
 	mvi     r2, 0
121 121
 	mvi     r3, 0
122  
-	bi      main
  122
+	bi      milkymist_startup
123 123
 
124 124
 .save_all:
125 125
 	addi    sp, sp, -56
8  sys/arch/milkymist/milkymist/machdep.c
@@ -111,21 +111,21 @@ milkymist_startup(void)
111 111
 	memset(edata, 0, end - edata);
112 112
 
113 113
 	/* Initialize CPU ops. */
114  
-	sh_cpu_init(CPU_ARCH_SH4, CPU_PRODUCT_7750);
  114
+	lm32_cpu_init();
115 115
 
116 116
 	/* Console */
117 117
 	consinit();
118 118
 
119 119
 	/* Load memory to UVM */
120 120
 	physmem = atop(IOM_RAM_SIZE);
121  
-	kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end)));
  121
+	kernend = atop(round_page(end));
122 122
 	uvm_page_physload(
123 123
 		kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
124 124
 		kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),
125 125
 		VM_FREELIST_DEFAULT);
126 126
 
127 127
 	/* Initialize proc0 u-area */
128  
-	sh_proc0_init();
  128
+	lm32_proc0_init();
129 129
 
130 130
 	/* Initialize pmap and start to address translation */
131 131
 	pmap_bootstrap();
@@ -166,7 +166,7 @@ cpu_startup(void)
166 166
 
167 167
 	strcpy(cpu_model, "LatticeMico32\n");
168 168
 
169  
-	sh_startup();
  169
+	lm32_startup();
170 170
 }
171 171
 
172 172
 SYSCTL_SETUP(sysctl_machdep_setup, "sysctl machdep subtree setup")

No commit comments for this range

Something went wrong with that request. Please try again.