use the -newos toolchain even if -elf is present.
[newos.git] / include / kernel / faults_priv.h
blob97c6f47cafd465dd446e029219eb96498225e6e4
1 /*
2 ** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #ifndef _KERNEL_FAULTS_PRIV_H
6 #define _KERNEL_FAULTS_PRIV_H
8 int general_protection_fault(int errorcode);
10 enum fpu_faults {
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);
22 #endif