Add 4kb paging
This commit is contained in:
parent
4a1209785a
commit
48d80d92ae
3 changed files with 375 additions and 104 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue