📄 exception.h
字号:
/* * OSV * Copyright (C) 2002 Ciprian DOSOFTEI <rocksoul@mail.com> * All rights reserved. * * http://backster.free.fr/osv * * This file is part of the OSV project. OSV is free software, also known as * "open source"; you can redistribute it and/or modify it under the terms * of the GNU General Public License (GPL), version 2, as published by the Free * Software Foundation (FSF). To explore alternate licensing terms, contact * the author at rocksoul@mail.com or +40740649907. * * OSV is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GPL for more details. You should have * received a copy of the GPL along with OSV; see the file COPYING. If * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA. */#ifndef INCEXCEPTION#define INCEXCEPTION#include <sys/params.h>#include <types.h>#include <exit.h>#include <idt.h>#define N_EXCEPTIONS 32extern void __DivideError(void);extern void __DebugException(void);extern void __NonMaskableInterrupt(void);extern void __Breakpoint(void);extern void __Overflow(void);extern void __BoundsCheck(void);extern void __InvalidOpcode(void);extern void __CoprocessorNotAvailable(void);extern void __DoubleFault(void);extern void __CoprocessorSegmentOverrun(void);extern void __InvalidTSS(void);extern void __SegmentNotPresent(void);extern void __StackException(void);extern void __GeneralProtection(void);extern void __PageFault(void);extern void __Reserved(void);extern void __CoprocessorError(void);extern void __AlignmentCheck(void);extern void exceptionHandler(dword edi, dword esi, dword ebp, dword esp, dword ebx, dword edx, dword ecx, dword eax, dword gs, dword fs, dword es, dword ds, dword nr, dword errorCode, dword eip, dword cs, dword eflags);extern void setupExceptions(void);#define DebugBreakPoint() __asm__ __volatile__ ("int3"::)#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -