mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-22 04:22:05 +03:00
mm/mtrr: Gate to x86 only
This commit is contained in:
parent
54f3118f4c
commit
a7bac25397
@ -1,3 +1,5 @@
|
||||
#if defined (__x86_64__) || defined (__i386__)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <mm/mtrr.h>
|
||||
@ -138,3 +140,5 @@ void mtrr_restore(void) {
|
||||
/* restore old value of cr0 */
|
||||
asm volatile ("mov %0, %%cr0" :: "r"(old_cr0) : "memory");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,7 +1,11 @@
|
||||
#ifndef __MM__MTRR_H__
|
||||
#define __MM__MTRR_H__
|
||||
|
||||
#if defined (__x86_64__) || defined (__i386__)
|
||||
|
||||
void mtrr_save(void);
|
||||
void mtrr_restore(void);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user