diff options
author | NatrixAeria <upezu@student.kit.edu> | 2021-04-16 15:12:45 +0200 |
---|---|---|
committer | NatrixAeria <upezu@student.kit.edu> | 2021-04-16 15:12:45 +0200 |
commit | 75bd5249ada7825ff751e61434a4a7fc7b4f140a (patch) | |
tree | 1e5d8e429fac3897a979e3a78722459eaffbeb1e /kernel/src/io/vga_text.rs | |
parent | 9fcfcbbf16d05d294aadb9b88db0f004ba802bea (diff) |
Fix offsetting in vga text buffer
Diffstat (limited to 'kernel/src/io/vga_text.rs')
-rw-r--r-- | kernel/src/io/vga_text.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/src/io/vga_text.rs b/kernel/src/io/vga_text.rs index c6d8731..890defb 100644 --- a/kernel/src/io/vga_text.rs +++ b/kernel/src/io/vga_text.rs @@ -223,6 +223,7 @@ impl<'a> VgaTerminalControllerLock<'a> { chars.as_ptr(), core::mem::size_of::<VgaChar>() * chars.len(), ); + *self.lock = self.lock.offset(chars.len() as isize); } } } |