|
From: <sv...@va...> - 2006-10-15 13:47:46
|
Author: sewardj
Date: 2006-10-15 14:47:43 +0100 (Sun, 15 Oct 2006)
New Revision: 6238
Log:
Minor comment mods.
Modified:
trunk/include/pub_tool_tooliface.h
Modified: trunk/include/pub_tool_tooliface.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_tooliface.h 2006-10-15 13:46:18 UTC (rev 6237)
+++ trunk/include/pub_tool_tooliface.h 2006-10-15 13:47:43 UTC (rev 6238)
@@ -191,7 +191,7 @@
don't match.
=20
- This block is known to be the entry point of a wrapper of some
- function F. In this case the wrapper contains code to write
+ function F. In this case the preamble contains code to write
the address of the original F (the fn being wrapped) into a
'hidden' guest state register _NRADDR. The wrapper can later
read this register using a client request and make a
@@ -199,10 +199,10 @@
magic macro.
=20
- For platforms that use the AIX ABI (including ppc64-linux), it
- is necessary to have a preamble even for replacement
- functions, because it is necessary to switch the R2 register
- (constant-pool pointer) to a different value when swizzling
- the program counter.
+ is necessary to have a preamble even for replacement functions
+ (not just for wrappers), because it is necessary to switch the
+ R2 register (constant-pool pointer) to a different value when
+ swizzling the program counter.
=20
Hence the preamble pushes both R2 and LR (the return address)
on a small 16-entry stack in the guest state and sets R2 to an
|