/* * uboot.c -- uboot arguments support * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details.
*/
/* * parse_uboot_commandline * * Copies u-boot commandline arguments and store them in the proper linux * variables. * * Assumes: * _init_sp global contains the address in the stack pointer when the * kernel starts (see head.S::_start) * * U-Boot calling convention: * (*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end); * * _init_sp can be parsed as such * * _init_sp+00 = u-boot cmd after jsr into kernel (skip) * _init_sp+04 = &kernel board_info (residual data) * _init_sp+08 = &initrd_start * _init_sp+12 = &initrd_end * _init_sp+16 = &cmd_start * _init_sp+20 = &cmd_end * * This also assumes that the memory locations pointed to are still * unmodified. U-boot places them near the end of external SDRAM. * * Argument(s): * commandp = the linux commandline arg container to fill. * size = the sizeof commandp. * * Returns:
*/ staticvoid __init parse_uboot_commandline(char *commandp, int size)
{ externunsignedlong _init_sp; unsignedlong *sp; unsignedlong uboot_cmd_start, uboot_cmd_end; #ifdefined(CONFIG_BLK_DEV_INITRD) unsignedlong uboot_initrd_start, uboot_initrd_end; #endif/* if defined(CONFIG_BLK_DEV_INITRD) */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.