Commit graph

47 commits

Author SHA1 Message Date
19222732a8
bsp,abstract-machien: context creation and switch 2024-07-26 12:18:54 +08:00
6aebc44707
[tools] abstract-machine CMake build support 2024-07-26 12:18:13 +08:00
Zihao Yu
45a3dffbc7 Makefile: fix typo 2024-07-19 10:49:30 +08:00
Wenz-jam
11743ffdfa 使用编译选项实现自动make update 2024-05-19 09:14:36 +08:00
Zihao Yu
a5810addff bsp,am,extra.h: add missing API which should be renamed 2024-02-03 19:58:26 +08:00
Zihao Yu
3f012b30ca bsp,am,integrate-am-apps: add snake 2024-01-18 19:50:56 +08:00
Zihao Yu
6972e89b7a bsp,am,integrate-am-apps: do not rename text and rodata sections
* they will be placed according to the AM linker script
2024-01-18 19:50:56 +08:00
Zihao Yu
3257709e16 bsp,am,extra.ld: fix position of .bss.extra
* with the AM link script, the .bss.extra will originally be placed
  after the heap
2024-01-18 19:50:56 +08:00
Zihao Yu
09ed47d1b8 bsp,am,init: do not allocate memory when am apps have no data section 2024-01-18 19:50:56 +08:00
Zihao Yu
e571b99c04 bsp,am,integrate-am-apps: remove duplicated library symbols 2024-01-18 19:50:56 +08:00
Zihao Yu
1edc230f15 bsp,am,integrate-am-apps: support different ARCH 2024-01-18 19:50:56 +08:00
Zihao Yu
54b9182024 bsp,am,init: display size of data section and bss section for am apps 2024-01-18 19:50:56 +08:00
Zihao Yu
379be07a90 bsp,am,integrate-am-apps: remove unnecessary rt_thread_yield()
* rt_thread_startup() will schedule to the target thread
2024-01-18 19:50:56 +08:00
Zihao Yu
911638c7f5 bsp,am,integrate-am-apps: reset data and bss section before running 2024-01-18 19:50:55 +08:00
Zihao Yu
6ce926d1ae bsp,am,integrate-am-apps: refactor generated code 2024-01-18 19:50:14 +08:00
Zihao Yu
6761ddf7f8 bsp,am,integrate-am-apps: destroy thread when calling halt() 2024-01-18 19:50:14 +08:00
Zihao Yu
dea61ce9d9 bsp,am,integrate-am-apps: replace '-' with '_' in app name 2024-01-18 19:50:14 +08:00
Zihao Yu
7c420032e2 bsp,am: fix warning message about RTC device 2024-01-13 00:29:05 +08:00
Zihao Yu
9c8b8c3289 bsp,am,integrate-am-apps: fix heap smash
* now pass microbench
2024-01-13 00:28:51 +08:00
Zihao Yu
f08882db2c bsp,am,integrate-am-apps: fix linking error for microbench
* do not change the name of symbol in libraries
* run microbench, but trigger segmentation fault
2024-01-12 20:20:48 +08:00
Zihao Yu
839ab63edf bsp,am,integrate-am-apps: automatically fix the symbol name of AM libraries
* pass hello
2024-01-12 20:20:48 +08:00
Zihao Yu
0fd10d5b22 bsp,am: add basic python script to integrate other AM apps
* but we should manually fix the symbol name of AM libraries
2024-01-12 20:20:48 +08:00
Zihao Yu
5944cfb90c bsp,am,init: add ioe_init() 2024-01-11 23:33:07 +08:00
Zihao Yu
6249bf3509 bsp,am,extra.h: rename posix API to avoid conflict with glibc in native 2024-01-11 23:31:41 +08:00
Zihao Yu
ef2f35cee7 bsp,am,config: fix self recursion for strstr() 2024-01-11 01:48:19 +08:00
wenz-jam
a7c2db4e63 fix bugs when using make -B
修复在make -B 时产生的错误
2023-10-17 23:14:37 +08:00
Zihao Yu
64e349a5f1 bsp,abstract-machine,extra.ld: use INSERT BEFORE command 2023-10-03 15:21:32 +08:00
Zihao Yu
4b1e2858ae bsp,abstract-machine,Makefile: fix remake issue
* do not set a included Makefile as the target of a rule
2023-10-03 15:21:25 +08:00
Zihao Yu
e6aa8c45f8 bsp,abstract-machine: compile to x86-nemu successfully 2023-10-03 15:21:20 +08:00
Zihao Yu
475f866a45 bsp,abstract-machine,uart: add more preset commands 2023-10-03 15:21:13 +08:00
Zihao Yu
4ed46aca44 bsp,abstract-machine,libc: add more dummy functions to pass linking 2023-10-03 15:21:07 +08:00
Zihao Yu
5cd97fe3f3 bsp,abstract-machine,Makefile: ignore warning of nonnull-compare 2023-10-03 15:21:01 +08:00
Zihao Yu
4586aafb06 bsp,abstract-machine: fix shell command table during linking 2023-10-03 15:19:36 +08:00
Zihao Yu
7e91ba791e bsp,abstract-machine,uart: add preset command in _uart_getc()
* but it is not parsed
2023-10-03 15:19:26 +08:00
Zihao Yu
0a091fd303 bsp,abstract-machine: add hello application through initcall 2023-10-03 15:19:04 +08:00
Zihao Yu
624077b98c bsp,abstract-machine: fix the order of .rti_fn* sections
* now initcall can work successfully, and msh can show prompt
2023-10-03 15:18:55 +08:00
Zihao Yu
79c8ec519a bsp,abstract-machine,interrupt: implement rt_hw_interrupt_enable() 2023-05-24 14:05:36 +08:00
Zihao Yu
eabba3f39a bsp,abstract-machine,uart: simply and use putch() 2023-05-24 14:04:27 +08:00
Zihao Yu
6097cc54ee bsp,abstract-machine: add rt_hw_board_init() and uart
* uart should be simplified
2023-05-24 13:57:51 +08:00
Zihao Yu
4e2ce927ef bsp,abstract-machine: init CTE 2023-05-24 12:49:11 +08:00
Zihao Yu
d646fbfe58 bsp,abstract-machine: add dummy functions to pass linking 2023-05-24 12:44:34 +08:00
Zihao Yu
0369aa35c7 bsp,abstract-machine: add main() to call entry()
* this flow is similar with qemu-riscv-virt64
* there is still a lot of linking error
2023-05-24 12:36:43 +08:00
Zihao Yu
29b3356427 bsp,am: fix missing type definition 2023-05-24 10:37:02 +08:00
Zihao Yu
e5c449a67d bsp,am,Makefile: generate files.mk from scons commands 2023-05-24 10:35:39 +08:00
Zihao Yu
397bc03c19 bsp,am: add basic Makefile to generate rtconfig.h from .config 2023-05-24 10:26:39 +08:00
Zihao Yu
072b83d547 bsp: add basic configure files for abstract-machine 2023-05-24 09:50:02 +08:00
Zihao Yu
e2376a3709 import RT-Thread@9217865c without bsp, libcpu and components/net 2023-05-20 16:26:38 +08:00