Changeset 7f043c0 in mainline for kernel/arch/ia32/src/mm/page.c


Ignore:
Timestamp:
2007-05-31T21:39:13Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bb0c32
Parents:
d8431986
Message:

fix ICC compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/mm/page.c

    rd8431986 r7f043c0  
    8484        uintptr_t virtaddr = PA2KA(last_frame);
    8585        pfn_t i;
    86         for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++)
    87                 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), physaddr + PFN2ADDR(i), PAGE_NOT_CACHEABLE | PAGE_WRITE);
     86        for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) {
     87                uintptr_t addr = PFN2ADDR(i);
     88                page_mapping_insert(AS_KERNEL, virtaddr + addr, physaddr + addr, PAGE_NOT_CACHEABLE | PAGE_WRITE);
     89        }
    8890       
    8991        last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
     
    9294}
    9395
    94 void page_fault(int n, istate_t *istate)
     96void page_fault(int n __attribute__((unused)), istate_t *istate)
    9597{
    9698        uintptr_t page;
     
    111113               
    112114                decode_istate(istate);
    113                 printf("page fault address: %#x\n", page);
     115                printf("page fault address: %#lx\n", page);
    114116                panic("page fault\n");
    115117        }
Note: See TracChangeset for help on using the changeset viewer.