diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-11 03:56:12 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-11 03:56:12 -0400 |
commit | 24fcbacedb0d83cabc6761acbecfbf751265ce52 (patch) | |
tree | 7147b206304b028c3cfd5de6317e5c8510098ca9 /include/asm-m68k | |
parent | 2f614fe04f4463ff22234133319067d7361f54e5 (diff) | |
parent | 53a5fbdc2dff55161a206ed1a1385a8fa8055c34 (diff) |
Merge branch 'master' into upstream-fixes
Diffstat (limited to 'include/asm-m68k')
-rw-r--r-- | include/asm-m68k/atari_stdma.h | 3 | ||||
-rw-r--r-- | include/asm-m68k/dma-mapping.h | 7 | ||||
-rw-r--r-- | include/asm-m68k/floppy.h | 10 | ||||
-rw-r--r-- | include/asm-m68k/ide.h | 2 | ||||
-rw-r--r-- | include/asm-m68k/irq.h | 11 | ||||
-rw-r--r-- | include/asm-m68k/irq_regs.h | 1 | ||||
-rw-r--r-- | include/asm-m68k/mac_iop.h | 6 | ||||
-rw-r--r-- | include/asm-m68k/machdep.h | 2 | ||||
-rw-r--r-- | include/asm-m68k/signal.h | 1 | ||||
-rw-r--r-- | include/asm-m68k/string.h | 198 | ||||
-rw-r--r-- | include/asm-m68k/sun3xflop.h | 7 | ||||
-rw-r--r-- | include/asm-m68k/system.h | 6 | ||||
-rw-r--r-- | include/asm-m68k/unistd.h | 31 | ||||
-rw-r--r-- | include/asm-m68k/user.h | 2 |
14 files changed, 149 insertions, 138 deletions
diff --git a/include/asm-m68k/atari_stdma.h b/include/asm-m68k/atari_stdma.h index b4eadf852738..8e389b7fa70c 100644 --- a/include/asm-m68k/atari_stdma.h +++ b/include/asm-m68k/atari_stdma.h | |||
@@ -8,8 +8,7 @@ | |||
8 | 8 | ||
9 | /***************************** Prototypes *****************************/ | 9 | /***************************** Prototypes *****************************/ |
10 | 10 | ||
11 | void stdma_lock(irqreturn_t (*handler)(int, void *, struct pt_regs *), | 11 | void stdma_lock(irq_handler_t handler, void *data); |
12 | void *data); | ||
13 | void stdma_release( void ); | 12 | void stdma_release( void ); |
14 | int stdma_others_waiting( void ); | 13 | int stdma_others_waiting( void ); |
15 | int stdma_islocked( void ); | 14 | int stdma_islocked( void ); |
diff --git a/include/asm-m68k/dma-mapping.h b/include/asm-m68k/dma-mapping.h index cebbb03370ec..d90d841d3dfd 100644 --- a/include/asm-m68k/dma-mapping.h +++ b/include/asm-m68k/dma-mapping.h | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | struct scatterlist; | 6 | struct scatterlist; |
7 | 7 | ||
8 | #ifndef CONFIG_MMU_SUN3 | ||
8 | static inline int dma_supported(struct device *dev, u64 mask) | 9 | static inline int dma_supported(struct device *dev, u64 mask) |
9 | { | 10 | { |
10 | return 1; | 11 | return 1; |
@@ -26,7 +27,7 @@ static inline int dma_is_consistent(dma_addr_t dma_addr) | |||
26 | } | 27 | } |
27 | 28 | ||
28 | extern void *dma_alloc_coherent(struct device *, size_t, | 29 | extern void *dma_alloc_coherent(struct device *, size_t, |
29 | dma_addr_t *, int); | 30 | dma_addr_t *, gfp_t); |
30 | extern void dma_free_coherent(struct device *, size_t, | 31 | extern void dma_free_coherent(struct device *, size_t, |
31 | void *, dma_addr_t); | 32 | void *, dma_addr_t); |
32 | 33 | ||
@@ -88,4 +89,8 @@ static inline int dma_mapping_error(dma_addr_t handle) | |||
88 | return 0; | 89 | return 0; |
89 | } | 90 | } |
90 | 91 | ||
92 | #else | ||
93 | #include <asm-generic/dma-mapping-broken.h> | ||
94 | #endif | ||
95 | |||
91 | #endif /* _M68K_DMA_MAPPING_H */ | 96 | #endif /* _M68K_DMA_MAPPING_H */ |
diff --git a/include/asm-m68k/floppy.h b/include/asm-m68k/floppy.h index 57f4fdda65ab..45dc908932a3 100644 --- a/include/asm-m68k/floppy.h +++ b/include/asm-m68k/floppy.h | |||
@@ -17,8 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/vmalloc.h> | 18 | #include <linux/vmalloc.h> |
19 | 19 | ||
20 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | 20 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id); |
21 | struct pt_regs *regs); | ||
22 | 21 | ||
23 | /* constants... */ | 22 | /* constants... */ |
24 | 23 | ||
@@ -184,8 +183,7 @@ static void fd_disable_dma(void) | |||
184 | 183 | ||
185 | /* this is the only truly Q40 specific function */ | 184 | /* this is the only truly Q40 specific function */ |
186 | 185 | ||
187 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | 186 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id) |
188 | struct pt_regs *regs) | ||
189 | { | 187 | { |
190 | register unsigned char st; | 188 | register unsigned char st; |
191 | 189 | ||
@@ -198,7 +196,7 @@ asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | |||
198 | static int dma_wait=0; | 196 | static int dma_wait=0; |
199 | #endif | 197 | #endif |
200 | if(!doing_pdma) { | 198 | if(!doing_pdma) { |
201 | floppy_interrupt(irq, dev_id, regs); | 199 | floppy_interrupt(irq, dev_id); |
202 | return IRQ_HANDLED; | 200 | return IRQ_HANDLED; |
203 | } | 201 | } |
204 | 202 | ||
@@ -246,7 +244,7 @@ asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | |||
246 | dma_wait=0; | 244 | dma_wait=0; |
247 | #endif | 245 | #endif |
248 | doing_pdma = 0; | 246 | doing_pdma = 0; |
249 | floppy_interrupt(irq, dev_id, regs); | 247 | floppy_interrupt(irq, dev_id); |
250 | return IRQ_HANDLED; | 248 | return IRQ_HANDLED; |
251 | } | 249 | } |
252 | #ifdef TRACE_FLPY_INT | 250 | #ifdef TRACE_FLPY_INT |
diff --git a/include/asm-m68k/ide.h b/include/asm-m68k/ide.h index 365f76fb8013..f9ffb2cbbae8 100644 --- a/include/asm-m68k/ide.h +++ b/include/asm-m68k/ide.h | |||
@@ -123,7 +123,7 @@ static __inline__ void ide_release_lock (void) | |||
123 | } | 123 | } |
124 | 124 | ||
125 | static __inline__ void | 125 | static __inline__ void |
126 | ide_get_lock(irqreturn_t (*handler)(int, void *, struct pt_regs *), void *data) | 126 | ide_get_lock(irq_handler_t handler, void *data) |
127 | { | 127 | { |
128 | if (MACH_IS_ATARI) { | 128 | if (MACH_IS_ATARI) { |
129 | if (falconide_intr_lock == 0) { | 129 | if (falconide_intr_lock == 0) { |
diff --git a/include/asm-m68k/irq.h b/include/asm-m68k/irq.h index 3257f9881002..4901cb105e2f 100644 --- a/include/asm-m68k/irq.h +++ b/include/asm-m68k/irq.h | |||
@@ -83,7 +83,7 @@ struct pt_regs; | |||
83 | * interrupt source (if it supports chaining). | 83 | * interrupt source (if it supports chaining). |
84 | */ | 84 | */ |
85 | typedef struct irq_node { | 85 | typedef struct irq_node { |
86 | int (*handler)(int, void *, struct pt_regs *); | 86 | int (*handler)(int, void *); |
87 | void *dev_id; | 87 | void *dev_id; |
88 | struct irq_node *next; | 88 | struct irq_node *next; |
89 | unsigned long flags; | 89 | unsigned long flags; |
@@ -93,12 +93,12 @@ typedef struct irq_node { | |||
93 | /* | 93 | /* |
94 | * This structure has only 4 elements for speed reasons | 94 | * This structure has only 4 elements for speed reasons |
95 | */ | 95 | */ |
96 | typedef struct irq_handler { | 96 | struct irq_handler { |
97 | int (*handler)(int, void *, struct pt_regs *); | 97 | int (*handler)(int, void *); |
98 | unsigned long flags; | 98 | unsigned long flags; |
99 | void *dev_id; | 99 | void *dev_id; |
100 | const char *devname; | 100 | const char *devname; |
101 | } irq_handler_t; | 101 | }; |
102 | 102 | ||
103 | struct irq_controller { | 103 | struct irq_controller { |
104 | const char *name; | 104 | const char *name; |
@@ -122,6 +122,7 @@ extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, | |||
122 | void (*handler)(unsigned int, struct pt_regs *)); | 122 | void (*handler)(unsigned int, struct pt_regs *)); |
123 | extern void m68k_setup_irq_controller(struct irq_controller *, unsigned int, unsigned int); | 123 | extern void m68k_setup_irq_controller(struct irq_controller *, unsigned int, unsigned int); |
124 | 124 | ||
125 | asmlinkage void m68k_handle_int(unsigned int, struct pt_regs *); | 125 | asmlinkage void m68k_handle_int(unsigned int); |
126 | asmlinkage void __m68k_handle_int(unsigned int, struct pt_regs *); | ||
126 | 127 | ||
127 | #endif /* _M68K_IRQ_H_ */ | 128 | #endif /* _M68K_IRQ_H_ */ |
diff --git a/include/asm-m68k/irq_regs.h b/include/asm-m68k/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-m68k/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-m68k/mac_iop.h b/include/asm-m68k/mac_iop.h index b0d2e3473537..a2c7e6fcca38 100644 --- a/include/asm-m68k/mac_iop.h +++ b/include/asm-m68k/mac_iop.h | |||
@@ -143,17 +143,17 @@ struct iop_msg { | |||
143 | int status; /* status of this message */ | 143 | int status; /* status of this message */ |
144 | __u8 message[IOP_MSG_LEN]; /* the message being sent/received */ | 144 | __u8 message[IOP_MSG_LEN]; /* the message being sent/received */ |
145 | __u8 reply[IOP_MSG_LEN]; /* the reply to the message */ | 145 | __u8 reply[IOP_MSG_LEN]; /* the reply to the message */ |
146 | void (*handler)(struct iop_msg *, struct pt_regs *); | 146 | void (*handler)(struct iop_msg *); |
147 | /* function to call when reply recvd */ | 147 | /* function to call when reply recvd */ |
148 | }; | 148 | }; |
149 | 149 | ||
150 | extern int iop_scc_present,iop_ism_present; | 150 | extern int iop_scc_present,iop_ism_present; |
151 | 151 | ||
152 | extern int iop_listen(uint, uint, | 152 | extern int iop_listen(uint, uint, |
153 | void (*handler)(struct iop_msg *, struct pt_regs *), | 153 | void (*handler)(struct iop_msg *), |
154 | const char *); | 154 | const char *); |
155 | extern int iop_send_message(uint, uint, void *, uint, __u8 *, | 155 | extern int iop_send_message(uint, uint, void *, uint, __u8 *, |
156 | void (*)(struct iop_msg *, struct pt_regs *)); | 156 | void (*)(struct iop_msg *)); |
157 | extern void iop_complete_message(struct iop_msg *); | 157 | extern void iop_complete_message(struct iop_msg *); |
158 | extern void iop_upload_code(uint, __u8 *, uint, __u16); | 158 | extern void iop_upload_code(uint, __u8 *, uint, __u16); |
159 | extern void iop_download_code(uint, __u8 *, uint, __u16); | 159 | extern void iop_download_code(uint, __u8 *, uint, __u16); |
diff --git a/include/asm-m68k/machdep.h b/include/asm-m68k/machdep.h index df898f27e434..26d2b91209c5 100644 --- a/include/asm-m68k/machdep.h +++ b/include/asm-m68k/machdep.h | |||
@@ -10,7 +10,7 @@ struct rtc_time; | |||
10 | struct rtc_pll_info; | 10 | struct rtc_pll_info; |
11 | struct buffer_head; | 11 | struct buffer_head; |
12 | 12 | ||
13 | extern void (*mach_sched_init) (irqreturn_t (*handler)(int, void *, struct pt_regs *)); | 13 | extern void (*mach_sched_init) (irq_handler_t handler); |
14 | /* machine dependent irq functions */ | 14 | /* machine dependent irq functions */ |
15 | extern void (*mach_init_IRQ) (void); | 15 | extern void (*mach_init_IRQ) (void); |
16 | extern void (*mach_get_model) (char *model); | 16 | extern void (*mach_get_model) (char *model); |
diff --git a/include/asm-m68k/signal.h b/include/asm-m68k/signal.h index de1ba6ead3b4..3db8a81942f1 100644 --- a/include/asm-m68k/signal.h +++ b/include/asm-m68k/signal.h | |||
@@ -198,6 +198,7 @@ static inline int sigfindinword(unsigned long word) | |||
198 | return word ^ 31; | 198 | return word ^ 31; |
199 | } | 199 | } |
200 | 200 | ||
201 | struct pt_regs; | ||
201 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); | 202 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); |
202 | 203 | ||
203 | #endif /* __KERNEL__ */ | 204 | #endif /* __KERNEL__ */ |
diff --git a/include/asm-m68k/string.h b/include/asm-m68k/string.h index 6c59215b285e..2eb7df1e0f5d 100644 --- a/include/asm-m68k/string.h +++ b/include/asm-m68k/string.h | |||
@@ -1,138 +1,114 @@ | |||
1 | #ifndef _M68K_STRING_H_ | 1 | #ifndef _M68K_STRING_H_ |
2 | #define _M68K_STRING_H_ | 2 | #define _M68K_STRING_H_ |
3 | 3 | ||
4 | #include <asm/setup.h> | 4 | #include <linux/types.h> |
5 | #include <asm/page.h> | 5 | #include <linux/compiler.h> |
6 | 6 | ||
7 | #define __HAVE_ARCH_STRCPY | 7 | static inline size_t __kernel_strlen(const char *s) |
8 | static inline char * strcpy(char * dest,const char *src) | ||
9 | { | 8 | { |
10 | char *xdest = dest; | 9 | const char *sc; |
11 | |||
12 | __asm__ __volatile__ | ||
13 | ("1:\tmoveb %1@+,%0@+\n\t" | ||
14 | "jne 1b" | ||
15 | : "=a" (dest), "=a" (src) | ||
16 | : "0" (dest), "1" (src) : "memory"); | ||
17 | return xdest; | ||
18 | } | ||
19 | 10 | ||
20 | #define __HAVE_ARCH_STRNCPY | 11 | for (sc = s; *sc++; ) |
21 | static inline char * strncpy(char *dest, const char *src, size_t n) | 12 | ; |
22 | { | 13 | return sc - s - 1; |
23 | char *xdest = dest; | ||
24 | |||
25 | if (n == 0) | ||
26 | return xdest; | ||
27 | |||
28 | __asm__ __volatile__ | ||
29 | ("1:\tmoveb %1@+,%0@+\n\t" | ||
30 | "jeq 2f\n\t" | ||
31 | "subql #1,%2\n\t" | ||
32 | "jne 1b\n\t" | ||
33 | "2:" | ||
34 | : "=a" (dest), "=a" (src), "=d" (n) | ||
35 | : "0" (dest), "1" (src), "2" (n) | ||
36 | : "memory"); | ||
37 | return xdest; | ||
38 | } | 14 | } |
39 | 15 | ||
40 | #define __HAVE_ARCH_STRCAT | 16 | static inline char *__kernel_strcpy(char *dest, const char *src) |
41 | static inline char * strcat(char * dest, const char * src) | ||
42 | { | 17 | { |
43 | char *tmp = dest; | 18 | char *xdest = dest; |
44 | 19 | ||
45 | while (*dest) | 20 | asm volatile ("\n" |
46 | dest++; | 21 | "1: move.b (%1)+,(%0)+\n" |
47 | while ((*dest++ = *src++)) | 22 | " jne 1b" |
48 | ; | 23 | : "+a" (dest), "+a" (src) |
49 | 24 | : : "memory"); | |
50 | return tmp; | 25 | return xdest; |
51 | } | 26 | } |
52 | 27 | ||
53 | #define __HAVE_ARCH_STRNCAT | 28 | #ifndef __IN_STRING_C |
54 | static inline char * strncat(char *dest, const char *src, size_t count) | ||
55 | { | ||
56 | char *tmp = dest; | ||
57 | |||
58 | if (count) { | ||
59 | while (*dest) | ||
60 | dest++; | ||
61 | while ((*dest++ = *src++)) { | ||
62 | if (--count == 0) { | ||
63 | *dest++='\0'; | ||
64 | break; | ||
65 | } | ||
66 | } | ||
67 | } | ||
68 | 29 | ||
69 | return tmp; | 30 | #define __HAVE_ARCH_STRLEN |
70 | } | 31 | #define strlen(s) (__builtin_constant_p(s) ? \ |
32 | __builtin_strlen(s) : \ | ||
33 | __kernel_strlen(s)) | ||
71 | 34 | ||
72 | #define __HAVE_ARCH_STRCHR | 35 | #define __HAVE_ARCH_STRNLEN |
73 | static inline char * strchr(const char * s, int c) | 36 | static inline size_t strnlen(const char *s, size_t count) |
74 | { | 37 | { |
75 | const char ch = c; | 38 | const char *sc = s; |
76 | 39 | ||
77 | for(; *s != ch; ++s) | 40 | asm volatile ("\n" |
78 | if (*s == '\0') | 41 | "1: subq.l #1,%1\n" |
79 | return( NULL ); | 42 | " jcs 2f\n" |
80 | return( (char *) s); | 43 | " tst.b (%0)+\n" |
44 | " jne 1b\n" | ||
45 | " subq.l #1,%0\n" | ||
46 | "2:" | ||
47 | : "+a" (sc), "+d" (count)); | ||
48 | return sc - s; | ||
81 | } | 49 | } |
82 | 50 | ||
83 | /* strstr !! */ | 51 | #define __HAVE_ARCH_STRCPY |
52 | #if __GNUC__ >= 4 | ||
53 | #define strcpy(d, s) (__builtin_constant_p(s) && \ | ||
54 | __builtin_strlen(s) <= 32 ? \ | ||
55 | __builtin_strcpy(d, s) : \ | ||
56 | __kernel_strcpy(d, s)) | ||
57 | #else | ||
58 | #define strcpy(d, s) __kernel_strcpy(d, s) | ||
59 | #endif | ||
84 | 60 | ||
85 | #define __HAVE_ARCH_STRLEN | 61 | #define __HAVE_ARCH_STRNCPY |
86 | static inline size_t strlen(const char * s) | 62 | static inline char *strncpy(char *dest, const char *src, size_t n) |
87 | { | 63 | { |
88 | const char *sc; | 64 | char *xdest = dest; |
89 | for (sc = s; *sc != '\0'; ++sc) ; | 65 | |
90 | return(sc - s); | 66 | asm volatile ("\n" |
67 | " jra 2f\n" | ||
68 | "1: move.b (%1),(%0)+\n" | ||
69 | " jeq 2f\n" | ||
70 | " addq.l #1,%1\n" | ||
71 | "2: subq.l #1,%2\n" | ||
72 | " jcc 1b\n" | ||
73 | : "+a" (dest), "+a" (src), "+d" (n) | ||
74 | : : "memory"); | ||
75 | return xdest; | ||
91 | } | 76 | } |
92 | 77 | ||
93 | /* strnlen !! */ | 78 | #define __HAVE_ARCH_STRCAT |
79 | #define strcat(d, s) ({ \ | ||
80 | char *__d = (d); \ | ||
81 | strcpy(__d + strlen(__d), (s)); \ | ||
82 | }) | ||
94 | 83 | ||
95 | #define __HAVE_ARCH_STRCMP | 84 | #define __HAVE_ARCH_STRCHR |
96 | static inline int strcmp(const char * cs,const char * ct) | 85 | static inline char *strchr(const char *s, int c) |
97 | { | 86 | { |
98 | char __res; | 87 | char sc, ch = c; |
99 | 88 | ||
100 | __asm__ | 89 | for (; (sc = *s++) != ch; ) { |
101 | ("1:\tmoveb %0@+,%2\n\t" /* get *cs */ | 90 | if (!sc) |
102 | "cmpb %1@+,%2\n\t" /* compare a byte */ | 91 | return NULL; |
103 | "jne 2f\n\t" /* not equal, break out */ | 92 | } |
104 | "tstb %2\n\t" /* at end of cs? */ | 93 | return (char *)s - 1; |
105 | "jne 1b\n\t" /* no, keep going */ | ||
106 | "jra 3f\n\t" /* strings are equal */ | ||
107 | "2:\tsubb %1@-,%2\n\t" /* *cs - *ct */ | ||
108 | "3:" | ||
109 | : "=a" (cs), "=a" (ct), "=d" (__res) | ||
110 | : "0" (cs), "1" (ct)); | ||
111 | return __res; | ||
112 | } | 94 | } |
113 | 95 | ||
114 | #define __HAVE_ARCH_STRNCMP | 96 | #define __HAVE_ARCH_STRCMP |
115 | static inline int strncmp(const char * cs,const char * ct,size_t count) | 97 | static inline int strcmp(const char *cs, const char *ct) |
116 | { | 98 | { |
117 | char __res; | 99 | char res; |
118 | 100 | ||
119 | if (!count) | 101 | asm ("\n" |
120 | return 0; | 102 | "1: move.b (%0)+,%2\n" /* get *cs */ |
121 | __asm__ | 103 | " cmp.b (%1)+,%2\n" /* compare a byte */ |
122 | ("1:\tmovb %0@+,%3\n\t" /* get *cs */ | 104 | " jne 2f\n" /* not equal, break out */ |
123 | "cmpb %1@+,%3\n\t" /* compare a byte */ | 105 | " tst.b %2\n" /* at end of cs? */ |
124 | "jne 3f\n\t" /* not equal, break out */ | 106 | " jne 1b\n" /* no, keep going */ |
125 | "tstb %3\n\t" /* at end of cs? */ | 107 | " jra 3f\n" /* strings are equal */ |
126 | "jeq 4f\n\t" /* yes, all done */ | 108 | "2: sub.b -(%1),%2\n" /* *cs - *ct */ |
127 | "subql #1,%2\n\t" /* no, adjust count */ | 109 | "3:" |
128 | "jne 1b\n\t" /* more to do, keep going */ | 110 | : "+a" (cs), "+a" (ct), "=d" (res)); |
129 | "2:\tmoveq #0,%3\n\t" /* strings are equal */ | 111 | return res; |
130 | "jra 4f\n\t" | ||
131 | "3:\tsubb %1@-,%3\n\t" /* *cs - *ct */ | ||
132 | "4:" | ||
133 | : "=a" (cs), "=a" (ct), "=d" (count), "=d" (__res) | ||
134 | : "0" (cs), "1" (ct), "2" (count)); | ||
135 | return __res; | ||
136 | } | 112 | } |
137 | 113 | ||
138 | #define __HAVE_ARCH_MEMSET | 114 | #define __HAVE_ARCH_MEMSET |
@@ -150,4 +126,6 @@ extern void *memmove(void *, const void *, __kernel_size_t); | |||
150 | extern int memcmp(const void *, const void *, __kernel_size_t); | 126 | extern int memcmp(const void *, const void *, __kernel_size_t); |
151 | #define memcmp(d, s, n) __builtin_memcmp(d, s, n) | 127 | #define memcmp(d, s, n) __builtin_memcmp(d, s, n) |
152 | 128 | ||
129 | #endif | ||
130 | |||
153 | #endif /* _M68K_STRING_H_ */ | 131 | #endif /* _M68K_STRING_H_ */ |
diff --git a/include/asm-m68k/sun3xflop.h b/include/asm-m68k/sun3xflop.h index ca8cc4113843..32c45f84ac60 100644 --- a/include/asm-m68k/sun3xflop.h +++ b/include/asm-m68k/sun3xflop.h | |||
@@ -111,8 +111,7 @@ static void sun3x_82072_fd_outb(unsigned char value, int port) | |||
111 | } | 111 | } |
112 | 112 | ||
113 | 113 | ||
114 | asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id, | 114 | asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id) |
115 | struct pt_regs * regs) | ||
116 | { | 115 | { |
117 | register unsigned char st; | 116 | register unsigned char st; |
118 | 117 | ||
@@ -125,7 +124,7 @@ asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id, | |||
125 | static int dma_wait=0; | 124 | static int dma_wait=0; |
126 | #endif | 125 | #endif |
127 | if(!doing_pdma) { | 126 | if(!doing_pdma) { |
128 | floppy_interrupt(irq, dev_id, regs); | 127 | floppy_interrupt(irq, dev_id); |
129 | return IRQ_HANDLED; | 128 | return IRQ_HANDLED; |
130 | } | 129 | } |
131 | 130 | ||
@@ -189,7 +188,7 @@ asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id, | |||
189 | dma_wait=0; | 188 | dma_wait=0; |
190 | #endif | 189 | #endif |
191 | 190 | ||
192 | floppy_interrupt(irq, dev_id, regs); | 191 | floppy_interrupt(irq, dev_id); |
193 | return IRQ_HANDLED; | 192 | return IRQ_HANDLED; |
194 | } | 193 | } |
195 | 194 | ||
diff --git a/include/asm-m68k/system.h b/include/asm-m68k/system.h index 131a0cb0f491..243dd13e6bfc 100644 --- a/include/asm-m68k/system.h +++ b/include/asm-m68k/system.h | |||
@@ -78,13 +78,13 @@ static inline int irqs_disabled(void) | |||
78 | #define mb() barrier() | 78 | #define mb() barrier() |
79 | #define rmb() barrier() | 79 | #define rmb() barrier() |
80 | #define wmb() barrier() | 80 | #define wmb() barrier() |
81 | #define read_barrier_depends() do { } while(0) | 81 | #define read_barrier_depends() ((void)0) |
82 | #define set_mb(var, value) do { xchg(&var, value); } while (0) | 82 | #define set_mb(var, value) ({ (var) = (value); wmb(); }) |
83 | 83 | ||
84 | #define smp_mb() barrier() | 84 | #define smp_mb() barrier() |
85 | #define smp_rmb() barrier() | 85 | #define smp_rmb() barrier() |
86 | #define smp_wmb() barrier() | 86 | #define smp_wmb() barrier() |
87 | #define smp_read_barrier_depends() do { } while(0) | 87 | #define smp_read_barrier_depends() ((void)0) |
88 | 88 | ||
89 | 89 | ||
90 | #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) | 90 | #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) |
diff --git a/include/asm-m68k/unistd.h b/include/asm-m68k/unistd.h index 3ab716f0fc18..ad4348058c66 100644 --- a/include/asm-m68k/unistd.h +++ b/include/asm-m68k/unistd.h | |||
@@ -284,10 +284,39 @@ | |||
284 | #define __NR_add_key 279 | 284 | #define __NR_add_key 279 |
285 | #define __NR_request_key 280 | 285 | #define __NR_request_key 280 |
286 | #define __NR_keyctl 281 | 286 | #define __NR_keyctl 281 |
287 | #define __NR_ioprio_set 282 | ||
288 | #define __NR_ioprio_get 283 | ||
289 | #define __NR_inotify_init 284 | ||
290 | #define __NR_inotify_add_watch 285 | ||
291 | #define __NR_inotify_rm_watch 286 | ||
292 | #define __NR_migrate_pages 287 | ||
293 | #define __NR_openat 288 | ||
294 | #define __NR_mkdirat 289 | ||
295 | #define __NR_mknodat 290 | ||
296 | #define __NR_fchownat 291 | ||
297 | #define __NR_futimesat 292 | ||
298 | #define __NR_fstatat64 293 | ||
299 | #define __NR_unlinkat 294 | ||
300 | #define __NR_renameat 295 | ||
301 | #define __NR_linkat 296 | ||
302 | #define __NR_symlinkat 297 | ||
303 | #define __NR_readlinkat 298 | ||
304 | #define __NR_fchmodat 299 | ||
305 | #define __NR_faccessat 300 | ||
306 | #define __NR_pselect6 301 | ||
307 | #define __NR_ppoll 302 | ||
308 | #define __NR_unshare 303 | ||
309 | #define __NR_set_robust_list 304 | ||
310 | #define __NR_get_robust_list 305 | ||
311 | #define __NR_splice 306 | ||
312 | #define __NR_sync_file_range 307 | ||
313 | #define __NR_tee 308 | ||
314 | #define __NR_vmsplice 309 | ||
315 | #define __NR_move_pages 310 | ||
287 | 316 | ||
288 | #ifdef __KERNEL__ | 317 | #ifdef __KERNEL__ |
289 | 318 | ||
290 | #define NR_syscalls 282 | 319 | #define NR_syscalls 311 |
291 | #include <linux/err.h> | 320 | #include <linux/err.h> |
292 | 321 | ||
293 | /* user-visible error numbers are in the range -1 - -MAX_ERRNO: see | 322 | /* user-visible error numbers are in the range -1 - -MAX_ERRNO: see |
diff --git a/include/asm-m68k/user.h b/include/asm-m68k/user.h index e8d5a64c7e79..d7c0b109bd45 100644 --- a/include/asm-m68k/user.h +++ b/include/asm-m68k/user.h | |||
@@ -81,7 +81,7 @@ struct user{ | |||
81 | unsigned long magic; /* To uniquely identify a core file */ | 81 | unsigned long magic; /* To uniquely identify a core file */ |
82 | char u_comm[32]; /* User command that was responsible */ | 82 | char u_comm[32]; /* User command that was responsible */ |
83 | }; | 83 | }; |
84 | #define NBPG PAGE_SIZE | 84 | #define NBPG 4096 |
85 | #define UPAGES 1 | 85 | #define UPAGES 1 |
86 | #define HOST_TEXT_START_ADDR (u.start_code) | 86 | #define HOST_TEXT_START_ADDR (u.start_code) |
87 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) | 87 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) |