Changeset 1bedc54 in mainline


Ignore:
Timestamp:
2006-02-26T13:17:48Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b08233
Parents:
d81e6bdf
Message:

kernel size fix

Location:
arch/ppc32/loader
Files:
2 edited

Legend:

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

    rd81e6bdf r1bedc54  
    3232
    3333#define KERNEL_LOAD_ADDRESS 0x800000
    34 #define KERNEL_SIZE _binary_____________kernel_kernel_bin_size
     34#define KERNEL_SIZE ((unsigned int) &_binary_____________kernel_kernel_bin_end - (unsigned int) &_binary_____________kernel_kernel_bin_start)
    3535
    3636static void halt(void)
     
    4141void bootstrap(void)
    4242{
    43         printf("\nHelenOS PPC Bootloader\nKernel size %d, load address %L\n", KERNEL_SIZE, KERNEL_LOAD_ADDRESS);
     43        printf("\nHelenOS PPC Bootloader\nKernel size %d bytes, load address %L\n", KERNEL_SIZE, KERNEL_LOAD_ADDRESS);
    4444       
    4545        void *addr = ofw_claim((void *) KERNEL_LOAD_ADDRESS, KERNEL_SIZE, 1);
  • arch/ppc32/loader/main.h

    rd81e6bdf r1bedc54  
    3030#define __MAIN_H__
    3131
    32 extern unsigned int _binary_____________kernel_kernel_bin_size;
    33 extern void *_binary_____________kernel_kernel_bin_start;
     32extern int _binary_____________kernel_kernel_bin_start;
     33extern int _binary_____________kernel_kernel_bin_end;
    3434extern void bootstrap(void);
    3535
Note: See TracChangeset for help on using the changeset viewer.