Changeset db3341e in mainline for src/mm/page.c


Ignore:
Timestamp:
2005-09-01T14:28:00Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
623ba26c
Parents:
1dde3b61
Message:

Fixed typo in 'outb' instruction.
Paging basically working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mm/page.c

    r1dde3b61 rdb3341e  
    3737
    3838void page_init(void)
    39 {       
     39{
    4040        page_arch_init();
    4141        map_page_to_frame(0x0, 0x0, PAGE_NOT_PRESENT, 0);
     
    5555        int i, cnt, length;
    5656
    57         /* TODO: implement portable way of computing page address from address */
    58         length = size + (s - (s & 0xfffff000));
     57        length = size + (s - (s & ~(PAGE_SIZE-1)));
    5958        cnt = length/PAGE_SIZE + (length%PAGE_SIZE>0);
    6059
Note: See TracChangeset for help on using the changeset viewer.