Changeset a9ddab2 in mainline for boot/arch/sparc64/loader/main.c


Ignore:
Timestamp:
2008-09-06T21:31:41Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1696d8
Parents:
6d37d27
Message:

Be aware of the ramdisk passed by SILO.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/main.c

    r6d37d27 ra9ddab2  
    5858static void version_print(void)
    5959{
    60         printf("HelenOS SPARC64 Bootloader\nRelease %s%s%s\nCopyright (c) 2006 HelenOS project\n", release, revision, timestamp);
     60        printf("HelenOS SPARC64 Bootloader\nRelease %s%s%s\n"
     61            "Copyright (c) 2006 HelenOS project\n",
     62            release, revision, timestamp);
    6163}
    6264
     
    8183                halt();
    8284        }
     85
     86        /*
     87         * SILO for some reason adds 0x400000 and subtracts
     88         * bootinfo.physmem_start to/from silo_ramdisk_image.
     89         * We just need plain physical address so we fix it up.
     90         */
     91        if (silo_ramdisk_image) {
     92                silo_ramdisk_image += bootinfo.physmem_start;
     93                silo_ramdisk_image -= 0x400000;
     94        }
    8395       
    8496        printf("\nSystem info\n");
    8597        printf(" memory: %dM starting at %P\n",
    86                 bootinfo.memmap.total >> 20, bootinfo.physmem_start);
     98            bootinfo.memmap.total >> 20, bootinfo.physmem_start);
    8799
    88100        printf("\nMemory statistics\n");
Note: See TracChangeset for help on using the changeset viewer.