From: "Raj Pati" <rpatil0299@hotmail.com>
To: linux-ia64@vger.kernel.org
Subject: RE: Question about ia64 linux
Date: Mon, 22 Mar 2004 22:09:28 +0000 [thread overview]
Message-ID: <BAY14-F35qHSKGIlB7C000002c4@hotmail.com> (raw)
In-Reply-To: <BAY14-F301ImxoKYUVs0007e432@hotmail.com>
Thanks for the comments/pointers Tony.
Regards,
Raj
>From: "Luck, Tony" <tony.luck@intel.com>
>To: "Raj Pati" <rpatil0299@hotmail.com>, <linux-ia64@vger.kernel.org>
>Subject: RE: Question about ia64 linux
>Date: Sun, 21 Mar 2004 22:13:23 -0800
>
> >Is it possible to modify a running code (in a module or kernel)
> >in ia64 linux? (It is not a good practise to do it.
> >But, I need to check this out as it was done in ia32.....)
>
>Yes it can be done. Whether it is good practice is in the
>eye of the beholder ... and depends a lot on what you are
>actually doing. If you have some 1950's code that reads
>auccessive elements from an array my modifying the code that
>loads the address ... then it's time to rewrite :-) If you
>have some on-the-fly code generation (e.g. a Just-in-time
>compilation system) ... then that's a lot more palatable.
>
> >Probably, it is possible. I just wanted to see whether
> >there are any issues one should be aware of other than
> >serialization/flushing. There are couple of pages of
> >documentation regarding self-modifying code in one of
> >the ia64 software developers manual. I am curious
> >whether there are any other notes/writeups or sample
> >code where similar kind of things are done in ia64
> >linux. I really appreciate if some one can direct me
> >to such doc or code (if they exist) which can give
> >some more ia64 specific information.
>
>The software developers manual covers everything that
>you need to know. There are some code examples in the
>Linux kernel code (where we modify a load instruction
>to grab the physical address of an object, rather than
>the virtual address ... used because the address won't
>be known for sure until run-time). These aren't very dynamic
>though ... the instructions are patched during kernel
>initialization, and never touched again. Look at
>ia64_patch_vtop() in arch/kernel/ia64/patch.c
>
>-Tony
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
next prev parent reply other threads:[~2004-03-22 22:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-22 3:00 Question about ia64 linux Raj Pati
2004-03-22 6:13 ` Luck, Tony
2004-03-22 22:09 ` Raj Pati [this message]
2004-03-23 21:57 ` David Mosberger
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=BAY14-F35qHSKGIlB7C000002c4@hotmail.com \
--to=rpatil0299@hotmail.com \
--cc=linux-ia64@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox