Ignore:
Timestamp:
2006-08-31T11:55:19Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ed166f7
Parents:
beb3926a
Message:

sparc64 work.

  • Convert interrupt_vector trap handler and some mm related trap handlers to

use preemptibe_handler(), which is essential for traps coming from userspace.

  • Add fast_data_access_protection() handler.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/trap/mmu.h

    rbeb3926a re0b241f  
    3535 */
    3636
    37 #ifndef __sparc64_MMU_TRAP_H__
    38 #define __sparc64_MMU_TRAP_H__
     37#ifndef KERN_sparc64_MMU_TRAP_H_
     38#define KERN_sparc64_MMU_TRAP_H_
    3939
    4040#include <arch/stack.h>
     
    5252#ifdef __ASM__
    5353.macro FAST_INSTRUCTION_ACCESS_MMU_MISS_HANDLER
    54         save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
    55         call fast_instruction_access_mmu_miss
    56         nop
    57         restore
    58         retry   
     54        /*
     55         * First, try to refill TLB from TSB.
     56         */
     57        ! TODO
     58
     59        wrpr %g0, PSTATE_PRIV_BIT | PSTATE_AG_BIT, %pstate
     60        PREEMPTIBLE_HANDLER fast_instruction_access_mmu_miss
    5961.endm
    6062
     
    102104
    103105.macro FAST_DATA_ACCESS_PROTECTION_HANDLER
    104         save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
    105         call fast_data_access_protection
    106         nop
    107         restore
    108         retry
     106        wrpr %g0, PSTATE_PRIV_BIT | PSTATE_AG_BIT, %pstate
     107        PREEMPTIBLE_HANDLER fast_data_access_protection
    109108.endm
    110109#endif /* __ASM__ */
Note: See TracChangeset for help on using the changeset viewer.