diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 20:37:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 20:37:49 -0500 |
commit | 4690dfa8cd66c37fbe99bb8cd5baa86102110776 (patch) | |
tree | 063d1f68298cab19d29a4aa689d755266ae85a7d /arch/microblaze/include | |
parent | c2e08e7ce5ab25a781197a71c5241742e8c9fdfe (diff) | |
parent | f3aef2510e2bb28cdbf32e5f3b8f04f03336ac81 (diff) |
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
* 'next' of git://git.monstr.eu/linux-2.6-microblaze:
microblaze: Wire-up new system calls
microblaze: Remove NO_IRQ from architecture
input: xilinx_ps2: Don't use NO_IRQ
block: xsysace: Don't use NO_IRQ
microblaze: Trivial asm fix
microblaze: Fix debug message in module
microblaze: Remove eprintk macro
microblaze: Send CR before LF for early console
microblaze: Change NO_IRQ to 0
microblaze: Use irq_of_parse_and_map for timer
microblaze: intc: Change variable name
microblaze: Use of_find_compatible_node for timer and intc
microblaze: Add __cmpdi2
microblaze: Synchronize __pa __va macros
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/irq.h | 11 | ||||
-rw-r--r-- | arch/microblaze/include/asm/page.h | 11 | ||||
-rw-r--r-- | arch/microblaze/include/asm/setup.h | 6 | ||||
-rw-r--r-- | arch/microblaze/include/asm/unistd.h | 5 |
4 files changed, 14 insertions, 19 deletions
diff --git a/arch/microblaze/include/asm/irq.h b/arch/microblaze/include/asm/irq.h index cc54187f3d38..a175132e4496 100644 --- a/arch/microblaze/include/asm/irq.h +++ b/arch/microblaze/include/asm/irq.h | |||
@@ -9,7 +9,14 @@ | |||
9 | #ifndef _ASM_MICROBLAZE_IRQ_H | 9 | #ifndef _ASM_MICROBLAZE_IRQ_H |
10 | #define _ASM_MICROBLAZE_IRQ_H | 10 | #define _ASM_MICROBLAZE_IRQ_H |
11 | 11 | ||
12 | #define NR_IRQS 32 | 12 | |
13 | /* | ||
14 | * Linux IRQ# is currently offset by one to map to the hardware | ||
15 | * irq number. So hardware IRQ0 maps to Linux irq 1. | ||
16 | */ | ||
17 | #define NO_IRQ_OFFSET 1 | ||
18 | #define IRQ_OFFSET NO_IRQ_OFFSET | ||
19 | #define NR_IRQS (32 + IRQ_OFFSET) | ||
13 | #include <asm-generic/irq.h> | 20 | #include <asm-generic/irq.h> |
14 | 21 | ||
15 | /* This type is the placeholder for a hardware interrupt number. It has to | 22 | /* This type is the placeholder for a hardware interrupt number. It has to |
@@ -20,8 +27,6 @@ typedef unsigned long irq_hw_number_t; | |||
20 | 27 | ||
21 | extern unsigned int nr_irq; | 28 | extern unsigned int nr_irq; |
22 | 29 | ||
23 | #define NO_IRQ (-1) | ||
24 | |||
25 | struct pt_regs; | 30 | struct pt_regs; |
26 | extern void do_IRQ(struct pt_regs *regs); | 31 | extern void do_IRQ(struct pt_regs *regs); |
27 | 32 | ||
diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index ed9d0f6e2cdb..a25e6b5e2ad4 100644 --- a/arch/microblaze/include/asm/page.h +++ b/arch/microblaze/include/asm/page.h | |||
@@ -174,15 +174,8 @@ extern int page_is_ram(unsigned long pfn); | |||
174 | 174 | ||
175 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | 175 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) |
176 | 176 | ||
177 | 177 | # define __pa(x) __virt_to_phys((unsigned long)(x)) | |
178 | # ifndef CONFIG_MMU | 178 | # define __va(x) ((void *)__phys_to_virt((unsigned long)(x))) |
179 | # define __pa(vaddr) ((unsigned long) (vaddr)) | ||
180 | # define __va(paddr) ((void *) (paddr)) | ||
181 | # else /* CONFIG_MMU */ | ||
182 | # define __pa(x) __virt_to_phys((unsigned long)(x)) | ||
183 | # define __va(x) ((void *)__phys_to_virt((unsigned long)(x))) | ||
184 | # endif /* CONFIG_MMU */ | ||
185 | |||
186 | 179 | ||
187 | /* Convert between virtual and physical address for MMU. */ | 180 | /* Convert between virtual and physical address for MMU. */ |
188 | /* Handle MicroBlaze processor with virtual memory. */ | 181 | /* Handle MicroBlaze processor with virtual memory. */ |
diff --git a/arch/microblaze/include/asm/setup.h b/arch/microblaze/include/asm/setup.h index 904e5ef6a11b..6c72ed7eba98 100644 --- a/arch/microblaze/include/asm/setup.h +++ b/arch/microblaze/include/asm/setup.h | |||
@@ -26,12 +26,6 @@ int setup_early_printk(char *opt); | |||
26 | void remap_early_printk(void); | 26 | void remap_early_printk(void); |
27 | void disable_early_printk(void); | 27 | void disable_early_printk(void); |
28 | 28 | ||
29 | #if defined(CONFIG_EARLY_PRINTK) | ||
30 | #define eprintk early_printk | ||
31 | #else | ||
32 | #define eprintk printk | ||
33 | #endif | ||
34 | |||
35 | void heartbeat(void); | 29 | void heartbeat(void); |
36 | void setup_heartbeat(void); | 30 | void setup_heartbeat(void); |
37 | 31 | ||
diff --git a/arch/microblaze/include/asm/unistd.h b/arch/microblaze/include/asm/unistd.h index 7d7092b917ac..d20ffbc86beb 100644 --- a/arch/microblaze/include/asm/unistd.h +++ b/arch/microblaze/include/asm/unistd.h | |||
@@ -391,8 +391,11 @@ | |||
391 | #define __NR_clock_adjtime 373 | 391 | #define __NR_clock_adjtime 373 |
392 | #define __NR_syncfs 374 | 392 | #define __NR_syncfs 374 |
393 | #define __NR_setns 375 | 393 | #define __NR_setns 375 |
394 | #define __NR_sendmmsg 376 | ||
395 | #define __NR_process_vm_readv 377 | ||
396 | #define __NR_process_vm_writev 378 | ||
394 | 397 | ||
395 | #define __NR_syscalls 376 | 398 | #define __NR_syscalls 379 |
396 | 399 | ||
397 | #ifdef __KERNEL__ | 400 | #ifdef __KERNEL__ |
398 | #ifndef __ASSEMBLY__ | 401 | #ifndef __ASSEMBLY__ |