Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\traps.c Create Date:2022-07-28 07:32:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Note that we play around with the 'TS' bit in an attempt to get* the correct behaviour even in the presence of the asynchronous* IRQ13 behaviour

Proto:static void math_error(struct pt_regs *regs, int error_code, int trapnr)

Type:void

Parameter:

TypeParameterName
struct pt_regs *regs
interror_code
inttrapnr
824  task = current process
825  fpu = Floating point and extended processor state
827  str = If trapnr == X86_TRAP_MF Then "fpu exception" Else "simd exception"
830  cond_local_irq_enable(regs)
832  If Not ser_mode(regs) determines whether a register set came from user* mode Then
833  If fixup_exception(regs, trapnr, error_code, 0) Then Return
836  error_code = error_code
837  trap_nr = trapnr
839  If notify_die(DIE_TRAP, str, regs, error_code, trapnr, SIGFPE) != Clean way to return from the notifier and stop further calls. Then die(str, regs, error_code)
842  Return
848  Save the FPU state (mark it for reload if necessary):* This only ever gets called for the current task.
850  trap_nr = trapnr
851  error_code = error_code
853  si_code = fpu__exception_code(fpu, trapnr)
855  If Not si_code Then Return
858  force_sig_fault(SIGFPE, si_code, (void__user * )uprobe_get_trap_addr(regs))
Caller
NameDescribe
do_coprocessor_error
do_simd_coprocessor_error