Changeset f8ddd17 in mainline for uspace/libc/include/as.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
  • uspace/libc/include/as.h

    r9ab9c2ec rf8ddd17  
    4040#include <kernel/arch/mm/as.h>
    4141#include <kernel/mm/as.h>
     42#include <libarch/config.h>
     43
     44#define PAGE_COLOR(va)  (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1))
    4245
    4346extern void *as_area_create(void *address, size_t size, int flags);
     
    4548extern int as_area_destroy(void *address);
    4649extern void *set_maxheapsize(size_t mhs);
    47 extern void * as_get_mappable_page(size_t sz);
     50extern void * as_get_mappable_page(size_t sz, int color);
    4851
    4952#endif
Note: See TracChangeset for help on using the changeset viewer.