Changeset 4f38ab05 in rtems
- Timestamp:
- 05/01/02 23:09:09 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 51b39864
- Parents:
- 1c07f582
- Location:
- c/src/lib/libbsp/m68k/mvme167
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mvme167/ChangeLog
r1c07f582 r4f38ab05 1 2002-05-01 Eric Norum <eric.norum@usask.ca> 2 3 * console/console.c, fatal/bspfatal.c, startup/bspclean.c, 4 startup/page_table.c: Per PR200 fix multi-line inline assembly 5 to satisfy gcc 3.1 and newer. 6 1 7 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
c/src/lib/libbsp/m68k/mvme167/console/console.c
r1c07f582 r4f38ab05 1298 1298 rtems_interrupt_disable( previous_level ); 1299 1299 1300 asm volatile( "movew %1, -(%%sp) 1301 trap #15/* Trap to 167Bug */1302 .short 0x61/* Code for .REDIR_I */1303 trap #15/* Trap to 167Bug */1304 .short 0x01/* Code for .INSTAT */1305 move %%cc, %0/* Get condition codes */1306 1300 asm volatile( "movew %1, -(%%sp)\n\t"/* Channel */ 1301 "trap #15\n\t" /* Trap to 167Bug */ 1302 ".short 0x61\n\t" /* Code for .REDIR_I */ 1303 "trap #15\n\t" /* Trap to 167Bug */ 1304 ".short 0x01\n\t" /* Code for .INSTAT */ 1305 "move %%cc, %0\n\t" /* Get condition codes */ 1306 "andil #4, %0" /* Keep the Zero bit */ 1307 1307 : "=d" (char_not_available) : "d" (minor): "%%cc" ); 1308 1308 … … 1313 1313 1314 1314 /* Read the char and return it */ 1315 asm volatile( "subq.l #2,%%a7 1316 trap #15/* Trap to 167 Bug */1317 .short 0x00/* Code for .INCHR */1318 1315 asm volatile( "subq.l #2,%%a7\n\t" /* Space for result */ 1316 "trap #15\n\t" /* Trap to 167 Bug */ 1317 ".short 0x00\n\t" /* Code for .INCHR */ 1318 "moveb (%%a7)+, %0" /* Pop char into c */ 1319 1319 : "=d" (c) : ); 1320 1320 … … 1350 1350 const char *endbuf = buf + len; 1351 1351 1352 asm volatile( "pea (%0) /* endbuf */1353 pea (%1)/* buf */1354 movew #0x21, -(%%sp)/* Code for .OUTSTR */1355 movew %2, -(%%sp)/* Channel */1356 trap #15/* Trap to 167Bug */1357 .short 0x60"/* Code for .REDIR */1352 asm volatile( "pea (%0)\n\t" /* endbuf */ 1353 "pea (%1)\n\t" /* buf */ 1354 "movew #0x21, -(%%sp)\n\t" /* Code for .OUTSTR */ 1355 "movew %2, -(%%sp)\n\t" /* Channel */ 1356 "trap #15\n\t" /* Trap to 167Bug */ 1357 ".short 0x60" /* Code for .REDIR */ 1358 1358 :: "a" (endbuf), "a" (buf), "d" (minor) ); 1359 1359 -
c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c
r1c07f582 r4f38ab05 117 117 m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */ 118 118 119 asm volatile( "movel %0, -(%%a7) 120 pea (%%a7)121 pea (%1)122 trap #15/* trap to 167Bug (.WRITDLN) */123 .short 0x25124 trap #15125 119 asm volatile( "movel %0, -(%%a7)\n\t" 120 "pea (%%a7)\n\t" 121 "pea (%1)\n\t" 122 "trap #15\n\t" /* trap to 167Bug (.WRITDLN) */ 123 ".short 0x25\n\t" 124 "trap #15\n\t" 125 ".short 0x63" 126 126 :: "d" (the_error), "a" (&my_p_str) ); 127 127 } -
c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c
r1c07f582 r4f38ab05 43 43 lcsr->intr_ena = 0; /* disable interrupts */ 44 44 m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */ 45 asm volatile( "trap #15 46 45 asm volatile( "trap #15\n\t" /* trap to 167Bug */ 46 ".short 0x63" ); /* return to 167Bug (.RETURN) */ 47 47 48 48 /* restart program */ -
c/src/lib/libbsp/m68k/mvme167/startup/page_table.c
r1c07f582 r4f38ab05 121 121 122 122 /* do it ! */ 123 asm volatile("movec %0, %%tc /* turn off paged address translation */124 movec %0, %%cacr/* disable both caches */125 cinva %%bc/* clear both caches */126 movec %1,%%dtt0/* block address translation on */127 movec %1,%%itt0128 movec %2,%%dtt1129 movec %2,%%itt1130 movec %3,%%cacr"/* data cache on */123 asm volatile("movec %0, %%tc\n\t" /* turn off paged address translation */ 124 "movec %0, %%cacr\n\t" /* disable both caches */ 125 "cinva %%bc\n\t" /* clear both caches */ 126 "movec %1,%%dtt0\n\t" /* block address translation on */ 127 "movec %1,%%itt0\n\t" 128 "movec %2,%%dtt1\n\t" 129 "movec %2,%%itt1\n\t" 130 "movec %3,%%cacr" /* data cache on */ 131 131 :: "d" (0), "d" (dtt0), "d" (0xFF00C040), "d" (cacr)); 132 132 } … … 147 147 void page_table_teardown( void ) 148 148 { 149 asm volatile ("movec %0,%%tc 150 movec %0,%%cacr151 cpusha %%bc152 movec %0,%%dtt0153 movec %0,%%itt0154 movec %0,%%dtt1155 149 asm volatile ("movec %0,%%tc\n\t" 150 "movec %0,%%cacr\n\t" 151 "cpusha %%bc\n\t" 152 "movec %0,%%dtt0\n\t" 153 "movec %0,%%itt0\n\t" 154 "movec %0,%%dtt1\n\t" 155 "movec %0,%%itt1" 156 156 :: "d" (0) ); 157 157 }
Note: See TracChangeset
for help on using the changeset viewer.