17 lines
296 B
C
17 lines
296 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _REG_H_
|
|
#define _REG_H_
|
|
|
|
#include <kernel/types.h>
|
|
|
|
void cr2_write(u64 cr2);
|
|
u64 cr2_read();
|
|
void cr3_write(u64 cr3);
|
|
u64 cr3_read();
|
|
void cr4_write(u64 cr4);
|
|
u64 cr4_read();
|
|
void lidt();
|
|
void lgdt();
|
|
void ltr(u16 index);
|
|
|
|
#endif /* _REG_H_ */
|