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 1313#ifdef CPU_M68040_OR_M68060_ONLY
1414static inline void copy_page (void * to , void * from )
1515{
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 ));
2726}
2827
2928static inline void clear_page (void * page )
@@ -95,23 +94,23 @@ static inline void *__va(unsigned long paddr)
9594#define __pa (x ) ___pa((unsigned long)(x))
9695static inline unsigned long ___pa (unsigned long x )
9796{
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 );
104103}
105104
106105static inline void * __va (unsigned long x )
107106{
108- if (x == 0 )
109- return (void * )0 ;
107+ if (x == 0 )
108+ return (void * )0 ;
110109
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 );
115114}
116115#endif /* CONFIG_SUN3 */
117116
You can’t perform that action at this time.
0 commit comments