mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 15:23:23 +00:00
🆕 syscall模块,实现了第一个系统调用函数sys_printf
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user