if (!strstr(*cmdline_p, "console=")) add_preferred_console("ttySG", 0, NULL); 
void __init sn_setup(char **cmdline_p){	long status, ticks_per_sec, drift;	u32 version = sn_sal_rev();	extern void sn_cpu_init(void);	ia64_sn_plat_set_error_handling_features();	// obsolete	ia64_sn_set_os_feature(OSF_MCA_SLV_TO_OS_INIT_SLV);	ia64_sn_set_os_feature(OSF_FEAT_LOG_SBES);#if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE)	/*	 * If there was a primary vga adapter identified through the	 * EFI PCDP table, make it the preferred console.  Otherwise	 * zero out conswitchp.	 */	if (vga_console_membase) {		/* usable vga ... make tty0 the preferred default console */		add_preferred_console("tty", 0, NULL);	} else {		printk(KERN_DEBUG "SGI: Disabling VGA console\n");#ifdef CONFIG_DUMMY_CONSOLE		conswitchp = &dummy_con;#else		conswitchp = NULL;#endif				/* CONFIG_DUMMY_CONSOLE */	}#endif				/* def(CONFIG_VT) && def(CONFIG_VGA_CONSOLE) */	MAX_DMA_ADDRESS = PAGE_OFFSET + MAX_PHYS_MEMORY;	/*	 * Build the tables for managing cnodes.	 */	build_cnode_tables();	/*	 * Old PROMs do not provide an ACPI FADT. Disable legacy keyboard	 * support here so we don't have to listen to failed keyboard probe	 * messages.	 */	if (version <= 0x0209 && acpi_kbd_controller_present) {		printk(KERN_INFO "Disabling legacy keyboard support as prom "		       "is too old and doesn't provide FADT\n");		acpi_kbd_controller_present = 0;	}	printk("SGI SAL version %x.%02x\n", version >> 8, version & 0x00FF);	status =	    ia64_sal_freq_base(SAL_FREQ_BASE_REALTIME_CLOCK, &ticks_per_sec,			       &drift);	if (status != 0 || ticks_per_sec < 100000) {		printk(KERN_WARNING		       "unable to determine platform RTC clock frequency, guessing.\n");		/* PROM gives wrong value for clock freq. so guess */		sn_rtc_cycles_per_second = 1000000000000UL / 30000UL;	} else		sn_rtc_cycles_per_second = ticks_per_sec;	platform_intr_list[ACPI_INTERRUPT_CPEI] = IA64_CPE_VECTOR;	/*	 * we set the default root device to /dev/hda	 * to make simulation easy	 */	ROOT_DEV = Root_HDA1;	/*	 * Create the PDAs and NODEPDAs for all the cpus.	 */	sn_init_pdas(cmdline_p);	ia64_mark_idle = &snidle;	/*	 * For the bootcpu, we do this here. All other cpus will make the	 * call as part of cpu_init in slave cpu initialization.	 */	sn_cpu_init();#ifdef CONFIG_SMP	init_smp_config();#endif	screen_info = sn_screen_info;	sn_timer_init();	/*	 * set pm_power_off to a SAL call to allow	 * sn machines to power off. The SAL call can be replaced	 * by an ACPI interface call when ACPI is fully implemented	 * for sn.	 */	pm_power_off = ia64_sn_power_down;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ff51224cab12845c8bd539ca1f2dc18cc851b445/setup.c/clean/arch/ia64/sn/kernel/setup.c