2 ** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
5 #ifndef _KERNEL_FAULTS_PRIV_H
6 #define _KERNEL_FAULTS_PRIV_H
8 int general_protection_fault(int errorcode
);
11 FPU_FAULT_CODE_UNKNOWN
= 0,
12 FPU_FAULT_CODE_DIVBYZERO
,
13 FPU_FAULT_CODE_INVALID_OP
,
14 FPU_FAULT_CODE_OVERFLOW
,
15 FPU_FAULT_CODE_UNDERFLOW
,
16 FPU_FAULT_CODE_INEXACT
18 int fpu_fault(int fpu_fault
);
20 int fpu_disable_fault(void);