52a3801208
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
24 lines
484 B
C
Executable File
24 lines
484 B
C
Executable File
/*
|
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
** Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef _KERNEL_FAULTS_PRIV_H
|
|
#define _KERNEL_FAULTS_PRIV_H
|
|
|
|
int general_protection_fault(int errorcode);
|
|
|
|
enum fpu_faults {
|
|
FPU_FAULT_CODE_UNKNOWN = 0,
|
|
FPU_FAULT_CODE_DIVBYZERO,
|
|
FPU_FAULT_CODE_INVALID_OP,
|
|
FPU_FAULT_CODE_OVERFLOW,
|
|
FPU_FAULT_CODE_UNDERFLOW,
|
|
FPU_FAULT_CODE_INEXACT
|
|
};
|
|
int fpu_fault(int fpu_fault);
|
|
|
|
int fpu_disable_fault(void);
|
|
|
|
#endif
|
|
|