FreeBSD/sys/arm/at91/board_tsc4370.c
/*
 * Override the default boot param parser (supplied via weak linkage) with one
 * that knows how to handle our custom tsc_bootinfo passed in from boot2.
 */
Override the default boot param parser (supplied via weak linkage) with one
that knows how to handle our custom tsc_bootinfo passed in from boot2.
Override the default boot param parser ( supplied via weak linkage ) with one that knows how to handle our custom tsc_bootinfo passed in from boot2 .
vm_offset_t
parse_boot_param(struct arm_boot_params *abp)
{
	boot_params = *abp;
	if (abp->abp_r0 == TSC_BOOTINFO_MAGIC && abp->abp_r1 != 0) {
		inkernel_bootinfo = *(struct tsc_bootinfo *)(abp->abp_r1);
	}
	return fake_preload_metadata(abp, NULL, 0);
}
vm_offset_t parse_boot_param ( struct arm_boot_params * abp ) { boot_params = * abp ; if ( abp -> abp_r0 == TSC_BOOTINFO_MAGIC && abp -> abp_r1 != 0 ) { inkernel_bootinfo = * ( struct tsc_bootinfo * ) ( abp -> abp_r1 ) ; } return fake_preload_metadata ( abp , NULL , 0 ) ; }
Override the default boot param parser (supplied via weak linkage) with one
 that knows how to handle our custom tsc_bootinfo passed in from boot2.
Override the default boot param parser ( supplied via weak linkage ) with one that knows how to handle our custom tsc_bootinfo passed in from boot2 .
/*
	 * If the right magic is in r0 and a non-NULL pointer is in r1, then
	 * it's our bootinfo, copy it.  The pointer in r1 is a physical address
	 * passed from boot2.  This routine is called immediately upon entry to
	 * initarm() and is in very nearly the same environment as boot2.  In
	 * particular, va=pa and we can safely copy the args before we lose easy
	 * access to the memory they're stashed in right now.
	 *
	 * Note that all versions of boot2 that we've ever shipped have put
	 * zeroes into r2 and r3.  Maybe that'll be useful some day.
	 */