@ -19,12 +19,12 @@ Design Notes on Exporting U-Boot Functions to Standalone Applications:
thus the compiler cannot perform type checks on these assignments.
thus the compiler cannot perform type checks on these assignments.
2. The pointer to the jump table is passed to the application in a
2. The pointer to the jump table is passed to the application in a
machine-dependent way. PowerPC, ARM, MIPS and Blackfin architectures
machine-dependent way. PowerPC, ARM, MIPS, Blackfin and Nios II
use a dedicated register to hold the pointer to the 'global_data'
architectures use a dedicated register to hold the pointer to the
structure: r2 on PowerPC, r8 on ARM, k0 on MIPS, and P3 on Blackfin.
'global_data' structure: r2 on PowerPC, r8 on ARM, k0 on MIPS,
The x86 architecture does not use such a register; instead, the
P3 on Blackfin and gp on Nios II. The x86 architecture does not
pointer to the 'global_data' structure is passed as 'argv[-1] '
use such a register; instead, the pointer to the 'global_data'
pointer.
structure is passed as 'argv[-1]' pointer.
The application can access the 'global_data' structure in the same
The application can access the 'global_data' structure in the same
way as U-Boot does:
way as U-Boot does:
@ -56,6 +56,7 @@ Design Notes on Exporting U-Boot Functions to Standalone Applications:
ARM 0x0c100000 0x0c100000
ARM 0x0c100000 0x0c100000
MIPS 0x80200000 0x80200000
MIPS 0x80200000 0x80200000
Blackfin 0x00001000 0x00001000
Blackfin 0x00001000 0x00001000
Nios II 0x02000000 0x02000000
For example, the "hello world" application may be loaded and
For example, the "hello world" application may be loaded and
executed on a PowerPC board with the following commands:
executed on a PowerPC board with the following commands: