-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbaremetal.c
45 lines (36 loc) · 1.11 KB
/
baremetal.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <config.h>
VM_IMAGE(baremetal_image, XSTR(BAO_WRKDIR_IMGS/baremetal-setup/baremetal.bin));
struct config config = {
CONFIG_HEADER
.vmlist_size = 1,
.vmlist = {
{
.image = VM_IMAGE_BUILTIN(baremetal_image, 0x80200000),
.entry = 0x80200000,
.platform = {
.cpu_num = 1,
.region_num = 1,
.regions = (struct vm_mem_region[]) {
{
.base = 0x80200000,
.size = 0x4000000
}
},
.dev_num = 1,
.devs = (struct vm_dev_region[]) {
{
/* 8250 */
.pa = 0x10000000,
.va = 0x10000000,
.size = 0x1000,
.interrupt_num = 1,
.interrupts = (irqid_t[]) {10}
},
},
.arch = {
.plic_base = 0xc000000,
}
},
}
},
};