linux-mips
[Top] [All Lists]

Re: Fixed kernel entry point suggestion

To: linux-mips@linux-mips.org
Subject: Re: Fixed kernel entry point suggestion
From: Adil Hafeez <adilhafeez80@gmail.com>
Date: Fri, 30 Dec 2005 15:22:35 +0500
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rN1UsGcDt5Wp/dO5qMWAHdnsr6QFiY5qEUJbR83SUxF3QVpjR43MYayNw9ncnNtvJpbFTuzigMAIuVePKsvxadVtuTNaDDZj/vTuGT9cFhDoyo1W5CH87OPF39rzDCkYkADIt+We2p53ff0wC2xFf711SY8BxqcalIXFP7zKBFo=
In-reply-to: <20051230094750.GI1882@hattusa.textio>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <82e4189c0512272336xed0fe2ax9fee6119ea2d6b00@mail.gmail.com> <06af7c9f9f82dd2b306e02997869e709@embeddedalley.com> <82e4189c0512300136w5112edf2kf3d243ddbc9313d@mail.gmail.com> <20051230094750.GI1882@hattusa.textio>
Sender: linux-mips-bounce@linux-mips.org
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@networkno.de> 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


<Prev in Thread] Current Thread [Next in Thread>