[PATCH 7/16] powerpc: add support for ps3 platform

Arnd Bergmann arnd at arndb.de
Fri Nov 17 03:35:15 EST 2006


On Friday 10 November 2006 21:02, Geoff Levand wrote:
> +static int __init ps3pf_probe(void)
> +{
> +       unsigned long htab_size;
> +
> +       pr_debug(" -> %s:%d\n", __func__, __LINE__);
> +
> +       powerpc_firmware_features |= FW_FEATURE_LPAR;
> +
> +       ps3pf_mm_init();
> +       ps3pf_mm_vas_create(&htab_size);
> +       ps3pf_hpte_init(htab_size);
> +
> +       pr_debug(" <- %s:%d\n", __func__, __LINE__);
> +       return 1;
> +}
> +

Your probe() function needs to check if you are actually running
on appropriate hardware and return 0 if not.

This currently breaks when booting a multiplatform kernel
on a non-ps3 system.

	Arnd <><



More information about the Linuxppc-dev mailing list