mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
实现了打开、关闭、读取文件的功能
This commit is contained in:
@ -1,5 +1,12 @@
|
||||
#include"../common/asm.h"
|
||||
|
||||
/**
|
||||
* @brief 导出内核线程的执行引导程序
|
||||
* 目的是还原执行现场(在kernel_thread中伪造的)
|
||||
* 执行到这里时,rsp位于栈顶,然后弹出寄存器值
|
||||
* 弹出之后还要向上移动7个unsigned long的大小,从而弹出额外的信息(详见pt_regs)
|
||||
*/
|
||||
|
||||
ENTRY(kernel_thread_func)
|
||||
popq %r15
|
||||
popq %r14
|
||||
|
Reference in New Issue
Block a user