File tree Expand file tree Collapse file tree 1 file changed +22
-23
lines changed Expand file tree Collapse file tree 1 file changed +22
-23
lines changed Original file line number Diff line number Diff line change 13
13
#ifdef CPU_M68040_OR_M68060_ONLY
14
14
static inline void copy_page (void * to , void * from )
15
15
{
16
- unsigned long tmp ;
17
-
18
- __asm__ __volatile__("1:\t"
19
- ".chip 68040\n\t"
20
- "move16 %1@+,%0@+\n\t"
21
- "move16 %1@+,%0@+\n\t"
22
- ".chip 68k\n\t"
23
- "dbra %2,1b\n\t"
24
- : "=a" (to ), "=a" (from ), "=d" (tmp )
25
- : "0" (to ), "1" (from ) , "2" (PAGE_SIZE / 32 - 1 )
26
- );
16
+ unsigned long tmp ;
17
+
18
+ __asm__ __volatile__("1:\t"
19
+ ".chip 68040\n\t"
20
+ "move16 %1@+,%0@+\n\t"
21
+ "move16 %1@+,%0@+\n\t"
22
+ ".chip 68k\n\t"
23
+ "dbra %2,1b\n\t"
24
+ : "=a" (to ), "=a" (from ), "=d" (tmp )
25
+ : "0" (to ), "1" (from ), "2" (PAGE_SIZE / 32 - 1 ));
27
26
}
28
27
29
28
static inline void clear_page (void * page )
@@ -95,23 +94,23 @@ static inline void *__va(unsigned long paddr)
95
94
#define __pa (x ) ___pa((unsigned long)(x))
96
95
static inline unsigned long ___pa (unsigned long x )
97
96
{
98
- if (x == 0 )
99
- return 0 ;
100
- if (x >= PAGE_OFFSET )
101
- return (x - PAGE_OFFSET );
102
- else
103
- return (x + 0x2000000 );
97
+ if (x == 0 )
98
+ return 0 ;
99
+ if (x >= PAGE_OFFSET )
100
+ return (x - PAGE_OFFSET );
101
+ else
102
+ return (x + 0x2000000 );
104
103
}
105
104
106
105
static inline void * __va (unsigned long x )
107
106
{
108
- if (x == 0 )
109
- return (void * )0 ;
107
+ if (x == 0 )
108
+ return (void * )0 ;
110
109
111
- if (x < 0x2000000 )
112
- return (void * )(x + PAGE_OFFSET );
113
- else
114
- return (void * )(x - 0x2000000 );
110
+ if (x < 0x2000000 )
111
+ return (void * )(x + PAGE_OFFSET );
112
+ else
113
+ return (void * )(x - 0x2000000 );
115
114
}
116
115
#endif /* CONFIG_SUN3 */
117
116
You can’t perform that action at this time.
0 commit comments