1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-24 15:55:41 -05:00

Do not use "unsigned *" in packed structs

This commit is contained in:
Alex Kotov 2022-01-11 11:28:36 +05:00
parent 8af023c478
commit a793875c40
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -52,21 +52,21 @@ extern "C" {
// Global descriptor table entry
// TODO: validate this according to spec
struct KernAux_Arch_I386_GDTE {
unsigned int limit_low : 16;
unsigned int base_low : 24;
unsigned int accessed : 1;
unsigned int read_write : 1;
unsigned int conforming_expand_down : 1;
unsigned int code : 1;
unsigned int always_1 : 1;
unsigned int DPL : 2;
unsigned int present : 1;
unsigned int limit_high : 4;
unsigned int available : 1;
unsigned int always_0 : 1;
unsigned int big : 1;
unsigned int gran : 1;
unsigned int base_high : 8;
unsigned limit_low : 16;
unsigned base_low : 24;
unsigned accessed : 1;
unsigned read_write : 1;
unsigned conforming_expand_down : 1;
unsigned code : 1;
unsigned always_1 : 1;
unsigned DPL : 2;
unsigned present : 1;
unsigned limit_high : 4;
unsigned available : 1;
unsigned always_0 : 1;
unsigned big : 1;
unsigned gran : 1;
unsigned base_high : 8;
}
__attribute__((packed));