2 Star 6 Fork 3

稀风/KOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
syscall3.c 391 Bytes
一键复制 编辑 原始数据 按行查看 历史
稀风 提交于 2023-02-18 16:03 . 再论系统调用:用户打印 print
#include <syscall.h>
extern E_RET SYS_TaskDestory(void); // 任务销毁
extern U32 SYS_print(U08* buf, U16 len); // 屏幕打印
extern E_RET SYS_SetCursorPos(U16 x, U16 y); // 设置光标位置
typedef S32 (*SYSCALL_FUNC)();
SYSCALL_FUNC syscall_table[] = {
(SYSCALL_FUNC)SYS_TaskDestory,
(SYSCALL_FUNC)SYS_print,
(SYSCALL_FUNC)SYS_SetCursorPos,
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/thin-wind/KOS.git
git@gitee.com:thin-wind/KOS.git
thin-wind
KOS
KOS
main

搜索帮助