Re: [XenPPC] What does the PAPR macro?

2007-03-28 Thread Jimi Xenidis


On Mar 28, 2007, at 2:39 PM, Christian Ehrhardt wrote:


Hi,
I'm curently implementing H_PERFMON and found some code in the file  
arch/powerpc/of_handler/papr.S which is not clear for me by just  
reading it ;)


This is code for the OF stub that we but in Dom0 address space, it  
usually only needs to perform console hcalls, there is no reason to  
add the H_PERFMON hcall to this code, this code runs in a domain NOT  
Xen.




I "guessed" this line together for H_PERFMON based on the other  
lines around there, but what would the following line really do?

"PAPR(5, 1,papr_h_perfmon, H_PERFMON)"


This will create a C callable function (papr_h_perfmon) written in  
assembler that for an hcall that takes 5 arguements and returns a  
single result value.



Is it correct and if not why?


It is correct, but unecessary, please do not bother.

I assume it's some kind of registering xen implemented papr hooks  
right?




Nope
-JX

___
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel


[XenPPC] What does the PAPR macro?

2007-03-28 Thread Christian Ehrhardt

Hi,
I'm curently implementing H_PERFMON and found some code in the file 
arch/powerpc/of_handler/papr.S which is not clear for me by just reading 
it ;)


I "guessed" this line together for H_PERFMON based on the other lines 
around there, but what would the following line really do?

"PAPR(5, 1,papr_h_perfmon, H_PERFMON)"
Is it correct and if not why?
I assume it's some kind of registering xen implemented papr hooks right?

--

Grüsse / regards, 
Christian Ehrhardt


IBM Linux Technology Center, Open Virtualization
+49 7031/16-3385
[EMAIL PROTECTED]
[EMAIL PROTECTED]

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen 
Geschäftsführung: Herbert Kircher 
Sitz der Gesellschaft: Böblingen

Registergericht: Amtsgericht Stuttgart, HRB 243294


___
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel