<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/libcpu/risc-v/common64, branch copilot/create-device-driver-model-docs</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/libcpu/risc-v/common64?h=copilot%2Fcreate-device-driver-model-docs</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/libcpu/risc-v/common64?h=copilot%2Fcreate-device-driver-model-docs'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-12-04T07:42:09Z</updated>
<entry>
<title>[libcpu-riscv]: [surpport SMP]: Add SMP support for qemu-virt64-riscv</title>
<updated>2025-12-04T07:42:09Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-03T10:38:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=acef64ed2a30bd1b2c832114dde7d9b1f5b9a509'/>
<id>urn:sha1:acef64ed2a30bd1b2c832114dde7d9b1f5b9a509</id>
<content type='text'>
1.Add the necessary function declarations for SMP enablement and implement the corresponding
functionalities, including rt_hw_secondary_cpu_up, secondary_cpu_entry, rt_hw_local_irq_disable,
rt_hw_local_irq_enable, rt_hw_secondary_cpu_idle_exec, rt_hw_spin_lock_init, rt_hw_spin_lock,
rt_hw_spin_unlock, rt_hw_ipi_send, rt_hw_interrupt_set_priority, rt_hw_interrupt_get_priority,
rt_hw_ipi_init, rt_hw_ipi_handler_install, and rt_hw_ipi_handler.

2.In the two functions (rt_hw_context_switch_to and rt_hw_context_switch) in context_gcc.S,
add a call to rt_cpus_lock_status_restore to update the scheduler information.

3.If the MMU is enabled, use the .percpu section and record different hartids by configuring
special page tables; if the MMU is not enabled, record them directly in the satp register.
Additionally, add dynamic startup based on core configuration.The .percpu section is only used
when both ARCH_MM_MMU and RT_USING_SMP are enabled. However, there is a certain amount of space
waste since no macro guard is added for it in the link script currently.

4.The physical memory of QEMU started in CI is 128MB, so RT_HW_PAGE_END is modified from the
original +256MB to +128MB. Modify the SConscript file under the common64 directory to include
common/atomic_riscv.c in the compilation process.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>Reorganize Group names in build system for clarity and IDE integration #10923</title>
<updated>2025-11-16T03:40:53Z</updated>
<author>
<name>Copilot</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-11-16T03:40:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=30e1e5e9dcdaff17258edf70b9f9783e08356288'/>
<id>urn:sha1:30e1e5e9dcdaff17258edf70b9f9783e08356288</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(risc-v, mmu): fix type mismatch of `_query`</title>
<updated>2025-09-01T10:44:24Z</updated>
<author>
<name>Haojin Tang</name>
<email>tanghaojin@outlook.com</email>
</author>
<published>2025-09-01T07:23:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=db4fb4c243195f43d5c29caf16f80d9e349c2e78'/>
<id>urn:sha1:db4fb4c243195f43d5c29caf16f80d9e349c2e78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(riscv, cpp): remove `rt_hw_cpu_id` in `cpuport.h` to fix error</title>
<updated>2025-09-01T10:42:08Z</updated>
<author>
<name>Haojin Tang</name>
<email>tanghaojin@outlook.com</email>
</author>
<published>2025-09-01T04:58:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b27e405faa8616afda9ee8874416a36e9b6d3ba3'/>
<id>urn:sha1:b27e405faa8616afda9ee8874416a36e9b6d3ba3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[lwp][rv64] restore tp register in arch_thread_signal_enter to fix user-mode memory access</title>
<updated>2025-07-23T01:38:35Z</updated>
<author>
<name>Yulong Wang</name>
<email>2302147681@qq.com</email>
</author>
<published>2025-07-12T13:10:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e7a40ae6ec1fdcb0d74a4902cfbd50aee7ee8e8f'/>
<id>urn:sha1:e7a40ae6ec1fdcb0d74a4902cfbd50aee7ee8e8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[libcpu][risc-v]:add comment for the round down of symb_pc</title>
<updated>2025-05-28T11:37:51Z</updated>
<author>
<name>zhangjing</name>
<email>zhangjing@ultrarisc.com</email>
</author>
<published>2025-05-28T09:38:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e3d7bbb47c0728f8c4b5a4837a2075513093ab51'/>
<id>urn:sha1:e3d7bbb47c0728f8c4b5a4837a2075513093ab51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[libcpu][risc-v] fix:only map the 1GB space where the original code segment is located</title>
<updated>2025-05-28T11:37:51Z</updated>
<author>
<name>zhangjing</name>
<email>zhangjing@ultrarisc.com</email>
</author>
<published>2025-04-03T02:30:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3922ec7e99c85d9258e90b1c3fccf3abdd3ae939'/>
<id>urn:sha1:3922ec7e99c85d9258e90b1c3fccf3abdd3ae939</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libcpu: riscv: declare external symbols inside</title>
<updated>2025-04-11T06:15:12Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-04-11T03:50:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=312f9dbc083b2e598d0f8d4ac0c3ed1d4760bd96'/>
<id>urn:sha1:312f9dbc083b2e598d0f8d4ac0c3ed1d4760bd96</id>
<content type='text'>
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 &lt;board.h&gt;" 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 &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
<entry>
<title>libcpu: cleanup undefined rt_hw_mmu_kernel_map_init (#10177)</title>
<updated>2025-04-10T23:54:21Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-04-10T23:54:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5c9f61879c8e745c89aaa728cfd86e6e9e912914'/>
<id>urn:sha1:5c9f61879c8e745c89aaa728cfd86e6e9e912914</id>
<content type='text'>
* libcpu: cleanup undefined rt_hw_mmu_kernel_map_init

rt_hw_mmu_kernel_map_init() is declared in header files but
no definition found, cleanup the code.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp: allwinner: d1: remove calling of rt_hw_mmu_kernel_map_init

rt_hw_mmu_kernel_map_init is an undefined function, calling it
is meaningless.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

---------

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;</content>
</entry>
<entry>
<title>[libcpu][risc-v]add code for handling exception scenarios in _unmap_area.</title>
<updated>2025-03-17T09:40:55Z</updated>
<author>
<name>ligr</name>
<email>liguorui1213@163.com</email>
</author>
<published>2025-03-13T04:29:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9da813b1511fc61de192b6255d7a3abc030d3b54'/>
<id>urn:sha1:9da813b1511fc61de192b6255d7a3abc030d3b54</id>
<content type='text'>
</content>
</entry>
</feed>
