- Timestamp:
- 03/21/96 20:20:27 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8cf88427
- Parents:
- 99e7cbbb
- Location:
- c/src/lib/libbsp/m68k/gen68360
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/gen68360/start/start360.s
r99e7cbbb r487a7ca 296 296 uhoh: nop | Leave spot for breakpoint 297 297 stop #0x2700 | Stop with interrupts disabled 298 bra. buhoh | Stuck forever298 bra.s uhoh | Stuck forever 299 299 300 300 /* … … 318 318 */ 319 319 lea Entry,a0 | Get base of vector table 320 movec a0, VBR| Set up the VBR320 movec a0,vbr | Set up the VBR 321 321 322 322 /* 323 323 * Step 4: Write the MBAR 324 324 */ 325 movec DFC,d1 | Save destination register325 movec dfc,d1 | Save destination register 326 326 moveq #7,d0 | CPU-space funcction code 327 movec d0, DFC| Set destination function code register327 movec d0,dfc | Set destination function code register 328 328 movel #SYM(m360)+0x101,d0 | MBAR value (mask CPU space accesses) 329 329 movesl d0,0x3FF00 | Set MBAR 330 movec d1, DFC| Restore destination register330 movec d1,dfc | Restore destination register 331 331 332 332 /* … … 360 360 movel #clear_end,a1 361 361 clrl d0 362 bra bZEROLOOPTEST362 bras ZEROLOOPTEST 363 363 ZEROLOOP: 364 364 movel d0,a0@+ 365 365 ZEROLOOPTEST: 366 366 cmpl a1,a0 367 bcs bZEROLOOP367 bcs ZEROLOOP 368 368 movel #stack_init,a7 | set master stack pointer 369 369 movel d0,a7@- | environp … … 375 375 mainDone: nop | Leave spot for breakpoint 376 376 stop #0x2700 | Stop with interrupts disabled 377 bra. bmainDone | Stuck forever377 bra.s mainDone | Stuck forever 378 378 379 379 .align 2 -
c/src/lib/libbsp/m68k/gen68360/start360/start360.s
r99e7cbbb r487a7ca 296 296 uhoh: nop | Leave spot for breakpoint 297 297 stop #0x2700 | Stop with interrupts disabled 298 bra. buhoh | Stuck forever298 bra.s uhoh | Stuck forever 299 299 300 300 /* … … 318 318 */ 319 319 lea Entry,a0 | Get base of vector table 320 movec a0, VBR| Set up the VBR320 movec a0,vbr | Set up the VBR 321 321 322 322 /* 323 323 * Step 4: Write the MBAR 324 324 */ 325 movec DFC,d1 | Save destination register325 movec dfc,d1 | Save destination register 326 326 moveq #7,d0 | CPU-space funcction code 327 movec d0, DFC| Set destination function code register327 movec d0,dfc | Set destination function code register 328 328 movel #SYM(m360)+0x101,d0 | MBAR value (mask CPU space accesses) 329 329 movesl d0,0x3FF00 | Set MBAR 330 movec d1, DFC| Restore destination register330 movec d1,dfc | Restore destination register 331 331 332 332 /* … … 360 360 movel #clear_end,a1 361 361 clrl d0 362 bra bZEROLOOPTEST362 bras ZEROLOOPTEST 363 363 ZEROLOOP: 364 364 movel d0,a0@+ 365 365 ZEROLOOPTEST: 366 366 cmpl a1,a0 367 bcs bZEROLOOP367 bcs ZEROLOOP 368 368 movel #stack_init,a7 | set master stack pointer 369 369 movel d0,a7@- | environp … … 375 375 mainDone: nop | Leave spot for breakpoint 376 376 stop #0x2700 | Stop with interrupts disabled 377 bra. bmainDone | Stuck forever377 bra.s mainDone | Stuck forever 378 378 379 379 .align 2
Note: See TracChangeset
for help on using the changeset viewer.