Add 4kb paging

This commit is contained in:
Sam Tebbs 2019-09-16 01:48:32 +01:00 committed by SamTebbs33
parent 4a1209785a
commit 48d80d92ae
3 changed files with 375 additions and 104 deletions

View file

@ -506,7 +506,12 @@ pub fn setColour(new_colour: u8) void {
blank = vga.entry(0, colour);
}
fn getVideoBufferAddress() usize {
///
/// Gets the video buffer's virtual address.
///
/// Return: usize
/// The virtual address of the video buffer
pub fn getVideoBufferAddress() usize {
return @ptrToInt(&KERNEL_ADDR_OFFSET) + 0xB8000;
}