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

Function fpuresume

freebsd/amd64/amd64/fpu.c:310–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void
311fpuresume(void *addr)
312{
313 u_long cr0;
314
315 cr0 = rcr0();
316 stop_emulating();
317 fninit();
318 if (use_xsave)
319 load_xcr(XCR0, xsave_mask);
320 fpurestore(addr);
321 load_cr0(cr0);
322}
323
324/*
325 * Enable XSAVE if supported and allowed by user.

Callers 2

acpi_sleep_machdepFunction · 0.85
cpususpend_handlerFunction · 0.85

Calls 3

rcr0Function · 0.50
load_xcrFunction · 0.50
load_cr0Function · 0.50

Tested by

no test coverage detected