🆕 do_execve函数,跳转至应用层

This commit is contained in:
fslongjin
2022-02-13 22:41:35 +08:00
parent 781a105d2f
commit 0757e7a3cd
8 changed files with 178 additions and 93 deletions

View File

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