coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 43 forks source link

cpu/tss: fix TSS layout #389

Closed 00xc closed 5 months ago

00xc commented 5 months ago

According to the AMD manual, there is a reserved 64 bit entry between the RSP and IST stack entries. Thus, separate it as such in the X86Tss struct. While we are at it, mark it as packed(4), which is the correct alignment, and add a layout test.