calling sequence of hardclock() is changed
authorAkito Fujita <akito@ucbvax.Berkeley.EDU>
Wed, 2 Sep 1992 08:06:07 +0000 (00:06 -0800)
committerAkito Fujita <akito@ucbvax.Berkeley.EDU>
Wed, 2 Sep 1992 08:06:07 +0000 (00:06 -0800)
SCCS-vsn: sys/luna68k/luna68k/locore.s 7.4

usr/src/sys/luna68k/luna68k/locore.s

index 08e0270..de0e96e 100644 (file)
@@ -15,7 +15,7 @@
  *
  * from: hp300/hp300/locore.s   7.16 (Berkeley) 7/8/92
  *
  *
  * from: hp300/hp300/locore.s   7.16 (Berkeley) 7/8/92
  *
- *     @(#)locore.s    7.3 (Berkeley) %G%
+ *     @(#)locore.s    7.4 (Berkeley) %G%
  */
 
 #include "assym.s"
  */
 
 #include "assym.s"
@@ -471,18 +471,17 @@ Lstkrip:
        .even
 Lstackok:
 #endif
        .even
 Lstackok:
 #endif
-       btst    #CLK_INT,CLOCK_REG      | check system clock-intr
-       jeq     Lnottimer
-       movb    #CLK_CLR,CLOCK_REG      | clear system clock interrupt
-        tstl   _clock_on               | clock not yet started 
-        jeq    Lnottimer
-       lea     sp@(16),a1              | get pointer to PS
-       movl    a1@,sp@-                | push padded PS
-       movl    a1@(4),sp@-             | push PC
-       jbsr    _hardclock              | call generic clock int routine
-       addql   #8,sp                   | pop params
+       lea     sp@(16),a1              | a1 = &clockframe
+       btst    #CLK_INT,CLOCK_REG      | system-clock intrrupt?
+       jeq     Lnottimer               | no, skip hardclock
+       movb    #CLK_CLR,CLOCK_REG      | clear system-clock interrupt
+        tstl   _clock_on               | system-clock started?
+        jeq    Lnottimer               | no, skip hardclock
+       addql   #1,_intrcnt+28          | count hardclock interrupt
+       movl    a1@,sp@-
+       jbsr    _hardclock              | hardclock(&frame)
+       addql   #4,sp
 Lnottimer:
 Lnottimer:
-       addql   #1,_intrcnt+28          | add another system clock interrupt
        moveml  sp@+,#0x0303            | restore scratch regs
        addql   #2,sp                   | pop pad word
        addql   #1,_cnt+V_INTR          | chalk up another interrupt
        moveml  sp@+,#0x0303            | restore scratch regs
        addql   #2,sp                   | pop pad word
        addql   #1,_cnt+V_INTR          | chalk up another interrupt