MCPcopy Create free account
hub / github.com/F-Stack/f-stack / load_xcr

Function load_xcr

freebsd/i386/include/cpufunc.h:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507static __inline void
508load_xcr(u_int reg, uint64_t val)
509{
510 u_int low, high;
511
512 low = val;
513 high = val >> 32;
514 __asm __volatile("xsetbv" : : "c" (reg), "a" (low), "d" (high));
515}
516
517/*
518 * Global TLB flush (except for thise for pages marked PG_G)

Callers 1

npxinitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected