Ignore:
Timestamp:
2013-11-26T18:49:32Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a218709
Parents:
a7372ccf
Message:

Added register window flushes in userspace when apporiate
and done some minor fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/sparc32/src/fibril.S

    ra7372ccf r3bc42bd  
    3131.text
    3232
     33.global flush_windows
    3334.global context_save
    3435.global context_restore
     
    3940        # should a thread switch occur.
    4041        #
     42        mov 7, %g1
     431:      subcc %g1, 1, %g1
     44        bg 1b
     45        save %sp, -64, %sp
     46
     47        mov 7, %g1
     481:      subcc %g1, 1, %g1
     49        bg 1b
     50        restore
     51
    4152        CONTEXT_SAVE_ARCH_CORE %o0
    4253        retl
     
    5263# XXX
    5364#       flushw
     65#        ta 0x4f
     66#        nop
     67        mov 7, %g1
     681:      subcc %g1, 1, %g1
     69        bg 1b
     70        save %sp, -64, %sp
     71
     72        mov 7, %g1
     731:      subcc %g1, 1, %g1
     74        bg 1b
     75        restore
    5476       
    5577        CONTEXT_RESTORE_ARCH_CORE %o0
Note: See TracChangeset for help on using the changeset viewer.