fix: 解决了page的锁未被初始化的bug

This commit is contained in:
fslongjin
2022-08-15 12:09:04 +08:00
parent 1dd9195d69
commit 06af77bd79
13 changed files with 33 additions and 26 deletions

View File

@ -5,7 +5,7 @@
#pragma GCC optimize("O0")
struct process_control_block;
// 获取当前的pcb
static __always_inline struct process_control_block *get_current_pcb()
struct process_control_block *get_current_pcb()
{
struct process_control_block *current = NULL;
// 利用了当前pcb和栈空间总大小为32k大小对齐将rsp低15位清空即可获得pcb的起始地址