Re: [PATCH] struct thread_struct, asm-i386/processor.h: wrong datatype?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



or better: 

> -       unsigned long   fs;
> -       unsigned long   gs;
> +       unsigned short  fs;
> +       unsigned short  gs;
>  /* Hardware debugging registers */
>         unsigned long   debugreg[8];  /* %%db0-7 debug registers */
>  /* fault info */

+ unsigned short fs, __fsh; 
+ unsigned short gs, __gsh; 

which is also done this way the structure above, the TSS. I don't know
why it's done this way, but I guess it's probably better pad with 16 bits
to avoid potential problems with 32bit movl which might overwrite portions
of the next field.

kind regards,
herbert rosmanith

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux