Changeset 2057572 in mainline for uspace/libc/include/as.h


Ignore:
Timestamp:
2007-03-27T23:40:25Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
399ece9
Parents:
8d37a06
Message:

The Ultimate Solution To Illegal Virtual Aliases.
It is better to avoid them completely than to fight them.
Switch the sparc64 port to 16K pages. The TLBs and TSBs
continue to operate with 8K pages only. Page tables and
other generic parts operate with 16K pages.

Because the MMU doesn't support 16K directly, each 16K
page is emulated by a pair of 8K pages. With 16K pages,
illegal aliases cannot be created in 16K D-cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/include/as.h

    r8d37a06 r2057572  
    4141#include <libarch/config.h>
    4242
    43 #define PAGE_COLOR(va)  (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1))
    44 
    4543extern void *as_area_create(void *address, size_t size, int flags);
    4644extern int as_area_resize(void *address, size_t size, int flags);
    4745extern int as_area_destroy(void *address);
    4846extern void *set_maxheapsize(size_t mhs);
    49 extern void * as_get_mappable_page(size_t sz, int color);
     47extern void * as_get_mappable_page(size_t sz);
    5048
    5149#endif
Note: See TracChangeset for help on using the changeset viewer.