Changeset fd85ae5 in mainline for kernel/arch/sparc64/include/asm.h


Ignore:
Timestamp:
2006-09-04T19:11:23Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fadd381
Parents:
cfa70add
Message:

sparc64 kernel fixes

File:
1 edited

Legend:

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

    rcfa70add rfd85ae5  
    322322}
    323323
     324/** Switch to nucleus by setting TL to 1. */
     325static inline void nucleus_enter(void)
     326{
     327        __asm__ volatile ("wrpr %g0, 1, %tl\n");
     328}
     329
     330/** Switch from nucleus by setting TL to 0. */
     331static inline void nucleus_leave(void)
     332{
     333        __asm__ volatile ("wrpr %g0, %g0, %tl\n");
     334}
     335
    324336extern void cpu_halt(void);
    325337extern void cpu_sleep(void);
Note: See TracChangeset for help on using the changeset viewer.