[OpenAFS-port-darwin] Compiling RC3 for MacTel

Chaskiel Grundman cg2v@andrew.cmu.edu
Fri, 13 Jan 2006 11:59:46 -0500 (EST)


afs builds if the following patch is applied. The aborts in process.i386.s 
should never be triggered, as they follow unconditional jmp and ret 
instructions.

Index: src/lwp/process.i386.s
===================================================================
RCS file: /cvs/openafs/src/lwp/process.i386.s,v
retrieving revision 1.5.2.2
diff -u -d -r1.5.2.2 process.i386.s
--- src/lwp/process.i386.s      21 Oct 2005 04:48:51 -0000      1.5.2.2
+++ src/lwp/process.i386.s      13 Jan 2006 16:56:21 -0000
@@ -59,12 +59,6 @@
  L1:
         jmp     *f(%ebp)                        /* ebx = &f */

-#if !defined(AFS_DARWIN_ENV)
-/* Shouldn't be here....*/
-
-       call    _C_LABEL(abort)
-#endif
-
  /*
   * returnto(area2)
   *     struct savearea *area2;
@@ -84,9 +78,3 @@
         movl    $0,_C_LABEL(PRE_Block)          /* clear it up... */
         popl    %ebp
         ret
-
-#if !defined(AFS_DARWIN_ENV)
-/* I see, said the blind man, as he picked up his hammer and saw! */
-       pushl   $1234
-       call    _C_LABEL(abort)
-#endif