Skip to content

Commit 98bcc51

Browse files
Andrew Boienashif
Andrew Boie
authored andcommitted
x86: gen_gdt: improve docstring
Describe what info we're snarfing out of the prebuilt kernel. Signed-off-by: Andrew Boie <[email protected]>
1 parent 38333af commit 98bcc51

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/x86/gen_gdt.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
these data structures will not disturb the memory addresses of
1717
other symbols.
1818
19+
The input kernel ELF binary is used to obtain the following
20+
information:
21+
22+
- Memory addresses of the Main and Double Fault TSS structures
23+
so GDT descriptors can be created for them
24+
- Memory addresses of where the GDT lives in memory, so that this
25+
address can be populated in the GDT pseudo descriptor
26+
- whether userspace or HW stack protection are enabled in Kconfig
27+
1928
The output is a GDT whose contents depend on the kernel
2029
configuration. With no memory protection features enabled,
2130
we generate flat 32-bit code and data segments. If hardware-

0 commit comments

Comments
 (0)