haiku/headers/private/kernel/faults_priv.h
ejakowatz 52a3801208 It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00

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