Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\doublefault_32.c Create Date:2022-07-28 08:40:14
Last Modify:2020-03-17 10:23:57 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called by double_fault with CR0.TS and EFLAGS.NT cleared. The CPU thinks* we're running the doublefault task. Cannot return.

Proto:asmlinkage notrace void __noreturn doublefault_shim(void)

Type:void

Parameter:Nothing

30  BUILD_BUG_ON - break compile if a condition is true(sizeof(structdoublefault_stack) != PAGE_SIZE)
32  cr2 = native_read_cr2()
35  force_reload_TR()
36  set_df_gdt_entry(smp_processor_id())
38  trace_hardirqs_off()
49  ss = TSS(ss)
50  __ssh = 0
51  sp = TSS(sp)
52  flags = TSS(flags)
53  cs = TSS(cs)
55  __csh = 0
56  ip = TSS(ip)
57  orig_ax = 0
58  gs = TSS(gs)
59  __gsh = 0
60  fs = TSS(fs)
61  __fsh = 0
62  es = TSS(es)
63  __esh = 0
64  ds = TSS(These functions are used to reference data in other segments. )
65  __dsh = 0
66  ax = TSS(ax)
67  bp = TSS(bp)
68  di = TSS(di)
69  si = TSS(si)
70  dx = TSS(dx)
71  cx = TSS(cx)
72  bx = TSS(bx)
74  Runs on an IST stack for x86_64 and on a special task stack for x86_32.* On x86_64, this is more or less a normal kernel entry. Notwithstanding the* SDM's warnings about double faults being unrecoverable, returning works as* expected
86  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.