Subject: systemsim console hack From: Jens Osterkamp The systemsim (fss) hvc console ops should not be registered when not running under the simulator. So far this has been prevented by the presence of the rtas tokens but if these are no longer there the driver will issue a callthru in read_ and/or write_console even when not running under simulator and this ends up in a program check. Signed-off-by: Jens Osterkamp Signed-off-by: Arnd Bergmann Index: linux-sdk2.1/drivers/char/hvc_fss.c =================================================================== --- linux-sdk2.1.orig/drivers/char/hvc_fss.c +++ linux-sdk2.1/drivers/char/hvc_fss.c @@ -99,6 +99,10 @@ static int __init hvc_fss_init(void) { struct hvc_struct *hp; + /* Don't register if we aren't running on the simulator */ + if (!of_find_node_by_path("/mambo")) + return -ENODEV; + /* Allocate an hvc_struct for the console device we instantiated * earlier. Save off hp so that we can return it on exit */ hp = hvc_alloc(hvc_fss_cookie, NO_IRQ, &hvc_fss_get_put_ops, 16);