Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\vm86_32.c Create Date:2022-07-28 08:41:43
Last Modify:2022-05-22 10:11:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:handle_vm86_trap

Proto:int handle_vm86_trap(struct kernel_vm86_regs *regs, long error_code, int trapno)

Type:int

Parameter:

TypeParameterName
struct kernel_vm86_regs *regs
longerror_code
inttrapno
571  vm86 = vm86
573  If for vm86 internal use Then
574  If trapno == 3 || trapno == 1 Then
576  Return 0
578  There are so many possible reasons for this function to return* VM86_INTx, so adding another doesn't bother me. We can expect* userspace programs to be able to handle it. (Getting a problem* in userspace is always better than an Oops anyway.) [KD]
579  Return 0
581  If trapno != 1 Then Return 1
583  trap_nr = trapno
584  error_code = error_code
585  force_sig(SIGTRAP)
586  Return 0
Caller
NameDescribe
do_debugOur handling of the processor debug registers is non-trivial.* We do not clear them on entry and exit from the kernel. Therefore* it is possible to get a watchpoint trap here from inside the kernel.* However, the code in
handle_vm86_fault