The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
pat.h
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* @file pat.h
5
* @brief the page attribute table: write-combining for the framebuffer.
6
*/
7
8
#include "
common/stdint.h
"
9
10
/**
11
* program the PAT of the core that runs the call so that a page with PWT
12
* set and PCD clear is write-combining. the boot core calls it at boot,
13
* before such pages are mapped; each other core calls it when it starts,
14
* because all cores must give a page the same memory type.
15
*/
16
void
pat_init
(
void
);
17
18
/**
19
* true if pat_init could set up write-combining (the CPU has a PAT).
20
*/
21
bool
pat_has_write_combining
(
void
);
stdint.h
pat_has_write_combining
bool pat_has_write_combining(void)
true if pat_init could set up write-combining (the CPU has a PAT).
Definition
pat.c:47
pat_init
void pat_init(void)
program the PAT of the core that runs the call so that a page with PWT set and PCD clear is write-com...
Definition
pat.c:24
src
arch
x86
cpu
pat.h
Generated by
1.18.0