增加对current.h的条件编译

This commit is contained in:
fslongjin 2022-08-15 16:39:10 +08:00
parent a9a253cd1c
commit a296b79dbc
2 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#pragma once
#if ARCH(X86_64)
#include <arch/x86_64/current.h>
#else
#error Unsupported architecture!
#endif
#include "proc-types.h"
/**

View File

@ -17,7 +17,13 @@
#include <filesystem/VFS/VFS.h>
#include <common/wait_queue.h>
#include <mm/mm-types.h>
#if ARCH(X86_64)
#include <arch/x86_64/current.h>
#else
#error Unsupported architecture!
#endif
#include "proc-types.h"
// 设置初始进程的PCB