<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/libcpu/risc-v/common/trap_common.c, branch copilot/remove-vbus-code-implementation</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/common/trap_common.c?h=copilot%2Fremove-vbus-code-implementation</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/libcpu/risc-v/common/trap_common.c?h=copilot%2Fremove-vbus-code-implementation'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-01-30T01:28:38Z</updated>
<entry>
<title>libcpu: riscv: common: fixed build warnings</title>
<updated>2025-01-30T01:28:38Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-01-27T02:58:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2dfbae28532303526f6bf4b60a54794c845d444a'/>
<id>urn:sha1:2dfbae28532303526f6bf4b60a54794c845d444a</id>
<content type='text'>
When building bsp/cvitek/c906_little, compiler warns:

```
.../rt-thread/libcpu/risc-v/common/trap_common.c:
In function 'rt_hw_interrupt_install':
.../rt-thread/libcpu/risc-v/common/trap_common.c:50:11:
warning: unused variable 'user_param' [-Wunused-variable]
   50 |     void *user_param = param;
      |           ^~~~~~~~~~
.../rt-thread/libcpu/risc-v/common/trap_common.c:
In function 'rt_rv32_system_irq_handler':
.../rt-thread/libcpu/risc-v/common/trap_common.c:77:25:
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   77 |         s_stack_frame = (rt_hw_stack_frame_t *)mscratch;
      |                         ^
```

Fixed these warnings as per indication from gcc.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
<entry>
<title>Bugfix/fix weak handle trap in riscv common crash rv64 trap handling (#9189)</title>
<updated>2024-07-15T09:51:32Z</updated>
<author>
<name>Fan Yang</name>
<email>93824713+helloeagleyang@users.noreply.github.com</email>
</author>
<published>2024-07-15T09:51:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=96ba787e252c38abe08f039c052a4be378dfa42c'/>
<id>urn:sha1:96ba787e252c38abe08f039c052a4be378dfa42c</id>
<content type='text'>
* [bsp][hpmicro] add weak handle_trap implementation

- added weak handle_trap implementation

Signed-off-by: Fan YANG &lt;fan.yang@hpmicro.com&gt;

* [libcpu][risc-v][common] remove weak handle_trap function

- removed weak handle_trap function from trap_common.c

Signed-off-by: Fan YANG &lt;fan.yang@hpmicro.com&gt;

---------

Signed-off-by: Fan YANG &lt;fan.yang@hpmicro.com&gt;</content>
</entry>
<entry>
<title>Fix compiling eror in hpmicro bsp (#8889)</title>
<updated>2024-04-30T12:11:47Z</updated>
<author>
<name>Fan Yang</name>
<email>93824713+helloeagleyang@users.noreply.github.com</email>
</author>
<published>2024-04-30T12:11:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c21ba6985d5a9d6f6926799ada4faa92c20cb8a0'/>
<id>urn:sha1:c21ba6985d5a9d6f6926799ada4faa92c20cb8a0</id>
<content type='text'>
- added 'DEVICE' to rtconfig.py
- fixed compiling error cuased by change in interrupt_gcc.S

Signed-off-by: Fan YANG &lt;fan.yang@hpmicro.com&gt;</content>
</entry>
<entry>
<title>[risc-v][libcpu] 删去无用局部变量 (#7634)</title>
<updated>2023-06-07T21:04:12Z</updated>
<author>
<name>Liu,Yuan</name>
<email>89723088+linshire@users.noreply.github.com</email>
</author>
<published>2023-06-07T21:04:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1d8165851b7fef9a4ec4903154b5b7234fe141b5'/>
<id>urn:sha1:1d8165851b7fef9a4ec4903154b5b7234fe141b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp]fix esp32_c3 compile error (#7107)</title>
<updated>2023-03-29T11:01:26Z</updated>
<author>
<name>flyingcys</name>
<email>flyingcys@163.com</email>
</author>
<published>2023-03-29T11:01:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0cf3bcf49506ee4a8c5444284b0c9dd5afbf2df3'/>
<id>urn:sha1:0cf3bcf49506ee4a8c5444284b0c9dd5afbf2df3</id>
<content type='text'>
* fix rt_hw_interrupt_install return value

* add __rt_rvstack</content>
</entry>
<entry>
<title>[bsp] add bl808 lp core (#7069)</title>
<updated>2023-03-19T15:16:12Z</updated>
<author>
<name>flyingcys</name>
<email>flyingcys@163.com</email>
</author>
<published>2023-03-19T15:16:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a538b268588ae668ff897c3719b6a7eef9ac8c0a'/>
<id>urn:sha1:a538b268588ae668ff897c3719b6a7eef9ac8c0a</id>
<content type='text'>
* Add riscv_32e support

* add bl808 lp core

* update README.md</content>
</entry>
<entry>
<title>[libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941)</title>
<updated>2023-03-01T06:32:43Z</updated>
<author>
<name>Yaochenger</name>
<email>75192526+Yaochenger@users.noreply.github.com</email>
</author>
<published>2023-03-01T06:32:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b9e4fcfc6878aa05cca277ea3557299e59207965'/>
<id>urn:sha1:b9e4fcfc6878aa05cca277ea3557299e59207965</id>
<content type='text'>
整合libcpu/riscv中的移植文件 提供一份公共代码于common

在提交本pr时，除hpmicro的内核，rv32内核bsp已完成去除大部分的冗余，大部分代码采用common中的实现。本pr的作用是进一步统一common中的文件，从而提供一份公用代码，新移植的RV32内核的BSP可以全部使用common代码。

- 在common中提供一份公用文件：interrupt_gcc.S
- 修改原有的文件，将原有的中断中上下文切换代码替换为interrupt_gcc.S
- 基于上述修改，修改仓库中risc-v内核的BSP与移植相关的部分 (主要包含中断入口函数 中断栈等)
- 在common中提供一份公用文件：trap_common.c；提供统一中断入口函数，中断入口函数初始化，中断入口注册等函数，并完善异常时的信息输出

- 在common中提供一份公用文件：rt_hw_stack_frame.h；将栈帧结构体剥离，供用户使用

- 在上述工作完成后，在上述工作的基础上测试仓库中risc-v内核的BSP

- 完善函数中的命名，完善中断栈的获取

- 提供一份详细的基于现有common文件的移植指南

  #### 在什么测试环境下测试通过 

- 1.CH32V307V-R1-R0
- 2.CH32V208W-R0-1V4
- 3.HPM6750EVKMINI
- 4.GD32VF103V-EVAL
- 5.qemu(CORE-V-MCU )

&gt; 与上述开发板使用同样芯片的BSP均测试通过

在CH32V307V-R1-R0与HPM6750EVKMINI上基于现有移植文件进行多线程复杂场景下的长时间测试，测试过程系统运行正常。</content>
</entry>
</feed>
