|
@@ -86,13 +86,14 @@ void set_gate(struct idt_entry *entry, char attr, char ist, void *addr) {
|
|
|
|
|
|
|
|
|
|
|
|
|
void syscall(void) {
|
|
void syscall(void) {
|
|
|
- print(0x04, 0x00, "int #0x80: system call. \n");
|
|
|
|
|
- for (;;);
|
|
|
|
|
|
|
+ print(0x00ff0000, 0x00, "int #0x80: system call. \n");
|
|
|
|
|
+
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
void die(char *s, __uint64_t *rsp, char nr) {
|
|
void die(char *s, __uint64_t *rsp, char nr) {
|
|
|
- print(0x04, 0x00, "int #%b: %s. \n");
|
|
|
|
|
|
|
+ print(0x00ff0000, 0x00, "int #%b: %s. \n");
|
|
|
|
|
|
|
|
for (;;);
|
|
for (;;);
|
|
|
}
|
|
}
|