Add the cortex-m0 support for XiUOS & Fix bugs on M3 and serial device #102

Closed
Kiritoy wants to merge 2 commits from develop into wang_weigen_master
Member

此MR是为XiUOS增加cortex-m0支持,由上海交通大学IPADS实验室提交。

增加
xiuos\Ubiquitous\XiUOS\board\cortex-m0-emulator 文件夹

修改了 xiuos\Ubiquitous\XiUOS 文件夹下的 path_kernel.mk and Makefile


xiuos/Ubiquitous/XiUOS/arch/arm/shared文件夹中armv7-m(cortex-m3、m4、m7均是armv7-m架构)的代码拿出来作为单独文件夹,并且添加armv6-m文件夹(cortex-m0是armv6-m架构)

编译命令
make BOARD=cortex-m0-emulator menuconfig
make BOARD=cortex-m0-emulator

运行命令
qemu-system-arm -machine microbit -nographic -kernel build/XiUOS_cortex-m0-emulator.elf

另:
修复

XiUOS原本HwInterruptcontextSwitch等函数的bug:未保存和恢复callee-save registers。之前的代码未触发该bug,如果在shell中增加register变量,已验证可以触发。

修复

读取方向键等组合字符的BUG。

此次修改基于 wang_weigen_master

此MR是为XiUOS增加cortex-m0支持,由上海交通大学IPADS实验室提交。 增加 xiuos\Ubiquitous\XiUOS\board\cortex-m0-emulator 文件夹 修改了 xiuos\Ubiquitous\XiUOS 文件夹下的 path_kernel.mk and Makefile 把 xiuos/Ubiquitous/XiUOS/arch/arm/shared文件夹中armv7-m(cortex-m3、m4、m7均是armv7-m架构)的代码拿出来作为单独文件夹,并且添加armv6-m文件夹(cortex-m0是armv6-m架构) 编译命令 make BOARD=cortex-m0-emulator menuconfig make BOARD=cortex-m0-emulator 运行命令 qemu-system-arm -machine microbit -nographic -kernel build/XiUOS_cortex-m0-emulator.elf 另: 修复 XiUOS原本HwInterruptcontextSwitch等函数的bug:未保存和恢复callee-save registers。之前的代码未触发该bug,如果在shell中增加register变量,已验证可以触发。 修复 读取方向键等组合字符的BUG。 **此次修改基于 wang_weigen_master**
Kiritoy added 1 commit 2021-11-23 18:24:06 +08:00
Kiritoy added 1 commit 2021-11-26 22:38:45 +08:00
xuedongliang closed this pull request 2021-12-08 09:58:16 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xuos/xiuos#102
No description provided.