Changeset 51029384 in mainline


Ignore:
Timestamp:
2005-07-20T13:56:18Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5eb1ee
Parents:
121dab5
Message:

Fix setters of page table attributes for both IA-32 and MIPS.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/mm/page.h

    r121dab5 r51029384  
    106106        p->page_cache_disable = !(flags & PAGE_CACHEABLE);
    107107        p->present = !(flags & PAGE_NOT_PRESENT);
    108         p->uaccessible = flags & PAGE_USER;
    109         p->writeable = flags & PAGE_WRITE;
     108        p->uaccessible = (flags & PAGE_USER) != 0;
     109        p->writeable = (flags & PAGE_WRITE) != 0;
    110110}
    111111
  • arch/mips/include/mm/page.h

    r121dab5 r51029384  
    102102        pte_t *p = &pt[i];
    103103       
    104         p->c = (flags & PAGE_CACHEABLE) ? PAGE_CACHEABLE_EXC_WRITE : PAGE_UNCACHED;
     104        p->c = (flags & PAGE_CACHEABLE) != 0 ? PAGE_CACHEABLE_EXC_WRITE : PAGE_UNCACHED;
    105105        p->v = !(flags & PAGE_NOT_PRESENT);
    106         p->d = flags & PAGE_WRITE;
     106        p->d = (flags & PAGE_WRITE) != 0;
    107107}
    108108
  • src/Makefile.config

    r121dab5 r51029384  
    1818
    1919# Uncomment if you want to compile in userspace support
    20 #USERSPACE=__USERSPACE__
     20USERSPACE=__USERSPACE__
    2121
    2222# Uncomment if you want to run in the test mode
  • src/main/kinit.c

    r121dab5 r51029384  
    131131        a = vm_area_create(m, VMA_TEXT, 1, UTEXT_ADDRESS);
    132132        if (!a) panic("vm_area_create: vm_text");
    133         memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);             
     133        memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);
    134134
    135135        /*
Note: See TracChangeset for help on using the changeset viewer.