Changeset bfb87df in mainline for arch/ia32/src/mm/page.c


Ignore:
Timestamp:
2006-02-09T17:02:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8f00329
Parents:
874878a
Message:

Remove WAKEUP_IPI stuff.

Make it possible to use PAGE_GLOBAL on ia32, amd64 and mips32.
Make ia32 and amd64 map the kernel using PAGE_GLOBAL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/mm/page.c

    r874878a rbfb87df  
    4646{
    4747        __address cur;
     48        int flags;
    4849
    4950        if (config.cpu_active == 1) {
     
    5354                 * PA2KA(identity) mapping for all frames until last_frame.
    5455                 */
    55                 for (cur = 0; cur < last_frame; cur += FRAME_SIZE)
    56                         page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE);
     56                for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
     57                        flags = PAGE_CACHEABLE;
     58                        if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size))
     59                                flags |= PAGE_GLOBAL;
     60                        page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
     61                }
    5762
    5863                exc_register(14, "page_fault", page_fault);
Note: See TracChangeset for help on using the changeset viewer.