Re: [RFC][PATCH] x86 mpx: give bndX registers actual names

From: H. Peter Anvin
Date: Fri Oct 31 2014 - 17:50:19 EST


On 10/31/2014 02:22 PM, Dave Hansen wrote:
>
> -struct bndregs_struct {
> - u64 bndregs[8];
> +struct bndreg_struct {
> + u64 lb; /* lower bound */
> + u64 ub; /* upper bound */
> } __packed;
>
> struct bndcsr_struct {
> @@ -394,7 +395,7 @@ struct xsave_struct {
> struct xsave_hdr_struct xsave_hdr;
> struct ymmh_struct ymmh;
> struct lwp_struct lwp;
> - struct bndregs_struct bndregs;
> + struct bndreg_struct bnd[4];
> struct bndcsr_struct bndcsr;
> /* new processor state extensions will go here */
> } __attribute__ ((packed, aligned (64)));
> _
>

How about "struct bndreg"?

-hpa

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