Changeset fd85ae5 in mainline for kernel/arch/sparc64/include


Ignore:
Timestamp:
2006-09-04T19:11:23Z (19 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

Location:
kernel/arch/sparc64/include
Files:
2 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);
  • kernel/arch/sparc64/include/trap/mmu.h

    rcfa70add rfd85ae5  
    122122.endm
    123123
     124.macro MEM_ADDRESS_NOT_ALIGNED_HANDLER
     125        ba mem_address_not_aligned_handler
     126        nop
     127.endm
     128
    124129/*
    125130 * Macro used to lower TL when a MMU trap is caused by
Note: See TracChangeset for help on using the changeset viewer.