Files
2024-04-02 16:22:45 +00:00

16 lines
371 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <types.h>
#include "pager.h"
#include <err.h>
#define PAGE_DEEP 4
typedef struct page_entry
{
pte_t *dir; //!< 存储页表地址
uint8_t lv_shift_sizes[PAGE_DEEP]; //!< 页表翻译的大小order
uint8_t depth; //!< 页表深度
} page_entry_t;
int page_entry_init(page_entry_t *entry);