Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f086122b authored by Matias Zabaljauregui's avatar Matias Zabaljauregui Committed by Rusty Russell
Browse files

lguest: Segment selectors are 16-bit long. Fix lg_cpu.ss1 definition.



If GDT_ENTRIES were every > 256, this could become a problem.

Signed-off-by: Matias Zabaljauregui <zabaljauregui at gmail.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 81b79b01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ struct lg_cpu {
	u32 cr2;
	int ts;
	u32 esp1;
	u8 ss1;
	u16 ss1;

	/* Bitmap of what has changed: see CHANGED_* above. */
	int changed;