Changeset 8ca4b602 in mainline


Ignore:
Timestamp:
2018-10-17T16:58:28Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
09c6389
Parents:
e344422
Message:

Pass IA-64 kernel entry point from C code

Location:
boot/arch/ia64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia64/include/arch/asm.h

    re344422 r8ca4b602  
    3131#define BOOT_ia64_ASM_H_
    3232
    33 extern void jump_to_kernel(void *) __attribute__((noreturn));
     33extern void jump_to_kernel(void *, void *) __attribute__((noreturn));
    3434
    3535#endif
  • boot/arch/ia64/src/asm.S

    re344422 r8ca4b602  
    3838
    3939FUNCTION_BEGIN(jump_to_kernel)
    40         alloc loc0 = ar.pfs, 1, 1, 0, 0
     40        alloc loc0 = ar.pfs, 2, 1, 0, 0
    4141        mov r2 = in0 ;;                 # Pass bootinfo address
    42         movl r8 = KERNEL_ADDRESS;;
    43         mov b1 = r8 ;;
     42        mov b1 = in1 ;;                 # Entry point address
    4443        br.call.sptk.many b0 = b1;;
    4544FUNCTION_END(jump_to_kernel)
  • boot/arch/ia64/src/main.c

    re344422 r8ca4b602  
    183183
    184184        printf("Booting the kernel ...\n");
    185         jump_to_kernel(&bootinfo);
     185        jump_to_kernel(&bootinfo, kernel_start);
    186186}
Note: See TracChangeset for help on using the changeset viewer.