rt-thread/libcpu
Chen Wang 312f9dbc08 libcpu: riscv: declare external symbols inside
libcpu/risc-v/common64/mmu.c uses the external
symbol "__bss_end" (this symbol generally is
defined in the link script file) and depends
on the extern declaration of this symbol in
the bsp's "board.h". This is not a problem in
implementation, but it is not a good habit.

If this extern symbol is used locally, just
declare it locally should be better.

In this way, there will be no dependency of
the kernel core on the bsp header file. And
there will be no special requirements for the
bsp board code, such as the need to make
extern declarations for these "__bss_end"
symbols in "board.h".

This patch currently only explicitly externly
declares "__bss_end" inside libcpu itself.
The code of "#include <board.h>" is kept, because
the modification involved is too large, it is
necessary to clean up the bsp involved before
cleaning this include code line uniformly.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-11 14:15:12 +08:00
..
aarch64 libcpu: cleanup undefined rt_hw_mmu_kernel_map_init (#10177) 2025-04-11 07:54:21 +08:00
arc [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
arm libcpu: cleanup undefined rt_hw_mmu_kernel_map_init (#10177) 2025-04-11 07:54:21 +08:00
avr32 [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
blackfin [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
c-sky [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
ia32 [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
m16c [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
mips [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
nios [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
ppc [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
risc-v libcpu: riscv: declare external symbols inside 2025-04-11 14:15:12 +08:00
rx [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
sim 解决rt_interrupt_from_thread和rt_interrupt_to_thread指针赋值错误 2025-03-17 16:45:59 +08:00
sparc-v8 [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
ti-dsp [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
unicore32 [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
v850 [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
xilinx [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
Kconfig feat: Kconfig: moving the arm64 specified configs to sub-menu 2024-11-24 13:44:34 -05:00
SConscript [libcpu] Fix the build directory issue 2019-03-26 13:36:01 +00:00