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


Ignore:
Timestamp:
2006-09-26T12:59:28Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b44939b
Parents:
6ff1f1e
Message:

sparc64 work:

  • Loader now starts all processors.
  • Kernel halts all but the bootstrup processor for now.
  • Read clock-frequency from the respective processor node in the device tree
File:
1 edited

Legend:

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

    r6ff1f1e r45b26dad  
    3737#include <align.h>
    3838
    39 #define KERNEL_VIRTUAL_ADDRESS 0x400000
    40 
    4139bootinfo_t bootinfo;
    4240
     
    5856        }
    5957       
    60         if (!ofw_cpu(&bootinfo.cpu))
    61                 printf("Error: unable to get cpu properties\n");
    62 
    63         printf("\nDevice info\n");
    64         printf(" cpu: %dMHz\n", bootinfo.cpu.clock_frequency/1000000);
     58        printf("\nSystem info\n");
    6559        printf(" memory: %dM\n", bootinfo.memmap.total>>20);
    6660
     
    9791        printf("done.\n");
    9892
     93        printf("\nChecking for secondary processors...");
     94        if (!ofw_cpu())
     95                printf("Error: unable to get cpu properties\n");
     96        printf("done.\n");
     97
    9998        printf("\nBooting the kernel...\n");
    100         jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo, sizeof(bootinfo));
     99        jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, 1, &bootinfo, sizeof(bootinfo));
    101100}
Note: See TracChangeset for help on using the changeset viewer.