* [Linux-ia64] Re: PAL entry point
@ 2002-04-17 14:54 David Mosberger
2002-04-17 18:07 ` Stephane Eranian
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: David Mosberger @ 2002-04-17 14:54 UTC (permalink / raw)
To: linux-ia64
>>>>> On Wed, 17 Apr 2002 15:09:51 +0200, Christian Hildner <christian.hildner@hob.de> said:
Christian> Stephane, David, do you agree making the symbol
Christian> pal_entry_point global (included in pal.S)? I would need
Christian> access to the PAL routines directly from my program
Christian> without using the provided functions.
I'm not sure that's a good idea. PAL has very particular constraints
on the environment in which it can be called in. Why aren't the
normal entry points (ia64_pal_call_static(), ia64_pal_call_stacked(),
ia64_pal_call_phys_static(), and ia64_pal_call_phys_stacked())
sufficient?
--david
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Linux-ia64] Re: PAL entry point
2002-04-17 14:54 [Linux-ia64] Re: PAL entry point David Mosberger
@ 2002-04-17 18:07 ` Stephane Eranian
2002-04-22 6:03 ` Christian Hildner
2002-04-24 5:23 ` Christian Hildner
2 siblings, 0 replies; 4+ messages in thread
From: Stephane Eranian @ 2002-04-17 18:07 UTC (permalink / raw)
To: linux-ia64
Christian,
On Wed, Apr 17, 2002 at 07:54:14AM -0700, David Mosberger wrote:
> >>>>> On Wed, 17 Apr 2002 15:09:51 +0200, Christian Hildner <christian.hildner@hob.de> said:
>
> Christian> Stephane, David, do you agree making the symbol
> Christian> pal_entry_point global (included in pal.S)? I would need
> Christian> access to the PAL routines directly from my program
> Christian> without using the provided functions.
>
> I'm not sure that's a good idea. PAL has very particular constraints
> on the environment in which it can be called in. Why aren't the
> normal entry points (ia64_pal_call_static(), ia64_pal_call_stacked(),
> ia64_pal_call_phys_static(), and ia64_pal_call_phys_stacked())
> sufficient?
I don't think it is a good idea because by itself knowing the entry
point value does not allow you to simply call it. If you look
at pal.S, you see that there is much more involved in calling
a PAL procedure, especially for those labeled physical/static.
So I agree with David, that we should instead export the 4 call
stubs that will allow you (with less effort) to call PAL.
--
-Stephane
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Linux-ia64] Re: PAL entry point
2002-04-17 14:54 [Linux-ia64] Re: PAL entry point David Mosberger
2002-04-17 18:07 ` Stephane Eranian
@ 2002-04-22 6:03 ` Christian Hildner
2002-04-24 5:23 ` Christian Hildner
2 siblings, 0 replies; 4+ messages in thread
From: Christian Hildner @ 2002-04-22 6:03 UTC (permalink / raw)
To: linux-ia64
David Mosberger schrieb:
> >>>>> On Wed, 17 Apr 2002 15:09:51 +0200, Christian Hildner <christian.hildner@hob.de> said:
>
> Christian> Stephane, David, do you agree making the symbol
> Christian> pal_entry_point global (included in pal.S)? I would need
> Christian> access to the PAL routines directly from my program
> Christian> without using the provided functions.
>
> I'm not sure that's a good idea. PAL has very particular constraints
> on the environment in which it can be called in. Why aren't the
> normal entry points (ia64_pal_call_static(), ia64_pal_call_stacked(),
> ia64_pal_call_phys_static(), and ia64_pal_call_phys_stacked())
> sufficient?
>
> --david
The problem is that in the context from which I want to call PAL there is no register stack
available and so there is no possibility to call a regular kernel function. I want to call the
PAL in physical/static mode and I know that it's not the easiest way to do this but I think I
know what I am doing.
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Linux-ia64] Re: PAL entry point
2002-04-17 14:54 [Linux-ia64] Re: PAL entry point David Mosberger
2002-04-17 18:07 ` Stephane Eranian
2002-04-22 6:03 ` Christian Hildner
@ 2002-04-24 5:23 ` Christian Hildner
2 siblings, 0 replies; 4+ messages in thread
From: Christian Hildner @ 2002-04-24 5:23 UTC (permalink / raw)
To: linux-ia64
David Mosberger schrieb:
> >>>>> On Tue, 23 Apr 2002 07:28:35 +0200, Christian Hildner <christian.hildner@hob.de> said:
>
> Christian> The supplied stubs use register stack and
> Christian> certain registers that I am using too. Furthermore I
> Christian> cannot rely on this routines beeing unchanged in the
> Christian> future. So I want to code my own mode switch stub.
>
> I see. So why don't you grab the PAL entry point from the SAL system table?
> The address of that table is stored in the "efi" table (see asm-ia64/efi.h).
>
>
> --david
Yes, that's it.
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-24 5:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-17 14:54 [Linux-ia64] Re: PAL entry point David Mosberger
2002-04-17 18:07 ` Stephane Eranian
2002-04-22 6:03 ` Christian Hildner
2002-04-24 5:23 ` Christian Hildner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox