Compare commits
No commits in common. "11125325ca6b355dde3464ed2d4a27ccb91b5ab3" and "fc79a479579747ae9b8cbf4766877dc8be22b13f" have entirely different histories.
11125325ca
...
fc79a47957
@ -1,14 +0,0 @@
|
|||||||
.intel_syntax noprefix
|
|
||||||
|
|
||||||
.section .text
|
|
||||||
.global clear_registers
|
|
||||||
|
|
||||||
clear_registers:
|
|
||||||
xor eax, eax
|
|
||||||
xor ebx, ebx
|
|
||||||
xor ecx, ecx
|
|
||||||
xor edx, edx
|
|
||||||
xor esp, esp
|
|
||||||
xor ebp, ebp
|
|
||||||
xor esi, esi
|
|
||||||
xor edi, edi
|
|
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
extern uint32_t page_table1[1024];
|
extern uint32_t page_table1[1024];
|
||||||
extern const char *faults[];
|
extern const char *faults[];
|
||||||
void clear_registers(void);
|
|
||||||
|
|
||||||
__attribute__((noreturn)) void kpanic(const char *format, ...)
|
__attribute__((noreturn)) void kpanic(const char *format, ...)
|
||||||
{
|
{
|
||||||
@ -31,7 +30,6 @@ __attribute__((noreturn)) void kpanic(const char *format, ...)
|
|||||||
/* print_stack(); */
|
/* print_stack(); */
|
||||||
/* kprintf("\n\n"); */
|
/* kprintf("\n\n"); */
|
||||||
/* kprintf("PRESS SPACE TO REBOOT"); */
|
/* kprintf("PRESS SPACE TO REBOOT"); */
|
||||||
clear_registers();
|
|
||||||
while (terminal_getkey().scan_code != KEY_SPACE)
|
while (terminal_getkey().scan_code != KEY_SPACE)
|
||||||
;
|
;
|
||||||
reboot();
|
reboot();
|
||||||
|
Loading…
Reference in New Issue
Block a user