[OpenAFS-devel] Final Mac OS Steps

Derrick Brashear shadow@gmail.com
Mon, 30 Mar 2009 22:13:19 -0400


--00151757449827e9e2046660bec7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Mon, Mar 30, 2009 at 9:41 PM, Chas Williams (CONTRACTOR) <
chas@cmf.nrl.navy.mil> wrote:

> do a 'make test' inside src/lwp.  if you can get these sample programs
> to work, then the rest should work.
>
> LWP_SP is the offset into the jmp_buf that represents the stack pointer.
> jmp_buf is typically a series of longs representing a process context.
> lwp bangs the sp inside a jmp_buf in an attempt to manipulate the stack
> since isnt a well defined api for this (there is ucontext, but not
> everyone implements this).
>
> mac os typically uses the assembly versions of the lwp stack manipulation
> code, as i recall.  you might have better luck just figuring out the
> arm32 specific assembly you would need to accomplish this task.
>

there's an arm32 version linux uses. you might have to fool with the macros
for the symbol versioning though.

--00151757449827e9e2046660bec7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, Mar 30, 2009 at 9:41 PM, Chas Wi=
lliams (CONTRACTOR) <span dir=3D"ltr">&lt;<a href=3D"mailto:chas@cmf.nrl.na=
vy.mil">chas@cmf.nrl.navy.mil</a>&gt;</span> wrote:<br><blockquote class=3D=
"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0=
pt 0pt 0pt 0.8ex; padding-left: 1ex;">
do a &#39;make test&#39; inside src/lwp. =A0if you can get these sample pro=
grams<br>
to work, then the rest should work.<br>
<br>
LWP_SP is the offset into the jmp_buf that represents the stack pointer.<br=
>
jmp_buf is typically a series of longs representing a process context.<br>
lwp bangs the sp inside a jmp_buf in an attempt to manipulate the stack<br>
since isnt a well defined api for this (there is ucontext, but not<br>
everyone implements this).<br>
<br>
mac os typically uses the assembly versions of the lwp stack manipulation<b=
r>
code, as i recall. =A0you might have better luck just figuring out the<br>
arm32 specific assembly you would need to accomplish this task.<br>
<div><div></div><div class=3D"h5"></div></div></blockquote><div><br>there&#=
39;s an arm32 version linux uses. you might have to fool with the macros fo=
r the symbol versioning though.<br>=A0<br></div><br></div><br>

--00151757449827e9e2046660bec7--