Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2003 15:48:57 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28893 for review
Message-ID:  <200304132248.h3DMmvkP027778@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28893

Change 28893 by marcel@marcel_nfs on 2003/04/13 15:47:57

	Get truss(1) in sync. This needs to be double-checked when
	the EPC syscall code stabilizes. For now, it compiles.

Affected files ...

.. //depot/projects/ia64_epc/usr.bin/truss/ia64-fbsd.c#3 edit

Differences ...

==== //depot/projects/ia64_epc/usr.bin/truss/ia64-fbsd.c#3 (text+ko) ====

@@ -136,14 +136,14 @@
     fprintf(trussinfo->outfile, "-- CANNOT READ REGISTERS --\n");
     return;
   }
-  parm_offset = regs.r_gr[12] + 16;
+  parm_offset = regs.r_special.sp + 16;
 
   /*
    * FreeBSD has two special kinds of system call redirctions --
    * SYS_syscall, and SYS___syscall.  The former is the old syscall()
    * routine, basicly; the latter is for quad-aligned arguments.
    */
-  syscall_num = regs.r_gr[15];
+  syscall_num = regs.r_scratch.gr15;		/* XXX double-check. */
   switch (syscall_num) {
   case SYS_syscall:
     lseek(Procfd, parm_offset, SEEK_SET);
@@ -293,8 +293,8 @@
     fprintf(trussinfo->outfile, "-- CANNOT READ REGISTERS --\n");
     return (-1);
   }
-  retval = regs.r_gr[8];
-  errorp = (regs.r_gr[10] != 0) ? 1 : 0;
+  retval = regs.r_scratch.gr8;
+  errorp = (regs.r_scratch.gr10 != 0) ? 1 : 0;
 
   /*
    * This code, while simpler than the initial versions I used, could



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304132248.h3DMmvkP027778>