vbos/amd64/arch/reg.h
Michael Shaw c7fa9a75fa proc: fix errors, enter userspace
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-21 04:33:35 -04:00

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_ */