File tree Expand file tree Collapse file tree 2 files changed +110
-0
lines changed
tests/recipes/single-baremetal/configs Expand file tree Collapse file tree 2 files changed +110
-0
lines changed Original file line number Diff line number Diff line change 1+ #include <config.h>
2+
3+ VM_IMAGE (baremetal_image , XSTR (BAO_WRKDIR_IMGS /baremetal .bin ))
4+
5+ struct config config = {
6+
7+ CONFIG_HEADER
8+
9+ .vmlist_size = 1 ,
10+ .vmlist = (struct vm_config []) {
11+ {
12+ .image = {
13+ .base_addr = 0x50000000 ,
14+ .load_addr = VM_IMAGE_OFFSET (baremetal_image ),
15+ .size = VM_IMAGE_SIZE (baremetal_image )
16+ },
17+
18+ .entry = 0x50000000 ,
19+
20+ .platform = {
21+ .cpu_num = 4 ,
22+
23+ .region_num = 1 ,
24+ .regions = (struct vm_mem_region []) {
25+ {
26+ .base = 0x50000000 ,
27+ .size = 0x4000000
28+ }
29+ },
30+
31+ .dev_num = 2 ,
32+ .devs = (struct vm_dev_region []) {
33+ {
34+ /* PL011 */
35+ .pa = 0x9000000 ,
36+ .va = 0x9000000 ,
37+ .size = 0x10000 ,
38+ .interrupt_num = 1 ,
39+ .interrupts = (irqid_t []) {33 }
40+ },
41+ {
42+ /* Arch timer interrupt */
43+ .interrupt_num = 1 ,
44+ .interrupts =
45+ (irqid_t []) {27 }
46+ }
47+ },
48+
49+ .arch = {
50+ .gic = {
51+ .gicd_addr = (paddr_t ) 0x08000000 ,
52+ .gicr_addr = (paddr_t ) 0x080A0000 ,
53+ }
54+ }
55+ },
56+ }
57+ },
58+ };
Original file line number Diff line number Diff line change 1+ #include <config.h>
2+
3+ VM_IMAGE (baremetal_image , XSTR (BAO_WRKDIR_IMGS /baremetal .bin ))
4+
5+ struct config config = {
6+
7+ CONFIG_HEADER
8+
9+ .vmlist_size = 1 ,
10+ .vmlist = (struct vm_config []) {
11+ {
12+ .image = {
13+ .base_addr = 0x80200000 ,
14+ .load_addr = VM_IMAGE_OFFSET (baremetal_image ),
15+ .size = VM_IMAGE_SIZE (baremetal_image )
16+ },
17+
18+ .entry = 0x80200000 ,
19+
20+ .platform = {
21+ .cpu_num = 4 ,
22+
23+ .region_num = 1 ,
24+ .regions = (struct vm_mem_region []) {
25+ {
26+ .base = 0x80200000 ,
27+ .size = 0x4000000
28+ }
29+ },
30+
31+ .dev_num = 1 ,
32+ .devs = (struct vm_dev_region []) {
33+ {
34+ .pa = 0x10000000 ,
35+ .va = 0x10000000 ,
36+ .size = 0x1000 ,
37+ .interrupt_num = 1 ,
38+ .interrupts = (irqid_t []) {10 }
39+ },
40+ },
41+
42+ .arch = {
43+ .irqc = {
44+ .plic = {
45+ .base = 0xc000000 ,
46+ },
47+ },
48+ },
49+ },
50+ },
51+ }
52+ };
You can’t perform that action at this time.
0 commit comments