diff options
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r-- | arch/microblaze/include/asm/auxvec.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/cache.h | 5 | ||||
-rw-r--r-- | arch/microblaze/include/asm/cputable.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/entry.h | 4 | ||||
-rw-r--r-- | arch/microblaze/include/asm/exceptions.h | 3 | ||||
-rw-r--r-- | arch/microblaze/include/asm/ftrace.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/hw_irq.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/io.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/of_platform.h | 10 | ||||
-rw-r--r-- | arch/microblaze/include/asm/processor.h | 21 | ||||
-rw-r--r-- | arch/microblaze/include/asm/ptrace.h | 4 | ||||
-rw-r--r-- | arch/microblaze/include/asm/socket.h | 3 | ||||
-rw-r--r-- | arch/microblaze/include/asm/unistd.h | 4 | ||||
-rw-r--r-- | arch/microblaze/include/asm/user.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/vga.h | 1 |
15 files changed, 28 insertions, 33 deletions
diff --git a/arch/microblaze/include/asm/auxvec.h b/arch/microblaze/include/asm/auxvec.h index e69de29bb2d1..8b137891791f 100644 --- a/arch/microblaze/include/asm/auxvec.h +++ b/arch/microblaze/include/asm/auxvec.h | |||
@@ -0,0 +1 @@ | |||
diff --git a/arch/microblaze/include/asm/cache.h b/arch/microblaze/include/asm/cache.h index c4c64b43c074..c209c47509d5 100644 --- a/arch/microblaze/include/asm/cache.h +++ b/arch/microblaze/include/asm/cache.h | |||
@@ -37,9 +37,4 @@ void _invalidate_dcache(unsigned int addr); | |||
37 | #define __disable_dcache() _disable_dcache() | 37 | #define __disable_dcache() _disable_dcache() |
38 | #define __invalidate_dcache(addr) _invalidate_dcache(addr) | 38 | #define __invalidate_dcache(addr) _invalidate_dcache(addr) |
39 | 39 | ||
40 | /* FIXME - I don't think this is right */ | ||
41 | #ifdef CONFIG_XILINX_UNCACHED_SHADOW | ||
42 | #define UNCACHED_SHADOW_MASK (CONFIG_XILINX_ERAM_SIZE) | ||
43 | #endif | ||
44 | |||
45 | #endif /* _ASM_MICROBLAZE_CACHE_H */ | 40 | #endif /* _ASM_MICROBLAZE_CACHE_H */ |
diff --git a/arch/microblaze/include/asm/cputable.h b/arch/microblaze/include/asm/cputable.h index e69de29bb2d1..8b137891791f 100644 --- a/arch/microblaze/include/asm/cputable.h +++ b/arch/microblaze/include/asm/cputable.h | |||
@@ -0,0 +1 @@ | |||
diff --git a/arch/microblaze/include/asm/entry.h b/arch/microblaze/include/asm/entry.h index 7f57e42ee467..e4c3aef884df 100644 --- a/arch/microblaze/include/asm/entry.h +++ b/arch/microblaze/include/asm/entry.h | |||
@@ -29,7 +29,9 @@ DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */ | |||
29 | DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */ | 29 | DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */ |
30 | DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */ | 30 | DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */ |
31 | DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */ | 31 | DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */ |
32 | DECLARE_PER_CPU(unsigned int, SYSCALL_SAVE); /* Saved syscall number */ | ||
33 | # endif /* __ASSEMBLY__ */ | 32 | # endif /* __ASSEMBLY__ */ |
34 | 33 | ||
34 | /* noMMU hasn't any space for args */ | ||
35 | # define STATE_SAVE_ARG_SPACE (0) | ||
36 | |||
35 | #endif /* _ASM_MICROBLAZE_ENTRY_H */ | 37 | #endif /* _ASM_MICROBLAZE_ENTRY_H */ |
diff --git a/arch/microblaze/include/asm/exceptions.h b/arch/microblaze/include/asm/exceptions.h index 4cdd2159f470..24ca540e77c0 100644 --- a/arch/microblaze/include/asm/exceptions.h +++ b/arch/microblaze/include/asm/exceptions.h | |||
@@ -61,6 +61,9 @@ | |||
61 | asmlinkage void full_exception(struct pt_regs *regs, unsigned int type, | 61 | asmlinkage void full_exception(struct pt_regs *regs, unsigned int type, |
62 | int fsr, int addr); | 62 | int fsr, int addr); |
63 | 63 | ||
64 | void die(const char *str, struct pt_regs *fp, long err); | ||
65 | void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr); | ||
66 | |||
64 | #if defined(CONFIG_XMON) | 67 | #if defined(CONFIG_XMON) |
65 | extern void xmon(struct pt_regs *regs); | 68 | extern void xmon(struct pt_regs *regs); |
66 | extern int xmon_bpt(struct pt_regs *regs); | 69 | extern int xmon_bpt(struct pt_regs *regs); |
diff --git a/arch/microblaze/include/asm/ftrace.h b/arch/microblaze/include/asm/ftrace.h new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/arch/microblaze/include/asm/ftrace.h | |||
@@ -0,0 +1 @@ | |||
diff --git a/arch/microblaze/include/asm/hw_irq.h b/arch/microblaze/include/asm/hw_irq.h index e69de29bb2d1..8b137891791f 100644 --- a/arch/microblaze/include/asm/hw_irq.h +++ b/arch/microblaze/include/asm/hw_irq.h | |||
@@ -0,0 +1 @@ | |||
diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index cfab0342588d..8b5853ee6b5c 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <asm/byteorder.h> | 12 | #include <asm/byteorder.h> |
13 | #include <asm/page.h> | 13 | #include <asm/page.h> |
14 | #include <linux/types.h> | 14 | #include <linux/types.h> |
15 | #include <asm/page.h> | ||
16 | 15 | ||
17 | #define IO_SPACE_LIMIT (0xFFFFFFFF) | 16 | #define IO_SPACE_LIMIT (0xFFFFFFFF) |
18 | 17 | ||
diff --git a/arch/microblaze/include/asm/of_platform.h b/arch/microblaze/include/asm/of_platform.h index 187c0eedaece..37491276c6ca 100644 --- a/arch/microblaze/include/asm/of_platform.h +++ b/arch/microblaze/include/asm/of_platform.h | |||
@@ -36,16 +36,6 @@ static const struct of_device_id of_default_bus_ids[] = { | |||
36 | {}, | 36 | {}, |
37 | }; | 37 | }; |
38 | 38 | ||
39 | /* Platform drivers register/unregister */ | ||
40 | static inline int of_register_platform_driver(struct of_platform_driver *drv) | ||
41 | { | ||
42 | return of_register_driver(drv, &of_platform_bus_type); | ||
43 | } | ||
44 | static inline void of_unregister_platform_driver(struct of_platform_driver *drv) | ||
45 | { | ||
46 | of_unregister_driver(drv); | ||
47 | } | ||
48 | |||
49 | /* Platform devices and busses creation */ | 39 | /* Platform devices and busses creation */ |
50 | extern struct of_device *of_platform_device_create(struct device_node *np, | 40 | extern struct of_device *of_platform_device_create(struct device_node *np, |
51 | const char *bus_id, | 41 | const char *bus_id, |
diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/include/asm/processor.h index d8e15434ba21..9329029d2614 100644 --- a/arch/microblaze/include/asm/processor.h +++ b/arch/microblaze/include/asm/processor.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <asm/setup.h> | 15 | #include <asm/setup.h> |
16 | #include <asm/registers.h> | 16 | #include <asm/registers.h> |
17 | #include <asm/segment.h> | 17 | #include <asm/segment.h> |
18 | #include <asm/entry.h> | ||
19 | #include <asm/current.h> | ||
18 | 20 | ||
19 | # ifndef __ASSEMBLY__ | 21 | # ifndef __ASSEMBLY__ |
20 | /* from kernel/cpu/mb.c */ | 22 | /* from kernel/cpu/mb.c */ |
@@ -26,6 +28,12 @@ extern const struct seq_operations cpuinfo_op; | |||
26 | 28 | ||
27 | # endif /* __ASSEMBLY__ */ | 29 | # endif /* __ASSEMBLY__ */ |
28 | 30 | ||
31 | #define task_pt_regs(tsk) \ | ||
32 | (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1) | ||
33 | |||
34 | /* Do necessary setup to start up a newly executed thread. */ | ||
35 | void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); | ||
36 | |||
29 | /* | 37 | /* |
30 | * User space process size: memory size | 38 | * User space process size: memory size |
31 | * | 39 | * |
@@ -55,16 +63,6 @@ struct task_struct; | |||
55 | struct thread_struct { }; | 63 | struct thread_struct { }; |
56 | # define INIT_THREAD { } | 64 | # define INIT_THREAD { } |
57 | 65 | ||
58 | /* Do necessary setup to start up a newly executed thread. */ | ||
59 | static inline void start_thread(struct pt_regs *regs, | ||
60 | unsigned long pc, | ||
61 | unsigned long usp) | ||
62 | { | ||
63 | regs->pc = pc; | ||
64 | regs->r1 = usp; | ||
65 | regs->kernel_mode = 0; | ||
66 | } | ||
67 | |||
68 | /* Free all resources held by a thread. */ | 66 | /* Free all resources held by a thread. */ |
69 | static inline void release_thread(struct task_struct *dead_task) | 67 | static inline void release_thread(struct task_struct *dead_task) |
70 | { | 68 | { |
@@ -84,9 +82,6 @@ extern unsigned long get_wchan(struct task_struct *p); | |||
84 | */ | 82 | */ |
85 | extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); | 83 | extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); |
86 | 84 | ||
87 | # define task_pt_regs(tsk) \ | ||
88 | (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1) | ||
89 | |||
90 | # define KSTK_EIP(tsk) (0) | 85 | # define KSTK_EIP(tsk) (0) |
91 | # define KSTK_ESP(tsk) (0) | 86 | # define KSTK_ESP(tsk) (0) |
92 | 87 | ||
diff --git a/arch/microblaze/include/asm/ptrace.h b/arch/microblaze/include/asm/ptrace.h index f1f03486428a..55015bce5e47 100644 --- a/arch/microblaze/include/asm/ptrace.h +++ b/arch/microblaze/include/asm/ptrace.h | |||
@@ -52,10 +52,10 @@ struct pt_regs { | |||
52 | microblaze_reg_t ear; | 52 | microblaze_reg_t ear; |
53 | microblaze_reg_t esr; | 53 | microblaze_reg_t esr; |
54 | microblaze_reg_t fsr; | 54 | microblaze_reg_t fsr; |
55 | int kernel_mode; | 55 | int pt_mode; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | #define kernel_mode(regs) ((regs)->kernel_mode) | 58 | #define kernel_mode(regs) ((regs)->pt_mode) |
59 | #define user_mode(regs) (!kernel_mode(regs)) | 59 | #define user_mode(regs) (!kernel_mode(regs)) |
60 | 60 | ||
61 | #define instruction_pointer(regs) ((regs)->pc) | 61 | #define instruction_pointer(regs) ((regs)->pc) |
diff --git a/arch/microblaze/include/asm/socket.h b/arch/microblaze/include/asm/socket.h index f919b6b540ac..825936860314 100644 --- a/arch/microblaze/include/asm/socket.h +++ b/arch/microblaze/include/asm/socket.h | |||
@@ -63,4 +63,7 @@ | |||
63 | 63 | ||
64 | #define SO_MARK 36 | 64 | #define SO_MARK 36 |
65 | 65 | ||
66 | #define SO_TIMESTAMPING 37 | ||
67 | #define SCM_TIMESTAMPING SO_TIMESTAMPING | ||
68 | |||
66 | #endif /* _ASM_MICROBLAZE_SOCKET_H */ | 69 | #endif /* _ASM_MICROBLAZE_SOCKET_H */ |
diff --git a/arch/microblaze/include/asm/unistd.h b/arch/microblaze/include/asm/unistd.h index d9d3903fde3f..b5e2f5fa5c53 100644 --- a/arch/microblaze/include/asm/unistd.h +++ b/arch/microblaze/include/asm/unistd.h | |||
@@ -378,8 +378,10 @@ | |||
378 | #define __NR_sendmsg 360 /* new */ | 378 | #define __NR_sendmsg 360 /* new */ |
379 | #define __NR_recvmsg 361 /* new */ | 379 | #define __NR_recvmsg 361 /* new */ |
380 | #define __NR_accept04 362 /* new */ | 380 | #define __NR_accept04 362 /* new */ |
381 | #define __NR_preadv 363 /* new */ | ||
382 | #define __NR_pwritev 364 /* new */ | ||
381 | 383 | ||
382 | #define __NR_syscalls 363 | 384 | #define __NR_syscalls 365 |
383 | 385 | ||
384 | #ifdef __KERNEL__ | 386 | #ifdef __KERNEL__ |
385 | #ifndef __ASSEMBLY__ | 387 | #ifndef __ASSEMBLY__ |
diff --git a/arch/microblaze/include/asm/user.h b/arch/microblaze/include/asm/user.h index e69de29bb2d1..8b137891791f 100644 --- a/arch/microblaze/include/asm/user.h +++ b/arch/microblaze/include/asm/user.h | |||
@@ -0,0 +1 @@ | |||
diff --git a/arch/microblaze/include/asm/vga.h b/arch/microblaze/include/asm/vga.h index e69de29bb2d1..8b137891791f 100644 --- a/arch/microblaze/include/asm/vga.h +++ b/arch/microblaze/include/asm/vga.h | |||
@@ -0,0 +1 @@ | |||