Changeset 2d69ee6 in mainline


Ignore:
Timestamp:
2006-03-14T11:07:04Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc2f26f
Parents:
6323989
Message:

map almost all physical memory
remap framebuffer to a different location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/loader/main.c

    r6323989 r2d69ee6  
    5353       
    5454        // FIXME: map just the kernel
    55         if (ofw_map((void *) KERNEL_PHYSICAL_ADDRESS, (void *) KERNEL_VIRTUAL_ADDRESS, 1024 * 1024, 0) != 0) {
     55        if (ofw_map((void *) KERNEL_PHYSICAL_ADDRESS, (void *) KERNEL_VIRTUAL_ADDRESS, memmap.total - 16 * 1024 * 1024, 0) != 0) {
    5656                printf("Unable to map kernel memory at %L (physical %L)\n", KERNEL_VIRTUAL_ADDRESS, KERNEL_PHYSICAL_ADDRESS);
    5757                halt();
     
    6262       
    6363        // FIXME: proper framebuffer mapping
    64         ofw_map((void *) 0x84000000, (void *) 0x84000000, 2 * 1024 * 1024, 0);
     64        ofw_map((void *) 0x84000000, (void *) 0xf0000000, 2 * 1024 * 1024, 0);
    6565       
    6666        printf("Booting the kernel...\n");
Note: See TracChangeset for help on using the changeset viewer.