Home
last modified time | relevance | path

Searched refs:bndcsr (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/arch/x86/include/asm/trace/
Dmpx.h48 TP_PROTO(const struct mpx_bndcsr *bndcsr),
49 TP_ARGS(bndcsr),
58 __entry->bndcfgu = (u64)bndcsr->bndcfgu;
59 __entry->bndstatus = (u64)bndcsr->bndstatus;
121 void trace_bounds_exception_mpx(const struct mpx_bndcsr *bndcsr) in trace_bounds_exception_mpx() argument
/Linux-v4.19/arch/x86/mm/
Dmpx.c196 const struct mpx_bndcsr *bndcsr; in mpx_get_bounds_dir() local
205 bndcsr = get_xsave_field_ptr(XFEATURE_MASK_BNDCSR); in mpx_get_bounds_dir()
206 if (!bndcsr) in mpx_get_bounds_dir()
213 if (!(bndcsr->bndcfgu & MPX_BNDCFG_ENABLE_FLAG)) in mpx_get_bounds_dir()
221 (bndcsr->bndcfgu & MPX_BNDCFG_ADDR_MASK); in mpx_get_bounds_dir()
388 const struct mpx_bndcsr *bndcsr; in do_mpx_bt_fault() local
391 bndcsr = get_xsave_field_ptr(XFEATURE_MASK_BNDCSR); in do_mpx_bt_fault()
392 if (!bndcsr) in do_mpx_bt_fault()
397 bd_base = bndcsr->bndcfgu & MPX_BNDCFG_ADDR_MASK; in do_mpx_bt_fault()
402 bd_entry = bndcsr->bndstatus & MPX_BNDSTA_ADDR_MASK; in do_mpx_bt_fault()
/Linux-v4.19/arch/x86/kernel/
Dtraps.c457 const struct mpx_bndcsr *bndcsr; in do_bounds() local
480 bndcsr = get_xsave_field_ptr(XFEATURE_MASK_BNDCSR); in do_bounds()
481 if (!bndcsr) in do_bounds()
484 trace_bounds_exception_mpx(bndcsr); in do_bounds()
490 switch (bndcsr->bndstatus & MPX_BNDSTA_ERROR_CODE) { in do_bounds()
/Linux-v4.19/tools/testing/selftests/x86/
Dmpx-mini-test.c170 struct bndcsr_struct bndcsr; member
219 return xsave_buf->bndcsr.status_reg; in read_mpx_status_sig()
612 xsave_buf->bndcsr.cfg_reg_u = (unsigned long)l1base | 1; in enable_mpx()
613 xsave_buf->bndcsr.status_reg = 0; in enable_mpx()
617 xsave_buf->bndcsr.status_reg, xsave_buf->bndcsr.cfg_reg_u); in enable_mpx()
624 xsave_buf->bndcsr.status_reg, xsave_buf->bndcsr.cfg_reg_u); in enable_mpx()
/Linux-v4.19/arch/x86/include/asm/fpu/
Dtypes.h191 struct mpx_bndcsr bndcsr; member