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

Function npxsuspend

freebsd/i386/i386/npx.c:949–964  ·  view source on GitHub ↗

* Unconditionally save the current co-processor state across suspend and * resume. */

Source from the content-addressed store, hash-verified

947 * resume.
948 */
949void
950npxsuspend(union savefpu *addr)
951{
952 register_t cr0;
953
954 if (!hw_float)
955 return;
956 if (PCPU_GET(fpcurthread) == NULL) {
957 bcopy(npx_initialstate, addr, cpu_max_ext_state_size);
958 return;
959 }
960 cr0 = rcr0();
961 stop_emulating();
962 fpusave(addr);
963 load_cr0(cr0);
964}
965
966void
967npxresume(union savefpu *addr)

Callers 2

acpi_sleep_machdepFunction · 0.85
cpususpend_handlerFunction · 0.85

Calls 2

rcr0Function · 0.50
load_cr0Function · 0.50

Tested by

no test coverage detected