Changeset b3f8fb7 in mainline for kernel/arch/ia64/src/mm/vhpt.c


Ignore:
Timestamp:
2007-01-28T13:25:49Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/mm/vhpt.c

    r1ba41c5 rb3f8fb7  
    3333*/
    3434
     35#include <memstr.h>
    3536#include <arch/mm/vhpt.h>
    3637#include <mm/frame.h>
     
    4142uintptr_t vhpt_set_up(void)
    4243{
    43         vhpt_base = frame_alloc(VHPT_WIDTH-FRAME_WIDTH,FRAME_KA | FRAME_ATOMIC);
    44         if(!vhpt_base)
     44        vhpt_base = frame_alloc(VHPT_WIDTH - FRAME_WIDTH, FRAME_KA | FRAME_ATOMIC);
     45        if (!vhpt_base)
    4546                panic("Kernel configured with VHPT but no memory for table.");
    4647        vhpt_invalidate_all();
     
    6263        rid = ASID2RID(asid, vrn);
    6364                                                                                                                                                                                                                               
    64   rr_save.word = rr_read(vrn);
    65   rr.word = rr_save.word;
    66   rr.map.rid = rid;
    67   rr_write(vrn, rr.word);
    68   srlz_i();
     65        rr_save.word = rr_read(vrn);
     66        rr.word = rr_save.word;
     67        rr.map.rid = rid;
     68        rr_write(vrn, rr.word);
     69        srlz_i();
    6970       
    7071        ventry = (vhpt_entry_t *) thash(va);
    71   tag = ttag(va);
    72   rr_write(vrn, rr_save.word);
    73   srlz_i();
    74   srlz_d();
     72        tag = ttag(va);
     73        rr_write(vrn, rr_save.word);
     74        srlz_i();
     75        srlz_d();
    7576
    76         ventry->word[0]=entry.word[0];
    77         ventry->word[1]=entry.word[1];
     77        ventry->word[0] = entry.word[0];
     78        ventry->word[1] = entry.word[1];
    7879        ventry->present.tag.tag_word = tag;
    79        
    80 
    8180}
    8281
    8382void vhpt_invalidate_all()
    8483{
    85         memsetb((uintptr_t)vhpt_base,1<<VHPT_WIDTH,0);
     84        memsetb((uintptr_t) vhpt_base, 1 << VHPT_WIDTH, 0);
    8685}
    8786
Note: See TracChangeset for help on using the changeset viewer.