All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Adil Hafeez <adilhafeez80@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Fixed kernel entry point suggestion
Date: Fri, 30 Dec 2005 22:04:27 +0100	[thread overview]
Message-ID: <20051230210427.GJ1882@hattusa.textio> (raw)
In-Reply-To: <82e4189c0512300222k426764e0ldefeafb232ad36d@mail.gmail.com>

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

      reply	other threads:[~2005-12-30 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-28  7:36 Fixed kernel entry point suggestion Adil Hafeez
2005-12-28 14:22 ` Dan Malek
2005-12-30  9:36   ` Adil Hafeez
2005-12-30  9:47     ` Thiemo Seufer
2005-12-30 10:22       ` Adil Hafeez
2005-12-30 21:04         ` Thiemo Seufer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051230210427.GJ1882@hattusa.textio \
    --to=ths@networkno.de \
    --cc=adilhafeez80@gmail.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.