From 51bba81ac1419446b30fa6c6f425cbdec449495e Mon Sep 17 00:00:00 2001 From: David Mosberger Date: Fri, 20 Dec 2002 07:51:49 -0800 Subject: [PATCH] ia64: Finish 2.5.52+ merge. --- arch/ia64/Makefile | 3 ++- arch/ia64/kernel/setup.c | 11 +++++++---- arch/ia64/kernel/signal.c | 5 +---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile index 22de3b21d6d7..ee87c6516dda 100644 --- a/arch/ia64/Makefile +++ b/arch/ia64/Makefile @@ -24,12 +24,13 @@ CFLAGS_KERNEL := -mconstant-gp GCC_VERSION=$(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.') ifneq ($(GCC_VERSION),2) - CFLAGS += -frename-registers --param max-inline-insns=5000 + cflags-y += -frename-registers --param max-inline-insns=5000 endif cflags-$(CONFIG_ITANIUM_BSTEP_SPECIFIC) += -mb-step cflags-$(CONFIG_IA64_SGI_SN) += -DBRINGUP +CFLAGS += $(cflags-y) HEAD := arch/ia64/kernel/head.o arch/ia64/kernel/init_task.o libs-y += arch/ia64/lib/ diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index b6cf163a9992..65b0489b2d47 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c @@ -364,11 +364,13 @@ setup_arch (char **cmdline_p) #ifdef CONFIG_ACPI_BOOT /* Initialize the ACPI boot-time table parser */ acpi_table_init(*cmdline_p); - -#ifdef CONFIG_ACPI_NUMA +# ifdef CONFIG_ACPI_NUMA acpi_numa_init(); -#endif - +# endif +#else +# ifdef CONFIG_SMP + smp_build_cpu_map(); /* happens, e.g., with the Ski simulator */ +# endif #endif /* CONFIG_APCI_BOOT */ find_memory(); @@ -501,6 +503,7 @@ show_cpuinfo (struct seq_file *m, void *v) sep = ','; *cp++ = ' '; strcpy(cp, feature_bits[i].feature_name); + cp += strlen(feature_bits[i].feature_name); mask &= ~feature_bits[i].mask; } } diff --git a/arch/ia64/kernel/signal.c b/arch/ia64/kernel/signal.c index 3e79858c5aca..8ff4fe33902a 100644 --- a/arch/ia64/kernel/signal.c +++ b/arch/ia64/kernel/signal.c @@ -527,7 +527,6 @@ ia64_do_signal (sigset_t *oldset, struct sigscratch *scr, long in_syscall) if (restart) { switch (errno) { case ERESTART_RESTARTBLOCK: -printk("ERESTART_RESTARTBLOCK: ignoring\n"); current_thread_info()->restart_block.fn = do_no_restart_syscall; case ERESTARTNOHAND: scr->pt.r8 = ERR_CODE(EINTR); @@ -577,10 +576,8 @@ printk("ERESTART_RESTARTBLOCK: ignoring\n"); * the "break" instruction gets re-executed. */ ia64_decrement_ip(&scr->pt); - if (errno == ERESTART_RESTARTBLOCK) { -printk("ERESTART_RESTARTBLOCK: restarting at %lx\n", scr->pt.cr_iip); + if (errno == ERESTART_RESTARTBLOCK) scr->pt.r15 = __NR_restart_syscall; - } } } } -- 2.39.5