The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
pat.h File Reference

the page attribute table: write-combining for the framebuffer. More...

#include "common/stdint.h"

Go to the source code of this file.

Functions

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-combining.
bool pat_has_write_combining (void)
 true if pat_init could set up write-combining (the CPU has a PAT).

Detailed Description

the page attribute table: write-combining for the framebuffer.

Function Documentation

◆ 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-combining.

the boot core calls it at boot, before such pages are mapped; each other core calls it when it starts, because all cores must give a page the same memory type.

◆ pat_has_write_combining()

bool pat_has_write_combining ( void )

true if pat_init could set up write-combining (the CPU has a PAT).