Revision history   OpenPOWER Library

 6.1.1. Process initialization

When the kernel or dynamic loader initially transfers control to a newly loaded application, the following registers must be set to defined values:

r1

Initial stack pointer.

r3

Number of arguments (argc).

r4

Pointer to the array of argument pointers (argv).

r5

Pointer to the array of environment pointers (envp).

r6

Pointer to the auxillary vector (auxv); see below.

r7

Termination function pointer.

r12

Global entry point address of the application start routine.

fpscr

Zero.

vscr

Zero.