PPC64 Close firmware stdin
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Linux Kernel Mailing List
ChangeSet 1.2146, 2004/12/07 10:15:41-08:00, [email protected]
[PATCH] PPC64 Close firmware stdin
.../...
I think you merged that one twice :)
Ben.
Quoted 35 lines
diff -Nru
a/arch/ppc64/kernel/prom_init.cb/arch/ppc64/kernel/prom_init.carch/ppc64/kernel/prom_init.c +13
-1@@ -1118,6 +1118,16 @@call_prom ("close" ,1 ,0 , val); } +static void __init prom_close_stdin (void ) +{ +unsigned long offset =reloc_offset (); +struct prom_t *_prom =PTRRELOC (&prom); +ihandle val; + +if (prom_getprop (_prom->chosen,"stdin" , &val,sizeof (val)) >0 ) +call_prom ("close" ,1 ,0 , val); +} +static int __init prom_find_machine_type (void ) {unsigned long offset =reloc_offset ();@@ -1695,6 +1705,9 @@*/ prom_printf ("copying OF device tree ...\n" );flatten_device_tree (); + +/* in case stdin is USB and still active on IBM machines... */ +prom_close_stdin ();/* in case stdin is USB and still active on IBM machines... */ prom_close_stdin (); -To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Benjamin Herrenschmidt <[email protected]>