|
@@ -28,9 +28,12 @@
|
|
|
#include <kernel/errno.h>
|
|
#include <kernel/errno.h>
|
|
|
#include <kernel/types.h>
|
|
#include <kernel/types.h>
|
|
|
|
|
|
|
|
|
|
+#include <kernel/graphic.h>
|
|
|
|
|
+
|
|
|
#include <arch/x86/int.h>
|
|
#include <arch/x86/int.h>
|
|
|
#include <arch/io.h>
|
|
#include <arch/io.h>
|
|
|
#include <arch/sys.h>
|
|
#include <arch/sys.h>
|
|
|
|
|
+
|
|
|
#include <modules/tty.h>
|
|
#include <modules/tty.h>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -85,18 +88,13 @@ void set_gate(struct idt_entry *entry, char attr, char ist, void *addr) {
|
|
|
|
|
|
|
|
|
|
|
|
|
void syscall(void) {
|
|
void syscall(void) {
|
|
|
-// printf(COLOR_BRIGHT + RED, "int #0x80: system call. \n");
|
|
|
|
|
|
|
+ print(0x04, 0x00, "int #0x80: system call. \n");
|
|
|
for (;;);
|
|
for (;;);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
void die(char *s, __uint64_t *rsp, char nr) {
|
|
void die(char *s, __uint64_t *rsp, char nr) {
|
|
|
-// printf(COLOR_BRIGHT + RED, "int #%b: %s. \n");
|
|
|
|
|
-
|
|
|
|
|
- int i;
|
|
|
|
|
-
|
|
|
|
|
- for (i = 0; i < 50; i++)
|
|
|
|
|
- // printf(COLOR_BRIGHT + RED, "stack: %q\n", rsp[i]);
|
|
|
|
|
|
|
+ print(0x04, 0x00, "int #%b: %s. \n");
|
|
|
|
|
|
|
|
for (;;);
|
|
for (;;);
|
|
|
}
|
|
}
|