summaryrefslogtreecommitdiff
path: root/Kernel/VGA.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-23 23:32:53 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-23 23:34:05 +0200
commit018da1be11e90309d7929803ba47627efe15c202 (patch)
tree61953e2b5399b29fc27a84a2d845c91c13aacbd1 /Kernel/VGA.cpp
parente4bfcd23463b5420d910137ee2e77d23e107c036 (diff)
downloadserenity-018da1be11e90309d7929803ba47627efe15c202.zip
Generalize the SpinLock and move it to AK.
Add a separate lock to protect the VFS. I think this might be a good idea. I'm not sure it's a good approach though. I'll fiddle with it as I go along. It's really fun to figure out all these things on my own.
Diffstat (limited to 'Kernel/VGA.cpp')
-rw-r--r--Kernel/VGA.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/Kernel/VGA.cpp b/Kernel/VGA.cpp
index 782a730485..458a3c967c 100644
--- a/Kernel/VGA.cpp
+++ b/Kernel/VGA.cpp
@@ -33,22 +33,15 @@ byte vga_get_attr()
void vga_init()
{
- DWORD i;
-
current_attr = 0x07;
- vga_mem = (BYTE *)0xb8000;
+ vga_mem = (byte*)0xb8000;
- for (i = 0; i < (80 * 24); ++i) {
+ for (word i = 0; i < (80 * 25); ++i) {
vga_mem[i*2] = ' ';
vga_mem[i*2 + 1] = 0x07;
}
- // Fill the bottom line with blue.
- for (i = (80 * 24); i < (80 * 25); ++i) {
- vga_mem[i*2] = ' ';
- vga_mem[i*2 + 1] = 0x17;
- }
- vga_set_cursor( 0 );
+ vga_set_cursor(0);
}
WORD vga_get_cursor()