Skip to content

Commit 04ed970

Browse files
danielRepmiguelafsilva5
authored andcommitted
ref(mem): change hyp mem management to cope with non-unified plats
Refactored slightly the root pool bitmap base to improve clarity of code Removed the passing of load_addr as argument since it can be defined as a global variable in each arch boot file. Signed-off-by: Daniel Oliveira <[email protected]>
1 parent 79eece2 commit 04ed970

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/arch/armv8/aarch32/boot.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
*/
2424
_barrier: .4byte 0
2525

26+
.balign 4
27+
.global img_addr
28+
img_addr: .4byte 0
29+
2630
/**
2731
* The following code MUST be at the base of the image, as this is bao's entry point. Therefore
2832
* .boot section must also be the first in the linker script. DO NOT implement any code before the

src/arch/armv8/aarch64/boot.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
.global _boot_barrier
1818
_boot_barrier: .8byte 0
1919

20+
.balign 8
21+
.global img_addr
22+
img_addr: .8byte 0
23+
2024
/**
2125
* The following code MUST be at the base of the image, as this is bao's entry point. Therefore
2226
* .boot section must also be the first in the linker script. DO NOT implement any code before the

src/arch/riscv/boot.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ _extra_allocated_phys_mem_sym: .8byte extra_allocated_phys_mem
7171
*/
7272
_barrier: .8byte 0
7373

74+
.balign 4
75+
.global img_addr
76+
img_addr: .8byte 0
77+
7478
/**
7579
* The following code MUST be at the base of the image, as this is bao's entrypoint. Therefore
7680
* .boot section must also be the first in the linker script. DO NOT implement any code before the

0 commit comments

Comments
 (0)