Changeset a9ddab2 in mainline


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.

Location:
boot/arch/sparc64/loader
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/boot.S

    r6d37d27 ra9ddab2  
    5454        .word 0
    5555        .half 0
     56        .half 0
     57        .half 0
     58        .half 0
     59.global silo_ramdisk_image
     60silo_ramdisk_image:
     61        .word 0
     62.global silo_ramdisk_size
     63silo_ramdisk_size:
     64        .word 0
    5665
    5766.align 8
  • 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");
  • boot/arch/sparc64/loader/main.h

    r6d37d27 ra9ddab2  
    6060} bootinfo_t;
    6161
     62extern uint32_t silo_ramdisk_image;
     63extern uint32_t silo_ramdisk_size;
     64
    6265extern bootinfo_t bootinfo;
    6366
Note: See TracChangeset for help on using the changeset viewer.