forcing device into host mode requires a full config - which we will do in opendevice...
[AROS.git] / arch / m68k-mac / exec / ints.S
blobd1eed41b9d48dc3415721d6ea4d5189502fc2562
1 /*  Copyright © 1995-2001, The AROS Development Team. All rights reserved.
2     $Id$
3 */
5         .text
6         .balign 16
7         .globl  _sys_dispatch
9         /* asm entry of system task dispatcher */
10 _sys_dispatch:
12         movem.l %d0-%d7/%a0-%a6,-(%ssp)     // Save context onto stack,
13                                             // exception context already saves PC and SR
14                                             // What's on the stack looks
15                                             // like the pt_regs structure from ptrace.h
16         move.l  %usp,%a0
17         movem.l %a0,-(%ssp)
18         move.l  %ssp,%a0
19         move.l  %a0,-(%ssp)                 // A0 contains address of pt_regs
20         bsr     sys_Dispatch
21         add.l   #4,%ssp
22         movem.l (%ssp)+,%a0
23         move.l  %a0,%usp
24         movem.l (%ssp)+,%d0-%d7/%a0-%a6
26         /* 
27            clear the LO IRQ status register!! POSE has a bug here for
28            clearing all of it at once (HI+LO)
29         */
30 //      clr.w  0xfffff30e     // clear the IRQ status register LO
31         rte