MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / setreg

Function setreg

src/sys/proc.rs:412–417  ·  view source on GitHub ↗

Set registers

(reg: Reg)

Source from the content-addressed store, hash-verified

410
411// Set registers
412pub fn setreg(reg: Reg)
413{
414 let mut tab = PROCTAB.write();
415 let mut proc = &mut tab[id()];
416 proc.reg = reg
417}
418
419
420// Set stack-frame

Callers 1

schFunction · 0.85

Calls 2

idFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected