Skip to content

Commit 60ac1ad

Browse files
committed
fix(headers): change global variables to mem.h
Signed-off-by: Daniel Oliveira <[email protected]>
1 parent f33f613 commit 60ac1ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/core/inc/bao.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424

2525
void init(cpuid_t cpu_id);
2626

27-
/* The address where the Bao image is loaded in memory */
28-
extern const uintptr_t img_addr;
29-
/* The address where the data section is loaded in memory */
30-
extern const uintptr_t data_addr;
31-
3227
#endif /* __ASSEMBLER__ */
3328

3429
#endif /* __BAO_H__ */

src/core/inc/mem.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ bool mem_translate(struct addr_space* as, vaddr_t va, paddr_t* pa);
9595

9696
extern struct list page_pool_list;
9797

98-
#endif /* |__ASSEMBLER__ */
98+
/* The address where the Bao image is loaded in memory */
99+
extern const uintptr_t img_addr;
100+
/* The address where the data section is loaded in memory */
101+
extern const uintptr_t data_addr;
102+
103+
#endif /* __ASSEMBLER__ */
99104

100105
#endif /* __MEM_H__ */

0 commit comments

Comments
 (0)