Changeset cf85e24c in mainline for generic/src/mm/page.c


Ignore:
Timestamp:
2006-04-22T23:00:26Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12c7f27
Parents:
e692a27
Message:

printf-related and other code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/page.c

    re692a27 rcf85e24c  
    6464        int i, cnt, length;
    6565
    66         length = size + (s - (s & ~(PAGE_SIZE-1)));
    67         cnt = length/PAGE_SIZE + (length%PAGE_SIZE>0);
     66        length = size + (s - (s & ~(PAGE_SIZE - 1)));
     67        cnt = length / PAGE_SIZE + (length % PAGE_SIZE > 0);
    6868
    6969        for (i = 0; i < cnt; i++)
    70                 page_mapping_insert(AS_KERNEL, s + i*PAGE_SIZE, s + i*PAGE_SIZE, PAGE_NOT_CACHEABLE);
     70                page_mapping_insert(AS_KERNEL, s + i * PAGE_SIZE, s + i * PAGE_SIZE, PAGE_NOT_CACHEABLE);
    7171
    7272}
Note: See TracChangeset for help on using the changeset viewer.