Skip to content

Commit

Permalink
configs: miriac-sbc-ls1046a: move IVSHMEM region to end of array
Browse files Browse the repository at this point in the history
Now that we are not counting anymore, find the one we need to index from
the ARRAY_SIZE.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
henning-schild authored and jan-kiszka committed Apr 1, 2019
1 parent eeed9ec commit 03dc807
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions configs/arm64/miriac-sbc-ls1046a.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,6 @@ struct {
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_EXECUTE,
},
/* IVSHMEM shared memory region for 00:00.0 */ {
.phys_start = 0xc0400000,
.virt_start = 0xc0400000,
.size = 0x100000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
},
/* PCI host bridge 0 */ {
.phys_start = 0x4000000000,
.virt_start = 0x4000000000,
Expand All @@ -423,6 +417,12 @@ struct {
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_IO,
},
/* IVSHMEM shared memory region for 00:00.0 */ {
.phys_start = 0xc0400000,
.virt_start = 0xc0400000,
.size = 0x100000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
},
},

.irqchips = {
Expand Down Expand Up @@ -451,7 +451,7 @@ struct {
0xffffff00, 0xffffffff, 0x00000000,
0x00000000, 0x00000000, 0x00000000,
},
.shmem_region = 46,
.shmem_region = ARRAY_SIZE(config.mem_regions) - 1,
.shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH,
},
},
Expand Down

0 comments on commit 03dc807

Please sign in to comment.