Re: Fixed kernel entry point suggestion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adil Hafeez wrote:
> What about placing the jump instruction just after reserved space, like this
> 
>         .text
>         /*
>          * Reserved space for exception handlers.
>          * Necessary for machines which link their kernels at KSEG0.
>          */
>         .fill   0x400
> 
>         /* The following two symbols are used for kernel profiling. */
>         EXPORT(stext)
>         EXPORT(_stext)
> =>     j kernel_entry
>         __INIT
> 
> I disassembled vmlinux binary and now jump instruction is placed after
> reserved space

This only works iff the fill is done with NOPs. On a more general note,
it is usually considered to be the bootloader's job to find the correct
entry, not the kernel's one.


Thiemo


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux