Skip to content

Commit

Permalink
fix(config): include configuration fix to baremetal IPC
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo21Costa <[email protected]>
  • Loading branch information
Diogo21Costa committed Oct 27, 2023
1 parent 62ea60e commit 2742525
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions configs/baremetal-linux-shmem.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <config.h>

VM_IMAGE(baremetal_image, XSTR(BAO_WRKDIR_IMGS/baremetal-freeRTOS-linux-setup/baremetal.bin));
VM_IMAGE(linux_image, XSTR(BAO_WRKDIR_IMGS/baremetal-freeRTOS-linux-setup/linux-shmem.bin));
VM_IMAGE(baremetal_image, XSTR(BAO_WRKDIR_IMGS/baremetal-linux-shmem-setup/baremetal.bin));
VM_IMAGE(linux_image, XSTR(BAO_WRKDIR_IMGS/baremetal-linux-shmem-setup/linux-shmem.bin));

struct config config = {

Expand Down Expand Up @@ -30,7 +30,18 @@ struct config config = {
.regions = (struct vm_mem_region[]) {
{
.base = 0x50000000,
.size = 0x4000000
.size = 0x8000000
}
},

.ipc_num = 1,
.ipcs = (struct ipc[]) {
{
.base = 0x70000000,
.size = 0x00010000,
.shmem_id = 0,
.interrupt_num = 1,
.interrupts = (irqid_t[]) {52}
}
},

Expand All @@ -40,7 +51,9 @@ struct config config = {
/* PL011 */
.pa = 0x9000000,
.va = 0x9000000,
.size = 0x10000,
.size = 0x10000,
// .interrupt_num = 1,
// .interrupts = (irqid_t[]) {33}
},
{
/* Arch timer interrupt */
Expand Down

0 comments on commit 2742525

Please sign in to comment.