X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ia64%2Fsystem.h;fp=include%2Fasm-ia64%2Fsystem.h;h=06253871562303b223a9cbfef4ba017ed2f44f32;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=8d948286fac8586e7d1c5061eb5df8c920aa0eab;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/asm-ia64/system.h b/include/asm-ia64/system.h index 8d948286f..062538715 100644 --- a/include/asm-ia64/system.h +++ b/include/asm-ia64/system.h @@ -12,6 +12,7 @@ * Copyright (C) 1999 Asit Mallick * Copyright (C) 1999 Don Dugger */ +#include #include #include @@ -24,7 +25,7 @@ * 0xa000000000000000+2*PERCPU_PAGE_SIZE * - 0xa000000000000000+3*PERCPU_PAGE_SIZE remain unmapped (guard page) */ -#define KERNEL_START (GATE_ADDR+__IA64_UL_CONST(0x100000000)) +#define KERNEL_START (GATE_ADDR+0x100000000) #define PERCPU_ADDR (-PERCPU_PAGE_SIZE) #ifndef __ASSEMBLY__ @@ -98,11 +99,12 @@ extern struct ia64_boot_param { #endif /* - * XXX check on this ---I suspect what Linus really wants here is + * XXX check on these---I suspect what Linus really wants here is * acquire vs release semantics but we can't discuss this stuff with * Linus just yet. Grrr... */ #define set_mb(var, value) do { (var) = (value); mb(); } while (0) +#define set_wmb(var, value) do { (var) = (value); mb(); } while (0) #define safe_halt() ia64_pal_halt_light() /* PAL_HALT_LIGHT */ @@ -123,7 +125,7 @@ extern struct ia64_boot_param { #define __local_irq_save(x) \ do { \ ia64_stop(); \ - (x) = ia64_get_psr_i(); \ + (x) = ia64_getreg(_IA64_REG_PSR); \ ia64_stop(); \ ia64_rsm(IA64_PSR_I); \ } while (0) @@ -171,7 +173,7 @@ do { \ #endif /* !CONFIG_IA64_DEBUG_IRQ */ #define local_irq_enable() ({ ia64_stop(); ia64_ssm(IA64_PSR_I); ia64_srlz_d(); }) -#define local_save_flags(flags) ({ ia64_stop(); (flags) = ia64_get_psr_i(); }) +#define local_save_flags(flags) ({ ia64_stop(); (flags) = ia64_getreg(_IA64_REG_PSR); }) #define irqs_disabled() \ ({ \ @@ -242,13 +244,6 @@ extern void ia64_load_extra (struct task_struct *task); __ia64_save_fpu((prev)->thread.fph); \ } \ __switch_to(prev, next, last); \ - /* "next" in old context is "current" in new context */ \ - if (unlikely((current->thread.flags & IA64_THREAD_MIGRATION) && \ - (task_cpu(current) != \ - task_thread_info(current)->last_cpu))) { \ - platform_migrate(current); \ - task_thread_info(current)->last_cpu = task_cpu(current); \ - } \ } while (0) #else # define switch_to(prev,next,last) __switch_to(prev, next, last) @@ -263,8 +258,6 @@ void sched_cacheflush(void); #define arch_align_stack(x) (x) -void default_idle(void); - #endif /* __KERNEL__ */ #endif /* __ASSEMBLY__ */