boards: qemu_x86_tiny: pin logging subsys code and data
This pins the logging subsys code and data so logging can be used with demand paging. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
0c32256b00
commit
1cb754c628
1 changed files with 12 additions and 0 deletions
|
@ -228,6 +228,13 @@ MEMORY
|
||||||
*(.text.sys_memcpy_swap) \
|
*(.text.sys_memcpy_swap) \
|
||||||
*(.text.z_*)
|
*(.text.z_*)
|
||||||
|
|
||||||
|
/* For logging subsys */
|
||||||
|
#define LIB_SUBSYS_LOGGING_IN_SECT(lsect) \
|
||||||
|
*log_*.c.obj(.##lsect) \
|
||||||
|
*log_*.c.obj(.##lsect.*) \
|
||||||
|
*mpsc_pbuf.c.obj(.##lsect) \
|
||||||
|
*mpsc_pbuf.c.obj(.##lsect.*)
|
||||||
|
|
||||||
epoint = Z_MEM_PHYS_ADDR(CONFIG_KERNEL_ENTRY);
|
epoint = Z_MEM_PHYS_ADDR(CONFIG_KERNEL_ENTRY);
|
||||||
ENTRY(epoint)
|
ENTRY(epoint)
|
||||||
|
|
||||||
|
@ -363,6 +370,7 @@ SECTIONS
|
||||||
LIB_ZEPHYR_IN_SECT(text)
|
LIB_ZEPHYR_IN_SECT(text)
|
||||||
LIB_C_IN_SECT(text)
|
LIB_C_IN_SECT(text)
|
||||||
LIB_DRIVERS_IN_SECT(text)
|
LIB_DRIVERS_IN_SECT(text)
|
||||||
|
LIB_SUBSYS_LOGGING_IN_SECT(text)
|
||||||
|
|
||||||
*_divdi3.o(.text)
|
*_divdi3.o(.text)
|
||||||
*_udivdi3.o(.text)
|
*_udivdi3.o(.text)
|
||||||
|
@ -409,6 +417,7 @@ SECTIONS
|
||||||
LIB_ZEPHYR_IN_SECT(rodata)
|
LIB_ZEPHYR_IN_SECT(rodata)
|
||||||
LIB_C_IN_SECT(rodata)
|
LIB_C_IN_SECT(rodata)
|
||||||
LIB_DRIVERS_IN_SECT(rodata)
|
LIB_DRIVERS_IN_SECT(rodata)
|
||||||
|
LIB_SUBSYS_LOGGING_IN_SECT(rodata)
|
||||||
|
|
||||||
/* Static strings */
|
/* Static strings */
|
||||||
*(.rodata.str*.*)
|
*(.rodata.str*.*)
|
||||||
|
@ -448,6 +457,7 @@ SECTIONS
|
||||||
LIB_ZEPHYR_IN_SECT(data)
|
LIB_ZEPHYR_IN_SECT(data)
|
||||||
LIB_C_IN_SECT(data)
|
LIB_C_IN_SECT(data)
|
||||||
LIB_DRIVERS_IN_SECT(data)
|
LIB_DRIVERS_IN_SECT(data)
|
||||||
|
LIB_SUBSYS_LOGGING_IN_SECT(data)
|
||||||
|
|
||||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||||
|
|
||||||
|
@ -472,6 +482,7 @@ SECTIONS
|
||||||
LIB_ZEPHYR_IN_SECT(bss)
|
LIB_ZEPHYR_IN_SECT(bss)
|
||||||
LIB_C_IN_SECT(bss)
|
LIB_C_IN_SECT(bss)
|
||||||
LIB_DRIVERS_IN_SECT(bss)
|
LIB_DRIVERS_IN_SECT(bss)
|
||||||
|
LIB_SUBSYS_LOGGING_IN_SECT(bss)
|
||||||
|
|
||||||
lnkr_pinned_bss_end = .;
|
lnkr_pinned_bss_end = .;
|
||||||
} GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
} GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||||
|
@ -499,6 +510,7 @@ SECTIONS
|
||||||
LIB_ZEPHYR_IN_SECT(noinit)
|
LIB_ZEPHYR_IN_SECT(noinit)
|
||||||
LIB_C_IN_SECT(noinit)
|
LIB_C_IN_SECT(noinit)
|
||||||
LIB_DRIVERS_IN_SECT(noinit)
|
LIB_DRIVERS_IN_SECT(noinit)
|
||||||
|
LIB_SUBSYS_LOGGING_IN_SECT(noinit)
|
||||||
|
|
||||||
#ifdef CONFIG_ZTEST
|
#ifdef CONFIG_ZTEST
|
||||||
/* For tests/kernel/mem_slab/ tests */
|
/* For tests/kernel/mem_slab/ tests */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue