Changeset 10c071e in mainline for arch/sparc64/src/mm/tlb.c


Ignore:
Timestamp:
2005-12-15T16:57:48Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c68b97
Parents:
b4cad8b2
Message:

Fix ia64 and sparc64 to compile with new atomic_t.
Fix rwlock test #5 and semaphore test #1 to compile with new atomic_t.

sparc64 work.
TBA must be set before a function call when MMU is switched off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/mm/tlb.c

    rb4cad8b2 r10c071e  
    3636#include <typedefs.h>
    3737#include <config.h>
     38#include <arch/trap.h>
    3839
    3940/** Initialize ITLB and DTLB.
     
    4445 * After TLB is initialized, MMU is enabled
    4546 * again.
     47 *
     48 * Switching MMU off imposes the requirement for
     49 * the kernel to run in identity mapped environment.
    4650 */
    4751void tlb_arch_init(void)
     
    8286        dtlb_data_in_write(data.value);
    8387
     88        /*
     89         * Register window traps can occur before MMU is enabled again.
     90         * This ensures that any such traps will be handled from
     91         * kernel identity mapped trap handler.
     92         */
     93        trap_switch_trap_table();
     94       
    8495        tlb_invalidate_all();
    8596
Note: See TracChangeset for help on using the changeset viewer.