Function run_with_context

Source
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

VersionOffset
PS4 11.000x08DA70