OpenCores
URL https://opencores.org/ocsvn/s6soc/s6soc/trunk

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [zipos/] [resetdump.s] - Diff between revs 22 and 27

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 22 Rev 27
Line 64... Line 64...
; of a crash
; of a crash
        STO     R0,(DBG)
        STO     R0,(DBG)
        MOV     PC+1,R0
        MOV     PC+1,R0
        BRA     internal_kpanic
        BRA     internal_kpanic
        LDI     _top_of_stack,SP
        LDI     _top_of_stack,SP
        BRA     kernel_entry
        LDI     kernel_entry,R0
 
        BRA     bootloader
 
 
        .global         kpanic
        .global         kpanic
        .type           kpanic,@function
        .type           kpanic,@function
kpanic:
kpanic:
        STO     R0,(DBG)
        STO     R0,(DBG)
Line 103... Line 104...
        JMP     raw_put_uart
        JMP     raw_put_uart
        LOD     1(DBG),R1
        LOD     1(DBG),R1
        LOD     2(DBG),R2
        LOD     2(DBG),R2
        MOV     PC+1,R0
        MOV     PC+1,R0
        JMP     internal_kpanic
        JMP     internal_kpanic
 
kpanic_wait_for_button_release:
 
        LOD     (SPIO),R0
 
        TEST    0x010,R0
 
        BNZ     kpanic_wait_for_button_release
 
kpanic_wait_for_button:
 
        LOD     (SPIO),R0
 
        TEST    0x010,R0
 
        BZ      kpanic_wait_for_button
 
        BRA     _start
        HALT
        HALT
 
 
internal_kpanic:
internal_kpanic:
        STO     R1,1(DBG)
        STO     R1,1(DBG)
        STO     R2,2(DBG)
        STO     R2,2(DBG)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.