Changeset f8ddd17 in mainline for kernel/generic/include/mm/page.h


Ignore:
Timestamp:
2006-12-09T20:20:50Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b82a13c
Parents:
9ab9c2ec
Message:

Rework support for virtually indexed cache.
Instead of repeatedly flushing the data cache, which was a huge overkill, refuse to create an illegal address alias
in the kernel (again) and allocate appropriate page color in userspace instead. Extend the detection also to
SYS_PHYSMEM_MAP syscall.

Add support for tracking physical memory areas mappable by SYS_PHYSMEM_MAP.

Lots of coding style changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/page.h

    r9ab9c2ec rf8ddd17  
    7171 * Macro for computing page color.
    7272 */
    73 #define PAGE_COLOR(va)          (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1))
     73#define PAGE_COLOR(va)  (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1))
    7474
    7575/** Page fault access type. */
     
    8383/** Operations to manipulate page mappings. */
    8484struct page_mapping_operations {
    85         void (* mapping_insert)(as_t *as, uintptr_t page, uintptr_t frame, int flags);
     85        void (* mapping_insert)(as_t *as, uintptr_t page, uintptr_t frame, int
     86                flags);
    8687        void (* mapping_remove)(as_t *as, uintptr_t page);
    8788        pte_t *(* mapping_find)(as_t *as, uintptr_t page);
     
    9495extern void page_table_lock(as_t *as, bool lock);
    9596extern void page_table_unlock(as_t *as, bool unlock);
    96 extern void page_mapping_insert(as_t *as, uintptr_t page, uintptr_t frame, int flags);
     97extern void page_mapping_insert(as_t *as, uintptr_t page, uintptr_t frame, int
     98        flags);
    9799extern void page_mapping_remove(as_t *as, uintptr_t page);
    98100extern pte_t *page_mapping_find(as_t *as, uintptr_t page);
Note: See TracChangeset for help on using the changeset viewer.