Sergey Bugaev, le dim. 19 mars 2023 18:09:59 +0300, a ecrit: > +#ifdef __USE_GNU > +/* Number of each register in the `gregset_t' array. */ > +enum > +{ > + REG_GSFS = 0, /* Actually int gs, fs. */ > +# define REG_GSFS REG_GSFS > + REG_ESDS, /* Actually int es, ds. */ > +# define REG_ESDS REG_ESDS
On second thought, why REG_ESDS? They are basically useless on amd64 Linux packs all segment registers in REG_CSGSFS, probably better to stuff them the same way? (all three really are 16bit only, even if the thread_state is padding them to 32bits). Samuel