Changeset 39494010 in mainline for arch/sparc64/include/asm.h


Ignore:
Timestamp:
2005-12-26T01:05:47Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1120276
Parents:
5b1ced0
Message:

sparc64 work.
Interrupt Levels 1 - 15 serviced.
Minor changes in the exc_* functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/asm.h

    r5b1ced0 r39494010  
    101101}
    102102
     103/** Read SOFTINT Register.
     104 *
     105 * @return Value of SOFTINT register.
     106 */
     107static inline __u64 softint_read(void)
     108{
     109        __u64 v;
     110
     111        __asm__ volatile ("rd %%softint, %0\n" : "=r" (v));
     112
     113        return v;
     114}
     115
     116/** Write SOFTINT Register.
     117 *
     118 * @param New value of SOFTINT register.
     119 */
     120static inline void softint_write(__u64 v)
     121{
     122        __asm__ volatile ("wr %0, %1, %%softint\n" : : "r" (v), "i" (0));
     123}
    103124
    104125/** Enable interrupts.
Note: See TracChangeset for help on using the changeset viewer.