diff options
Diffstat (limited to 'arch/cris/arch-v10/kernel/entry.S')
-rw-r--r-- | arch/cris/arch-v10/kernel/entry.S | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/arch/cris/arch-v10/kernel/entry.S b/arch/cris/arch-v10/kernel/entry.S index bc9bed97f225..ec62c951fa3c 100644 --- a/arch/cris/arch-v10/kernel/entry.S +++ b/arch/cris/arch-v10/kernel/entry.S | |||
@@ -500,9 +500,8 @@ _work_notifysig: | |||
500 | ;; deal with pending signals and notify-resume requests | 500 | ;; deal with pending signals and notify-resume requests |
501 | 501 | ||
502 | move.d $r9, $r10 ; do_notify_resume syscall/irq param | 502 | move.d $r9, $r10 ; do_notify_resume syscall/irq param |
503 | moveq 0, $r11 ; oldset param - 0 in this case | 503 | move.d $sp, $r11 ; the regs param |
504 | move.d $sp, $r12 ; the regs param | 504 | move.d $r1, $r12 ; the thread_info_flags parameter |
505 | move.d $r1, $r13 ; the thread_info_flags parameter | ||
506 | jsr do_notify_resume | 505 | jsr do_notify_resume |
507 | 506 | ||
508 | ba _Rexit | 507 | ba _Rexit |
@@ -678,13 +677,19 @@ IRQ1_interrupt: | |||
678 | push $r10 ; push orig_r10 | 677 | push $r10 ; push orig_r10 |
679 | clear.d [$sp=$sp-4] ; frametype == 0, normal frame | 678 | clear.d [$sp=$sp-4] ; frametype == 0, normal frame |
680 | 679 | ||
680 | ;; If there is a glitch on the NMI pin shorter than ~100ns | ||
681 | ;; (i.e. non-active by the time we get here) then the nmi_pin bit | ||
682 | ;; in R_IRQ_MASK0_RD will already be cleared. The watchdog_nmi bit | ||
683 | ;; is cleared by us however (when feeding the watchdog), which is why | ||
684 | ;; we use that bit to determine what brought us here. | ||
685 | |||
681 | move.d [R_IRQ_MASK0_RD], $r1 ; External NMI or watchdog? | 686 | move.d [R_IRQ_MASK0_RD], $r1 ; External NMI or watchdog? |
682 | and.d 0x80000000, $r1 | 687 | and.d (1<<30), $r1 |
683 | beq wdog | 688 | bne wdog |
684 | move.d $sp, $r10 | 689 | move.d $sp, $r10 |
685 | jsr handle_nmi | 690 | jsr handle_nmi |
686 | setf m ; Enable NMI again | 691 | setf m ; Enable NMI again |
687 | retb ; Return from NMI | 692 | ba _Rexit ; Return the standard way |
688 | nop | 693 | nop |
689 | wdog: | 694 | wdog: |
690 | #if defined(CONFIG_ETRAX_WATCHDOG) && !defined(CONFIG_SVINTO_SIM) | 695 | #if defined(CONFIG_ETRAX_WATCHDOG) && !defined(CONFIG_SVINTO_SIM) |
@@ -775,22 +780,9 @@ multiple_interrupt: | |||
775 | push $r10 ; push orig_r10 | 780 | push $r10 ; push orig_r10 |
776 | clear.d [$sp=$sp-4] ; frametype == 0, normal frame | 781 | clear.d [$sp=$sp-4] ; frametype == 0, normal frame |
777 | 782 | ||
778 | moveq 2, $r2 ; first bit we care about is the timer0 irq | 783 | move.d $sp, $r10 |
779 | move.d [R_VECT_MASK_RD], $r0; read the irq bits that triggered the multiple irq | 784 | jsr do_multiple_IRQ |
780 | move.d $r0, [R_VECT_MASK_CLR] ; Block all active IRQs | ||
781 | 1: | ||
782 | btst $r2, $r0 ; check for the irq given by bit r2 | ||
783 | bpl 2f | ||
784 | move.d $r2, $r10 ; First argument to do_IRQ | ||
785 | move.d $sp, $r11 ; second argument to do_IRQ | ||
786 | jsr do_IRQ | ||
787 | 2: | ||
788 | addq 1, $r2 ; next vector bit | ||
789 | cmp.b 32, $r2 | ||
790 | bne 1b ; process all irq's up to and including number 31 | ||
791 | moveq 0, $r9 ; make ret_from_intr realise we came from an ir | ||
792 | 785 | ||
793 | move.d $r0, [R_VECT_MASK_SET] ; Unblock all the IRQs | ||
794 | jump ret_from_intr | 786 | jump ret_from_intr |
795 | 787 | ||
796 | do_sigtrap: | 788 | do_sigtrap: |
@@ -837,6 +829,13 @@ _ugdb_handle_breakpoint: | |||
837 | ba do_sigtrap ; SIGTRAP the offending process. | 829 | ba do_sigtrap ; SIGTRAP the offending process. |
838 | pop $dccr ; Restore dccr in delay slot. | 830 | pop $dccr ; Restore dccr in delay slot. |
839 | 831 | ||
832 | .global kernel_execve | ||
833 | kernel_execve: | ||
834 | move.d __NR_execve, $r9 | ||
835 | break 13 | ||
836 | ret | ||
837 | nop | ||
838 | |||
840 | .data | 839 | .data |
841 | 840 | ||
842 | hw_bp_trigs: | 841 | hw_bp_trigs: |