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