Skip to content

Commit 69a808b

Browse files
fix: shmem after mem and 2MB multiple for baremetal/freeRTOS
1 parent 7a84bc9 commit 69a808b

File tree

17 files changed

+20
-21
lines changed

17 files changed

+20
-21
lines changed

demos/linux+freertos/configs/fvp-a-aarch32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct config config = {
101101
.ipc_num = 1,
102102
.ipcs = (struct ipc[]) {
103103
{
104-
.base = 0x70000000,
104+
.base = 0xf0000000,
105105
.size = 0x00010000,
106106
.shmem_id = 0,
107107
.interrupt_num = 1,

demos/linux+freertos/configs/fvp-a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct config config = {
101101
.ipc_num = 1,
102102
.ipcs = (struct ipc[]) {
103103
{
104-
.base = 0x70000000,
104+
.base = 0xf0000000,
105105
.size = 0x00010000,
106106
.shmem_id = 0,
107107
.interrupt_num = 1,

demos/linux+freertos/configs/fvp-r.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ struct config config = {
66
.shmemlist_size = 1,
77
.shmemlist = (struct shmem[]) {
88
[0] = {
9-
.base = 0x70000000,
109
.size = 0x00010000,
1110
}
1211
},
@@ -93,7 +92,7 @@ struct config config = {
9392
.ipc_num = 1,
9493
.ipcs = (struct ipc[]) {
9594
{
96-
.base = 0x70000000,
95+
.base = 0xf0000000,
9796
.size = 0x00010000,
9897
.shmem_id = 0,
9998
.interrupt_num = 1,

demos/linux+freertos/configs/imx8qm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct config config = {
119119
.ipc_num = 1,
120120
.ipcs = (struct ipc[]) {
121121
{
122-
.base = 0x70000000,
122+
.base = 0xf0000000,
123123
.size = 0x00010000,
124124
.shmem_id = 0,
125125
.interrupt_num = 1,

demos/linux+freertos/configs/qemu-aarch64-virt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct config config = {
9595
.ipc_num = 1,
9696
.ipcs = (struct ipc[]) {
9797
{
98-
.base = 0x70000000,
98+
.base = 0xf0000000,
9999
.size = 0x00010000,
100100
.shmem_id = 0,
101101
.interrupt_num = 1,

demos/linux+freertos/configs/qemu-riscv64-virt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct config config = {
8787
.ipc_num = 1,
8888
.ipcs = (struct ipc[]) {
8989
{
90-
.base = 0x70000000,
90+
.base = 0xf0000000,
9191
.size = 0x00010000,
9292
.shmem_id = 0,
9393
.interrupt_num = 1,

demos/linux+freertos/configs/rpi4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct config config = {
9696
.ipc_num = 1,
9797
.ipcs = (struct ipc[]) {
9898
{
99-
.base = 0x70000000,
99+
.base = 0xf0000000,
100100
.size = 0x00010000,
101101
.shmem_id = 0,
102102
.interrupt_num = 1,

demos/linux+freertos/configs/tx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct config config = {
123123
.ipc_num = 1,
124124
.ipcs = (struct ipc[]) {
125125
{
126-
.base = 0x70000000,
126+
.base = 0xf0000000,
127127
.size = 0x00010000,
128128
.shmem_id = 0,
129129
.interrupt_num = 1,

demos/linux+freertos/configs/zcu104.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ struct config config = {
106106
.ipc_num = 1,
107107
.ipcs = (struct ipc[]) {
108108
{
109-
.base = 0x70000000,
109+
.base = 0xf0000000,
110110
.size = 0x00010000,
111111
.shmem_id = 0,
112112
.interrupt_num = 1,

demos/linux+freertos/freertos-app/demo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ void vTask(void *pvParameters)
5959

6060
#define SHMEM_IRQ_ID (52)
6161

62-
char* const freertos_message = (char*)0x70000000;
63-
char* const linux_message = (char*)0x70002000;
62+
char* const freertos_message = (char*)SHMEM_BASE;
63+
char* const linux_message = (char*)(SHMEM_BASE + 0x2000);
6464
const size_t shmem_channel_size = 0x2000;
6565

6666

0 commit comments

Comments
 (0)