1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

i386 CR0 and CR4 registers are 32-bit

This commit is contained in:
Alex Kotov 2021-12-18 08:36:06 +05:00
parent 45966f2e06
commit 20b88b314b
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -41,12 +41,12 @@ inline static void kernaux_arch_i386_outportd(uint16_t port, uint32_t value);
void kernaux_arch_i386_hang() __attribute__((noreturn)); void kernaux_arch_i386_hang() __attribute__((noreturn));
uint16_t kernaux_arch_i386_read_cr0(); uint32_t kernaux_arch_i386_read_cr0();
uint16_t kernaux_arch_i386_read_cr4(); uint32_t kernaux_arch_i386_read_cr4();
void kernaux_arch_i386_write_cr0(volatile uint16_t value); void kernaux_arch_i386_write_cr0(volatile uint32_t value);
void kernaux_arch_i386_write_cr3(volatile uint16_t value); void kernaux_arch_i386_write_cr3(volatile uint32_t value);
void kernaux_arch_i386_write_cr4(volatile uint16_t value); void kernaux_arch_i386_write_cr4(volatile uint32_t value);
uint8_t kernaux_arch_i386_inportb(const uint16_t port) uint8_t kernaux_arch_i386_inportb(const uint16_t port)
{ {