Re: Fixed kernel entry point suggestion

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

 



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



 
On 12/30/05, Thiemo Seufer <ths@xxxxxxxxxxxx> wrote:
Adil Hafeez wrote:
> Hi Dan,
>
> Here is the patch.
>
> diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S
> index eebdaa2..a5e6d4e 100644
> --- a/arch/mips/kernel/head.S
> +++ b/arch/mips/kernel/head.S
> @@ -28,6 +28,7 @@
> #include <asm/mipsregs.h>
> #include <asm/stackframe.h>
>
> +        j kernel_entry
> .text
> /*
> * Reserved space for exception handlers.

But certainly not _before_ .text. Also, it shouldn't move the reserved
space, it would need "align" instead of "space" afterwards.


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