Skip to content

Commit

Permalink
x86: gen_gdt: improve docstring
Browse files Browse the repository at this point in the history
Describe what info we're snarfing out of the prebuilt kernel.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie authored and nashif committed Jul 19, 2020
1 parent 38333af commit 98bcc51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/x86/gen_gdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
these data structures will not disturb the memory addresses of
other symbols.
The input kernel ELF binary is used to obtain the following
information:
- Memory addresses of the Main and Double Fault TSS structures
so GDT descriptors can be created for them
- Memory addresses of where the GDT lives in memory, so that this
address can be populated in the GDT pseudo descriptor
- whether userspace or HW stack protection are enabled in Kconfig
The output is a GDT whose contents depend on the kernel
configuration. With no memory protection features enabled,
we generate flat 32-bit code and data segments. If hardware-
Expand Down

0 comments on commit 98bcc51

Please sign in to comment.