[OpenAFS-devel] state of the (development) world

Douglas E. Engert deengert@anl.gov
Fri, 16 May 2003 10:48:19 -0500


Harald Barth wrote:
> 
> > Can we expect to see the HPUX  11.i and 11.22 for the Ia64 in 1.2.10?
> 
> Today on ia64 + Linux, lwp uses *context() from
> /usr/include/ucontex.h. Is that available on HPUX?

Yes it is. HP and Linux appear to have used the Intel defined routines and
structured So in lwp/process.c: 


    38  #if defined(AFS_IA64_LINUX20_ENV)
    39      register unsigned long sp __asm__("r12");
    40  #elif defined(AFS_HPUX1122_ENV)
    41  /* don't need anything special, will use
    42   * ucontext.uc_stack.ss_sp as it matches r12.
    43   * This should also work for Linux,
    44   * but dont have system to test DEE
    45   */
    46  #else
    47  #error  "You need to update stack pointer register for this platform"
    48  #endif
    49
    50      PRE_Block = 1;
    51
    52      savearea->state = 0;
    53      getcontext(&savearea->ucontext);
    54  #if defined(AFS_HPUX1122_ENV)
    55      savearea->topstack = savearea->ucontext.uc_stack.ss_sp;
    56  #else
    57      savearea->topstack = sp;
    58  #endif

> 
> Harald.
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

-- 

 Douglas E. Engert  <DEEngert@anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439 
 (630) 252-5444