🆕 syscall模块,实现了第一个系统调用函数sys_printf

This commit is contained in:
fslongjin
2022-02-16 14:07:53 +08:00
parent 7238e3c13a
commit d3a5048f66
11 changed files with 219 additions and 8 deletions

View File

@ -13,11 +13,12 @@
#include "../common/cpu.h"
#include "../common/glib.h"
#include "../mm/mm.h"
#include "../syscall/syscall.h"
#include "ptrace.h"
extern unsigned long _stack_start; // 导出内核层栈基地址定义在head.S
extern void ret_from_intr(void); // 导出从中断返回的函数定义在entry.S
extern void ret_from_system_call(void); // 导出从中断返回的函数定义在entry.S
// 进程的内核栈大小 32K
#define STACK_SIZE 32768