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

Micheal Waltz mwaltz@qualcomm.com
Wed, 3 Sep 2014 10:41:27 -0700


On 09/02/14 17:06, Chas Williams (CONTRACTOR) wrote:
> Try building and running the following.  It should
>
> /*
>   * this should print something like:
>
> main: sp 0x7fff0c4ae318 alt_sp 0x136f010
> main: swapcontext(&main_context, &thread_context)
> thread: sp 0x1372fe0
> thread: swapcontext(&thread_context, &main_context)
> main: back from thread
>   */

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

-- 
Micheal Waltz
Unix Configuration Management (go/ucm)
Qualcomm Inc.
Phone: 858-845-6083
Cell: 858-882-7079