[OpenAFS-devel] Re: Compiling openafs on arm64/aarch64 architecture

Chas Williams (CONTRACTOR) chas@cmf.nrl.navy.mil
Wed, 03 Sep 2014 17:04:43 -0400


In message <540752C7.6010902@qualcomm.com>,Micheal Waltz writes:
>When compiling the code on the aarch64 Ubuntu 14.04 VM with: gcc -Wall 
>-g test.c -o test
>
>Running the test binary gives the output of:
>
>main: sp 0x7fd9d60578 alt_sp 0x7c67010
>main: swapcontext(&main_context, &thread_context)
>thread: sp 0x7c6b000
>thread: swapcontext(&thread_context, &main_context)
>main: back from thread

It looks like setcontext()/getcontext() will work on this system!

If Andrew's latest patch he sent doesn't let you build a working lwp
then I will see if I can figure out what else is needed if someone else
doesn't figure it out first.