summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-31 00:25:55 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-31 00:26:22 +0100
commit555c10a1f8d93bbeb673ef44ba2887174213d353 (patch)
tree6871de74018a04ad96bc748ac020423b425de58d
parent72e75c52e370b4ec422f6ec8233efa71107c1f1e (diff)
downloadserenity-555c10a1f8d93bbeb673ef44ba2887174213d353.zip
Minor cleanup.
-rw-r--r--Kernel/Syscall.h2
-rw-r--r--Kernel/i8253.cpp8
-rw-r--r--LibC/stdio.cpp1
3 files changed, 5 insertions, 6 deletions
diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h
index ea391edc7c..db6c2b56b5 100644
--- a/Kernel/Syscall.h
+++ b/Kernel/Syscall.h
@@ -13,7 +13,7 @@ enum Function {
Spawn = 0x1981,
Sleep = 0x1982,
Yield = 0x1983,
- PutCharacter = 1984,
+ PutCharacter = 0x1984,
PosixOpen = 0x1985,
PosixClose = 0x1986,
PosixRead = 0x1987,
diff --git a/Kernel/i8253.cpp b/Kernel/i8253.cpp
index d6bf648d25..8a9e466f1f 100644
--- a/Kernel/i8253.cpp
+++ b/Kernel/i8253.cpp
@@ -106,10 +106,10 @@ void clock_handle()
if ((current->tss().cs & 3) != 0) {
#if 0
- kprintf("clock'ed across to ring0\n");
- kprintf("code: %w:%x\n", current->tss().cs, current->tss().eip);
- kprintf(" stk: %w:%x\n", current->tss().ss, current->tss().esp);
- kprintf("astk: %w:%x\n", regs.ss_if_crossRing, regs.esp_if_crossRing);
+ dbgprintf("clock'ed across to ring0\n");
+ dbgprintf("code: %w:%x\n", current->tss().cs, current->tss().eip);
+ dbgprintf(" stk: %w:%x\n", current->tss().ss, current->tss().esp);
+ dbgprintf("astk: %w:%x\n", regs.ss_if_crossRing, regs.esp_if_crossRing);
//HANG;
#endif
current->tss().ss = regs.ss_if_crossRing;
diff --git a/LibC/stdio.cpp b/LibC/stdio.cpp
index b567c5df5c..e5488742db 100644
--- a/LibC/stdio.cpp
+++ b/LibC/stdio.cpp
@@ -12,7 +12,6 @@ extern "C" {
int putchar(int ch)
{
write(0, &ch, 1);
- //Syscall::invoke(Syscall::PutCharacter, ch);
return (byte)ch;
}