pub unsafe fn run_with_context(
config: Arc<Config>,
arch: Arc<ArchConfig>,
cpu: usize,
td: Arc<Thread>,
setup: fn() -> ContextSetup,
main: fn() -> !,
) -> !
Expand description
See pcpu_init
on the Orbis for a reference.
§Safety
- This function can be called only once per CPU.
config
must be the same object for all context.arch
must be the same object for all context.cpu
must be unique and valid.setup
must return the same objects for all context.
§Reference offsets
Version | Offset |
---|---|
PS4 11.00 | 0x08DA70 |