Changeset 32e8cd1 in mainline for kernel/arch/sparc32/src/mm/as.c


Ignore:
Timestamp:
2013-12-28T17:16:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1023bcb
Parents:
f6f22cdb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/mm/as.c

    rf6f22cdb r32e8cd1  
    3838#include <genarch/mm/page_pt.h>
    3939
    40 static ptd_t context_table[ASID_MAX_ARCH] __attribute__((aligned (1024)));
     40static ptd_t context_table[ASID_MAX_ARCH] __attribute__((aligned(1024)));
    4141
    4242void as_arch_init(void)
    4343{
    4444        as_operations = &as_pt_operations;
    45         as_context_table = (uintptr_t)&context_table;
     45        as_context_table = (uintptr_t) &context_table;
    4646}
    4747
    4848void as_install_arch(as_t *as)
    4949{
    50         printf("as_install_arch(asid=%d)\n", as->asid);
    51         printf("genarch.page_table=%p\n", as->genarch.page_table);
    52 
    53         context_table[as->asid].table_pointer = (uintptr_t)as->genarch.page_table >> 6;
     50        context_table[as->asid].table_pointer =
     51            (uintptr_t) as->genarch.page_table >> 6;
    5452        context_table[as->asid].et = PTE_ET_DESCRIPTOR;
    5553        asi_u32_write(ASI_MMUREGS, 0x200, as->asid);
Note: See TracChangeset for help on using the changeset viewer.