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

Function set_thread_context

freebsd/mips/malta/malta_mp.c:138–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136})
137
138static void
139set_thread_context(int cpuid)
140{
141 uint32_t reg;
142
143 reg = read_c0_register32(1, 1);
144 reg &= ~(0xff);
145 reg |= cpuid;
146 write_c0_register32(1, 1, reg);
147
148 ehb();
149}
150
151void
152platform_ipi_send(int cpuid)

Callers 2

platform_ipi_sendFunction · 0.85
platform_start_apFunction · 0.85

Calls 1

ehbFunction · 0.85

Tested by

no test coverage detected