⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arch_faults.c

📁 newos is new operation system
💻 C
字号:
/* ** Copyright 2001-2004, Travis Geiselbrecht. All rights reserved.** Distributed under the terms of the NewOS License.*/#include <kernel/kernel.h>#include <kernel/faults.h>#include <kernel/faults_priv.h>#include <kernel/vm.h>#include <kernel/debug.h>#include <kernel/console.h>#include <kernel/int.h>#include <kernel/arch/cpu.h>#include <kernel/arch/int.h>#include <kernel/arch/faults.h>#include <kernel/arch/x86_64/interrupts.h>#include <kernel/arch/x86_64/faults.h>#include <boot/stage2.h>#include <string.h>// XXX this module is largely outdated. Will probably be removed later.int arch_faults_init(kernel_args *ka){	return 0;}int x86_64_general_protection_fault(int errorcode){	return general_protection_fault(errorcode);}int x86_64_double_fault(int errorcode){	kprintf("double fault! errorcode = 0x%x\n", errorcode);	dprintf("double fault! errorcode = 0x%x\n", errorcode);	for(;;);	return INT_NO_RESCHEDULE;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -