Add header <kernaux/arch/x86-paging.h>

This commit is contained in:
Alex Kotov 2022-12-08 06:07:53 +04:00
parent b7f8a70d46
commit 1de23653b0
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 18 additions and 1 deletions

View File

@ -27,7 +27,7 @@ nobase_include_HEADERS += kernaux/arch/x86_64.h
endif
if WITH_ARCH_X86
nobase_include_HEADERS += kernaux/arch/x86.h
nobase_include_HEADERS += kernaux/arch/x86.h kernaux/arch/x86-paging.h
endif
#######

View File

@ -6,6 +6,7 @@ extern "C" {
#endif
#include <kernaux/arch/x86.h>
#include <kernaux/arch/x86-paging.h>
#include <kernaux/macro.h>
#include <stdbool.h>

View File

@ -0,0 +1,12 @@
#ifndef KERNAUX_INCLUDED_ARCH_X86_PAGING
#define KERNAUX_INCLUDED_ARCH_X86_PAGING
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -6,6 +6,10 @@ extern "C" {
#endif
#include <kernaux/arch/x86.h>
#include <kernaux/arch/x86-paging.h>
#include <kernaux/macro.h>
#include <stdint.h>
/**
* @brief CR0 bits