2 * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4 * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
5 * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6 * Copyright (c) 2000 PocketPenguins Inc. Linux for Hitachi SuperH
7 * port by Greg Banks <gbanks@pocketpenguins.com>
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. The name of the author may not be used to endorse or promote products
19 * derived from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 # ifdef HAVE_STRUCT_USER_DESC
39 # define modify_ldt_ldt_s user_desc
43 # include <asm/page.h> /* for PAGE_SHIFT */
47 sys_brk(struct tcb *tcp)
50 tprintf("%#lx", tcp->u_arg[0]);
55 static const struct xlat mmap_prot[] = {
56 { PROT_NONE, "PROT_NONE", },
57 { PROT_READ, "PROT_READ" },
58 { PROT_WRITE, "PROT_WRITE" },
59 { PROT_EXEC, "PROT_EXEC" },
61 { PROT_SEM, "PROT_SEM" },
64 { PROT_GROWSDOWN,"PROT_GROWSDOWN"},
67 { PROT_GROWSUP, "PROT_GROWSUP" },
70 { PROT_SAO, "PROT_SAO" },
75 static const struct xlat mmap_flags[] = {
76 { MAP_SHARED, "MAP_SHARED" },
77 { MAP_PRIVATE, "MAP_PRIVATE" },
78 { MAP_FIXED, "MAP_FIXED" },
80 { MAP_ANONYMOUS,"MAP_ANONYMOUS" },
83 { MAP_32BIT, "MAP_32BIT" },
86 { MAP_RENAME, "MAP_RENAME" },
89 { MAP_NORESERVE,"MAP_NORESERVE" },
92 { MAP_POPULATE, "MAP_POPULATE" },
95 { MAP_NONBLOCK, "MAP_NONBLOCK" },
98 * XXX - this was introduced in SunOS 4.x to distinguish between
99 * the old pre-4.x "mmap()", which:
101 * only let you map devices with an "mmap" routine (e.g.,
104 * required you to specify the mapping address;
106 * returned 0 on success and -1 on failure;
108 * memory and which, and the 4.x "mmap()" which:
110 * can map plain files;
112 * can be asked to pick where to map the file;
114 * returns the address where it mapped the file on success
117 * It's not actually used in source code that calls "mmap()"; the
118 * "mmap()" routine adds it for you.
120 * It'd be nice to come up with some way of eliminating it from
121 * the flags, e.g. reporting calls *without* it as "old_mmap()"
122 * and calls with it as "mmap()".
125 { _MAP_NEW, "_MAP_NEW" },
128 { MAP_GROWSDOWN,"MAP_GROWSDOWN" },
131 { MAP_DENYWRITE,"MAP_DENYWRITE" },
133 #ifdef MAP_EXECUTABLE
134 { MAP_EXECUTABLE,"MAP_EXECUTABLE"},
137 { MAP_INHERIT, "MAP_INHERIT" },
140 { MAP_FILE, "MAP_FILE" },
143 { MAP_LOCKED, "MAP_LOCKED" },
146 #if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
147 { MAP_ANON, "MAP_ANON" },
149 #ifdef MAP_HASSEMAPHORE
150 { MAP_HASSEMAPHORE,"MAP_HASSEMAPHORE"},
153 { MAP_STACK, "MAP_STACK" },
155 #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
156 { MAP_UNINITIALIZED,"MAP_UNINITIALIZED"},
159 { MAP_NOSYNC, "MAP_NOSYNC" },
162 { MAP_NOCORE, "MAP_NOCORE" },
165 { MAP_CACHE_NO_LOCAL, "MAP_CACHE_NO_LOCAL" },
166 { MAP_CACHE_NO_L2, "MAP_CACHE_NO_L2" },
167 { MAP_CACHE_NO_L1, "MAP_CACHE_NO_L1" },
174 addtileflags(long flags)
176 long home = flags & _MAP_CACHE_MKHOME(_MAP_CACHE_HOME_MASK);
177 flags &= ~_MAP_CACHE_MKHOME(_MAP_CACHE_HOME_MASK);
179 if (flags & _MAP_CACHE_INCOHERENT) {
180 flags &= ~_MAP_CACHE_INCOHERENT;
181 if (home == MAP_CACHE_HOME_NONE) {
182 tprints("|MAP_CACHE_INCOHERENT");
185 tprints("|_MAP_CACHE_INCOHERENT");
190 case MAP_CACHE_HOME_HERE: tprints("|MAP_CACHE_HOME_HERE"); break;
191 case MAP_CACHE_HOME_NONE: tprints("|MAP_CACHE_HOME_NONE"); break;
192 case MAP_CACHE_HOME_SINGLE: tprints("|MAP_CACHE_HOME_SINGLE"); break;
193 case MAP_CACHE_HOME_TASK: tprints("|MAP_CACHE_HOME_TASK"); break;
194 case MAP_CACHE_HOME_HASH: tprints("|MAP_CACHE_HOME_HASH"); break;
196 tprintf("|MAP_CACHE_HOME(%ld)",
197 (home >> _MAP_CACHE_HOME_SHIFT) );
205 #if !HAVE_LONG_LONG_OFF_T
207 print_mmap(struct tcb *tcp, long *u_arg, unsigned long long offset)
214 tprintf("%#lx, ", u_arg[0]);
216 tprintf("%lu, ", u_arg[1]);
218 printflags(mmap_prot, u_arg[2], "PROT_???");
222 printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
224 addflags(mmap_flags, addtileflags(u_arg[3] & ~MAP_TYPE));
226 addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
229 printflags(mmap_flags, u_arg[3], "MAP_???");
233 printfd(tcp, u_arg[4]);
235 tprintf(", %#llx", offset);
240 int sys_old_mmap(struct tcb *tcp)
244 * IA64 processes never call this routine, they only use the
245 * new `sys_mmap' interface.
246 * For IA32 processes, this code converts the integer arguments
247 * that they pushed onto the stack, into longs.
251 unsigned narrow_arg[6];
252 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), (char *) narrow_arg) == -1)
254 for (i = 0; i < 6; i++)
255 u_arg[i] = narrow_arg[i];
256 #elif defined(SH) || defined(SH64)
257 /* SH has always passed the args in registers */
258 long *u_arg = tcp->u_arg;
259 #elif defined(X86_64)
261 if (current_personality == 1) {
263 unsigned narrow_arg[6];
264 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), (char *) narrow_arg) == -1)
266 for (i = 0; i < 6; ++i)
267 u_arg[i] = narrow_arg[i];
269 if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), (char *) u_arg) == -1)
274 if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), (char *) u_arg) == -1)
277 return print_mmap(tcp, u_arg, (unsigned long)u_arg[5]);
281 sys_mmap(struct tcb *tcp)
283 long long offset = tcp->u_arg[5];
285 /* FIXME: why only SH64? i386 mmap2 syscall ends up
286 * in this function, but does not convert offset
287 * from pages to bytes. See test/mmap_offset_decode.c
288 * Why SH64 and i386 are handled differently?
292 * Old mmap differs from new mmap in specifying the
293 * offset in units of bytes rather than pages. We
294 * pretend it's in byte units so the user only ever
295 * sees bytes in the printout.
297 offset <<= PAGE_SHIFT;
299 #if defined(LINUX_MIPSN32)
300 offset = tcp->ext_arg[5];
302 return print_mmap(tcp, tcp->u_arg, offset);
304 #endif /* !HAVE_LONG_LONG_OFF_T */
306 #if _LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T
308 int sys_old_mmap(struct tcb *tcp)
311 if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), (char *) u_arg) == -1)
318 tprintf("%#lx, ", u_arg[0]);
320 tprintf("%lu, ", u_arg[1]);
322 printflags(mmap_prot, u_arg[2], "PROT_???");
326 printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
327 addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
329 printflags(mmap_flags, u_arg[3], "MAP_???");
333 printfd(tcp, u_arg[4]);
335 tprintf(", %#lx", u_arg[5]);
341 /* TODO: comment which arches use this routine.
342 * For one, does ALPHA on Linux use this??
343 * From code it seems that it might use 7 or 8 registers,
344 * which is strange - Linux syscalls can pass maximum of 6 parameters!
346 # ifdef HAVE_LONG_LONG_OFF_T
347 /* For systems that have a long long off_t,
348 * sys_mmap in syscall tables is handled by sys_mmap64:
350 # define sys_mmap64 sys_mmap
353 sys_mmap64(struct tcb *tcp)
356 #if defined(ALPHA) || defined(X32)
357 long *u_arg = tcp->u_arg;
360 if (umoven(tcp, tcp->u_arg[0], sizeof u_arg,
361 (char *) u_arg) == -1)
368 tprintf("%#lx, ", u_arg[0]);
370 tprintf("%lu, ", u_arg[1]);
372 printflags(mmap_prot, u_arg[2], "PROT_???");
376 printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
377 addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
379 printflags(mmap_flags, u_arg[3], "MAP_???");
383 printfd(tcp, u_arg[4]);
385 #if defined(ALPHA) || defined(X32)
386 printllval(tcp, ", %#llx", 5);
388 /* NOTE: not verified that [5] and [6] should be used.
389 * It's possible that long long is 64-bit aligned in memory
390 * and we need to use [6] and [7] here instead:
392 tprintf(", %#llx", LONG_LONG(u_arg[5], u_arg[6]));
397 #endif /* _LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T */
400 sys_munmap(struct tcb *tcp)
404 tcp->u_arg[0], tcp->u_arg[1]);
410 sys_mprotect(struct tcb *tcp)
413 tprintf("%#lx, %lu, ",
414 tcp->u_arg[0], tcp->u_arg[1]);
415 printflags(mmap_prot, tcp->u_arg[2], "PROT_???");
420 static const struct xlat mremap_flags[] = {
421 { MREMAP_MAYMOVE, "MREMAP_MAYMOVE" },
423 { MREMAP_FIXED, "MREMAP_FIXED" },
429 sys_mremap(struct tcb *tcp)
432 tprintf("%#lx, %lu, %lu, ", tcp->u_arg[0], tcp->u_arg[1],
434 printflags(mremap_flags, tcp->u_arg[3], "MREMAP_???");
436 if ((tcp->u_arg[3] & (MREMAP_MAYMOVE | MREMAP_FIXED)) ==
437 (MREMAP_MAYMOVE | MREMAP_FIXED))
438 tprintf(", %#lx", tcp->u_arg[4]);
444 static const struct xlat madvise_cmds[] = {
446 { MADV_NORMAL, "MADV_NORMAL" },
449 { MADV_RANDOM, "MADV_RANDOM" },
451 #ifdef MADV_SEQUENTIAL
452 { MADV_SEQUENTIAL, "MADV_SEQUENTIAL" },
455 { MADV_WILLNEED, "MADV_WILLNEED" },
458 { MADV_DONTNEED, "MADV_DONTNEED" },
464 sys_madvise(struct tcb *tcp)
467 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
468 printxval(madvise_cmds, tcp->u_arg[2], "MADV_???");
473 static const struct xlat mlockall_flags[] = {
475 { MCL_CURRENT, "MCL_CURRENT" },
478 { MCL_FUTURE, "MCL_FUTURE" },
484 sys_mlockall(struct tcb *tcp)
487 printflags(mlockall_flags, tcp->u_arg[0], "MCL_???");
494 static const struct xlat mctl_sync[] = {
496 { MS_SYNC, "MS_SYNC" },
498 { MS_ASYNC, "MS_ASYNC" },
499 { MS_INVALIDATE,"MS_INVALIDATE" },
504 sys_msync(struct tcb *tcp)
508 tprintf("%#lx", tcp->u_arg[0]);
510 tprintf(", %lu, ", tcp->u_arg[1]);
512 printflags(mctl_sync, tcp->u_arg[2], "MS_???");
517 #endif /* MS_ASYNC */
521 static const struct xlat mctl_funcs[] = {
522 { MC_LOCK, "MC_LOCK" },
523 { MC_LOCKAS, "MC_LOCKAS" },
524 { MC_SYNC, "MC_SYNC" },
525 { MC_UNLOCK, "MC_UNLOCK" },
526 { MC_UNLOCKAS, "MC_UNLOCKAS" },
530 static const struct xlat mctl_lockas[] = {
531 { MCL_CURRENT, "MCL_CURRENT" },
532 { MCL_FUTURE, "MCL_FUTURE" },
537 sys_mctl(struct tcb *tcp)
543 tprintf("%#lx", tcp->u_arg[0]);
545 tprintf(", %lu, ", tcp->u_arg[1]);
547 function = tcp->u_arg[2];
548 printflags(mctl_funcs, function, "MC_???");
554 printflags(mctl_sync, arg, "MS_???");
557 printflags(mctl_lockas, arg, "MCL_???");
570 sys_mincore(struct tcb *tcp)
573 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
575 unsigned long i, len;
579 if (syserror(tcp) || tcp->u_arg[2] == 0 ||
580 (vec = malloc(len)) == NULL ||
581 umoven(tcp, tcp->u_arg[2], len, vec) < 0)
582 tprintf("%#lx", tcp->u_arg[2]);
585 for (i = 0; i < len; i++) {
586 if (abbrev(tcp) && i >= max_strlen) {
590 tprints((vec[i] & 1) ? "1" : "0");
599 #if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64)
601 sys_getpagesize(struct tcb *tcp)
611 print_ldt_entry(struct modify_ldt_ldt_s *ldt_entry)
613 tprintf("base_addr:%#08lx, "
617 "read_exec_only:%d, "
618 "limit_in_pages:%d, "
619 "seg_not_present:%d, "
621 (long) ldt_entry->base_addr,
623 ldt_entry->seg_32bit,
625 ldt_entry->read_exec_only,
626 ldt_entry->limit_in_pages,
627 ldt_entry->seg_not_present,
632 sys_modify_ldt(struct tcb *tcp)
635 struct modify_ldt_ldt_s copy;
636 tprintf("%ld", tcp->u_arg[0]);
637 if (tcp->u_arg[1] == 0
638 || tcp->u_arg[2] != sizeof(struct modify_ldt_ldt_s)
639 || umove(tcp, tcp->u_arg[1], ©) == -1)
640 tprintf(", %lx", tcp->u_arg[1]);
642 tprintf(", {entry_number:%d, ", copy.entry_number);
646 print_ldt_entry(©);
649 tprintf(", %lu", tcp->u_arg[2]);
655 sys_set_thread_area(struct tcb *tcp)
657 struct modify_ldt_ldt_s copy;
659 if (umove(tcp, tcp->u_arg[0], ©) != -1) {
660 if (copy.entry_number == -1)
661 tprintf("{entry_number:%d -> ",
664 tprints("{entry_number:");
667 if (umove(tcp, tcp->u_arg[0], ©) != -1) {
668 tprintf("%d, ", copy.entry_number);
672 print_ldt_entry(©);
675 tprintf("%lx", tcp->u_arg[0]);
683 sys_get_thread_area(struct tcb *tcp)
685 struct modify_ldt_ldt_s copy;
687 if (umove(tcp, tcp->u_arg[0], ©) != -1) {
688 tprintf("{entry_number:%d, ", copy.entry_number);
692 print_ldt_entry(©);
695 tprintf("%lx", tcp->u_arg[0]);
705 sys_set_thread_area(struct tcb *tcp)
708 tprintf("%#lx", tcp->u_arg[0]);
714 sys_get_thread_area(struct tcb *tcp)
721 sys_remap_file_pages(struct tcb *tcp)
724 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
725 printflags(mmap_prot, tcp->u_arg[2], "PROT_???");
726 tprintf(", %lu, ", tcp->u_arg[3]);
728 printxval(mmap_flags, tcp->u_arg[4] & MAP_TYPE, "MAP_???");
729 addflags(mmap_flags, tcp->u_arg[4] & ~MAP_TYPE);
731 printflags(mmap_flags, tcp->u_arg[4], "MAP_???");
737 #define MPOL_DEFAULT 0
738 #define MPOL_PREFERRED 1
740 #define MPOL_INTERLEAVE 3
742 #define MPOL_F_NODE (1<<0)
743 #define MPOL_F_ADDR (1<<1)
745 #define MPOL_MF_STRICT (1<<0)
746 #define MPOL_MF_MOVE (1<<1)
747 #define MPOL_MF_MOVE_ALL (1<<2)
749 static const struct xlat policies[] = {
750 { MPOL_DEFAULT, "MPOL_DEFAULT" },
751 { MPOL_PREFERRED, "MPOL_PREFERRED" },
752 { MPOL_BIND, "MPOL_BIND" },
753 { MPOL_INTERLEAVE, "MPOL_INTERLEAVE" },
757 static const struct xlat mbindflags[] = {
758 { MPOL_MF_STRICT, "MPOL_MF_STRICT" },
759 { MPOL_MF_MOVE, "MPOL_MF_MOVE" },
760 { MPOL_MF_MOVE_ALL, "MPOL_MF_MOVE_ALL" },
764 static const struct xlat mempolicyflags[] = {
765 { MPOL_F_NODE, "MPOL_F_NODE" },
766 { MPOL_F_ADDR, "MPOL_F_ADDR" },
770 static const struct xlat move_pages_flags[] = {
771 { MPOL_MF_MOVE, "MPOL_MF_MOVE" },
772 { MPOL_MF_MOVE_ALL, "MPOL_MF_MOVE_ALL" },
777 get_nodes(struct tcb *tcp, unsigned long ptr, unsigned long maxnodes, int err)
779 unsigned long nlongs, size, end;
781 nlongs = (maxnodes + 8 * sizeof(long) - 1) / (8 * sizeof(long));
782 size = nlongs * sizeof(long);
784 if (nlongs == 0 || ((err || verbose(tcp)) && (size * 8 == maxnodes)
786 unsigned long n, cur, abbrev_end;
790 abbrev_end = ptr + max_strlen * sizeof(long);
791 if (abbrev_end < ptr)
797 for (cur = ptr; cur < end; cur += sizeof(long)) {
800 if (cur >= abbrev_end) {
804 if (umoven(tcp, cur, sizeof(n), (char *) &n) < 0) {
809 tprintf("%#0*lx", (int) sizeof(long) * 2 + 2, n);
813 tprintf(" %#lx", ptr);
815 tprintf(", %#lx", ptr);
816 tprintf(", %lu", maxnodes);
820 sys_mbind(struct tcb *tcp)
823 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
824 printxval(policies, tcp->u_arg[2], "MPOL_???");
825 get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[4], 0);
827 printflags(mbindflags, tcp->u_arg[5], "MPOL_???");
833 sys_set_mempolicy(struct tcb *tcp)
836 printxval(policies, tcp->u_arg[0], "MPOL_???");
837 get_nodes(tcp, tcp->u_arg[1], tcp->u_arg[2], 0);
843 sys_get_mempolicy(struct tcb *tcp)
847 if (tcp->u_arg[0] == 0)
849 else if (syserror(tcp) || umove(tcp, tcp->u_arg[0], &pol) < 0)
850 tprintf("%#lx", tcp->u_arg[0]);
852 printxval(policies, pol, "MPOL_???");
853 get_nodes(tcp, tcp->u_arg[1], tcp->u_arg[2], syserror(tcp));
854 tprintf(", %#lx, ", tcp->u_arg[3]);
855 printflags(mempolicyflags, tcp->u_arg[4], "MPOL_???");
861 sys_migrate_pages(struct tcb *tcp)
864 tprintf("%ld, ", (long) (pid_t) tcp->u_arg[0]);
865 get_nodes(tcp, tcp->u_arg[2], tcp->u_arg[1], 0);
867 get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[1], 0);
873 sys_move_pages(struct tcb *tcp)
876 unsigned long npages = tcp->u_arg[1];
877 tprintf("%ld, %lu, ", tcp->u_arg[0], npages);
878 if (tcp->u_arg[2] == 0)
882 long puser = tcp->u_arg[2];
884 for (i = 0; i < npages; ++i) {
888 if (umove(tcp, puser, &p) < 0) {
893 puser += sizeof(void *);
897 if (tcp->u_arg[3] == 0)
901 long nodeuser = tcp->u_arg[3];
903 for (i = 0; i < npages; ++i) {
907 if (umove(tcp, nodeuser, &node) < 0) {
911 tprintf("%#x", node);
912 nodeuser += sizeof(int);
918 unsigned long npages = tcp->u_arg[1];
919 if (tcp->u_arg[4] == 0)
923 long statususer = tcp->u_arg[4];
925 for (i = 0; i < npages; ++i) {
929 if (umove(tcp, statususer, &status) < 0) {
933 tprintf("%#x", status);
934 statususer += sizeof(int);
938 printflags(move_pages_flags, tcp->u_arg[5], "MPOL_???");
945 sys_subpage_prot(struct tcb *tcp)
948 unsigned long cur, end, abbrev_end, entries;
951 tprintf("%#lx, %#lx, ", tcp->u_arg[0], tcp->u_arg[1]);
952 entries = tcp->u_arg[1] >> 16;
953 if (!entries || !tcp->u_arg[2]) {
958 end = cur + (sizeof(int) * entries);
959 if (!verbose(tcp) || end < tcp->u_arg[2]) {
960 tprintf("%#lx", tcp->u_arg[2]);
964 abbrev_end = cur + (sizeof(int) * max_strlen);
965 if (abbrev_end > end)
971 for (; cur < end; cur += sizeof(int)) {
972 if (cur > tcp->u_arg[2])
974 if (cur >= abbrev_end) {
978 if (umove(tcp, cur, &entry) < 0) {
979 tprintf("??? [%#lx]", cur);
983 tprintf("%#08x", entry);