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 */
46 #ifdef HAVE_LONG_LONG_OFF_T
48 * Ugly hacks for systems that have a long long off_t
50 # define sys_mmap64 sys_mmap
54 sys_brk(struct tcb *tcp)
57 tprintf("%#lx", tcp->u_arg[0]);
62 static const struct xlat mmap_prot[] = {
63 { PROT_NONE, "PROT_NONE", },
64 { PROT_READ, "PROT_READ" },
65 { PROT_WRITE, "PROT_WRITE" },
66 { PROT_EXEC, "PROT_EXEC" },
68 { PROT_SEM, "PROT_SEM" },
71 { PROT_GROWSDOWN,"PROT_GROWSDOWN"},
74 { PROT_GROWSUP, "PROT_GROWSUP" },
77 { PROT_SAO, "PROT_SAO" },
82 static const struct xlat mmap_flags[] = {
83 { MAP_SHARED, "MAP_SHARED" },
84 { MAP_PRIVATE, "MAP_PRIVATE" },
85 { MAP_FIXED, "MAP_FIXED" },
87 { MAP_ANONYMOUS,"MAP_ANONYMOUS" },
90 { MAP_32BIT, "MAP_32BIT" },
93 { MAP_RENAME, "MAP_RENAME" },
96 { MAP_NORESERVE,"MAP_NORESERVE" },
99 { MAP_POPULATE, "MAP_POPULATE" },
102 { MAP_NONBLOCK, "MAP_NONBLOCK" },
105 * XXX - this was introduced in SunOS 4.x to distinguish between
106 * the old pre-4.x "mmap()", which:
108 * only let you map devices with an "mmap" routine (e.g.,
111 * required you to specify the mapping address;
113 * returned 0 on success and -1 on failure;
115 * memory and which, and the 4.x "mmap()" which:
117 * can map plain files;
119 * can be asked to pick where to map the file;
121 * returns the address where it mapped the file on success
124 * It's not actually used in source code that calls "mmap()"; the
125 * "mmap()" routine adds it for you.
127 * It'd be nice to come up with some way of eliminating it from
128 * the flags, e.g. reporting calls *without* it as "old_mmap()"
129 * and calls with it as "mmap()".
132 { _MAP_NEW, "_MAP_NEW" },
135 { MAP_GROWSDOWN,"MAP_GROWSDOWN" },
138 { MAP_DENYWRITE,"MAP_DENYWRITE" },
140 #ifdef MAP_EXECUTABLE
141 { MAP_EXECUTABLE,"MAP_EXECUTABLE"},
144 { MAP_INHERIT, "MAP_INHERIT" },
147 { MAP_FILE, "MAP_FILE" },
150 { MAP_LOCKED, "MAP_LOCKED" },
153 #if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
154 { MAP_ANON, "MAP_ANON" },
156 #ifdef MAP_HASSEMAPHORE
157 { MAP_HASSEMAPHORE,"MAP_HASSEMAPHORE"},
160 { MAP_STACK, "MAP_STACK" },
162 #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
163 { MAP_UNINITIALIZED,"MAP_UNINITIALIZED"},
166 { MAP_NOSYNC, "MAP_NOSYNC" },
169 { MAP_NOCORE, "MAP_NOCORE" },
172 { MAP_CACHE_NO_LOCAL, "MAP_CACHE_NO_LOCAL" },
173 { MAP_CACHE_NO_L2, "MAP_CACHE_NO_L2" },
174 { MAP_CACHE_NO_L1, "MAP_CACHE_NO_L1" },
181 addtileflags(long flags)
183 long home = flags & _MAP_CACHE_MKHOME(_MAP_CACHE_HOME_MASK);
184 flags &= ~_MAP_CACHE_MKHOME(_MAP_CACHE_HOME_MASK);
186 if (flags & _MAP_CACHE_INCOHERENT) {
187 flags &= ~_MAP_CACHE_INCOHERENT;
188 if (home == MAP_CACHE_HOME_NONE) {
189 tprints("|MAP_CACHE_INCOHERENT");
192 tprints("|_MAP_CACHE_INCOHERENT");
197 case MAP_CACHE_HOME_HERE: tprints("|MAP_CACHE_HOME_HERE"); break;
198 case MAP_CACHE_HOME_NONE: tprints("|MAP_CACHE_HOME_NONE"); break;
199 case MAP_CACHE_HOME_SINGLE: tprints("|MAP_CACHE_HOME_SINGLE"); break;
200 case MAP_CACHE_HOME_TASK: tprints("|MAP_CACHE_HOME_TASK"); break;
201 case MAP_CACHE_HOME_HASH: tprints("|MAP_CACHE_HOME_HASH"); break;
203 tprintf("|MAP_CACHE_HOME(%ld)",
204 (home >> _MAP_CACHE_HOME_SHIFT) );
212 #if !HAVE_LONG_LONG_OFF_T
214 print_mmap(struct tcb *tcp, long *u_arg, long long offset)
221 tprintf("%#lx, ", u_arg[0]);
223 tprintf("%lu, ", u_arg[1]);
225 printflags(mmap_prot, u_arg[2], "PROT_???");
229 printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
231 addflags(mmap_flags, addtileflags(u_arg[3] & ~MAP_TYPE));
233 addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
236 printflags(mmap_flags, u_arg[3], "MAP_???");
240 printfd(tcp, u_arg[4]);
242 tprintf(", %#llx", offset);
247 int sys_old_mmap(struct tcb *tcp)
251 * IA64 processes never call this routine, they only use the
252 * new `sys_mmap' interface.
253 * For IA32 processes, this code converts the integer arguments
254 * that they pushed onto the stack, into longs.
256 * Note that addresses with bit 31 set will be sign extended.
257 * Fortunately, those addresses are not currently being generated
258 * for IA32 processes so it's not a problem.
263 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), (char *) narrow_arg) == -1)
265 for (i = 0; i < 6; i++)
266 u_arg[i] = narrow_arg[i];
267 #elif defined(SH) || defined(SH64)
268 /* SH has always passed the args in registers */
269 long *u_arg = tcp->u_arg;
273 if (current_personality == 1) {
275 unsigned narrow_arg[6];
276 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), (char *) narrow_arg) == -1)
278 for (i = 0; i < 6; ++i)
279 u_arg[i] = narrow_arg[i];
283 if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), (char *) u_arg) == -1)
285 #endif /* other architectures */
287 return print_mmap(tcp, u_arg, u_arg[5]);
291 sys_mmap(struct tcb *tcp)
293 long long offset = tcp->u_arg[5];
295 /* FIXME: why only SH64? i386 mmap2 syscall ends up
296 * in this function, but does not convert offset
297 * from pages to bytes. See test/mmap_offset_decode.c
298 * Why SH64 and i386 are handled differently?
302 * Old mmap differs from new mmap in specifying the
303 * offset in units of bytes rather than pages. We
304 * pretend it's in byte units so the user only ever
305 * sees bytes in the printout.
307 offset <<= PAGE_SHIFT;
309 #if defined(LINUX_MIPSN32)
310 offset = tcp->ext_arg[5];
312 return print_mmap(tcp, tcp->u_arg, offset);
314 #endif /* !HAVE_LONG_LONG_OFF_T */
316 #if _LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T
318 int sys_old_mmap(struct tcb *tcp)
321 if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), (char *) u_arg) == -1)
328 tprintf("%#lx, ", u_arg[0]);
330 tprintf("%lu, ", u_arg[1]);
332 printflags(mmap_prot, u_arg[2], "PROT_???");
336 printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
337 addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
339 printflags(mmap_flags, u_arg[3], "MAP_???");
343 printfd(tcp, u_arg[4]);
345 tprintf(", %#lx", u_arg[5]);
351 /* TODO: comment which arches use this routine.
352 * For one, does ALPHA on Linux use this??
353 * From code it seems that it might use 7 or 8 registers,
354 * which is strange - Linux syscalls can pass maximum of 6 parameters!
357 sys_mmap64(struct tcb *tcp)
360 #if defined(ALPHA) || defined(X32)
361 long *u_arg = tcp->u_arg;
364 if (umoven(tcp, tcp->u_arg[0], sizeof u_arg,
365 (char *) u_arg) == -1)
372 tprintf("%#lx, ", u_arg[0]);
374 tprintf("%lu, ", u_arg[1]);
376 printflags(mmap_prot, u_arg[2], "PROT_???");
380 printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
381 addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
383 printflags(mmap_flags, u_arg[3], "MAP_???");
387 printfd(tcp, u_arg[4]);
389 #if defined(ALPHA) || defined(X32)
390 printllval(tcp, ", %#llx", 5);
392 /* NOTE: not verified that [5] and [6] should be used.
393 * It's possible that long long is 64-bit aligned in memory
394 * and we need to use [6] and [7] here instead:
396 tprintf(", %#llx", LONG_LONG(u_arg[5], u_arg[6]));
401 #endif /* _LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T */
404 sys_munmap(struct tcb *tcp)
408 tcp->u_arg[0], tcp->u_arg[1]);
414 sys_mprotect(struct tcb *tcp)
417 tprintf("%#lx, %lu, ",
418 tcp->u_arg[0], tcp->u_arg[1]);
419 printflags(mmap_prot, tcp->u_arg[2], "PROT_???");
424 static const struct xlat mremap_flags[] = {
425 { MREMAP_MAYMOVE, "MREMAP_MAYMOVE" },
427 { MREMAP_FIXED, "MREMAP_FIXED" },
433 sys_mremap(struct tcb *tcp)
436 tprintf("%#lx, %lu, %lu, ", tcp->u_arg[0], tcp->u_arg[1],
438 printflags(mremap_flags, tcp->u_arg[3], "MREMAP_???");
440 if ((tcp->u_arg[3] & (MREMAP_MAYMOVE | MREMAP_FIXED)) ==
441 (MREMAP_MAYMOVE | MREMAP_FIXED))
442 tprintf(", %#lx", tcp->u_arg[4]);
448 static const struct xlat madvise_cmds[] = {
450 { MADV_NORMAL, "MADV_NORMAL" },
453 { MADV_RANDOM, "MADV_RANDOM" },
455 #ifdef MADV_SEQUENTIAL
456 { MADV_SEQUENTIAL, "MADV_SEQUENTIAL" },
459 { MADV_WILLNEED, "MADV_WILLNEED" },
462 { MADV_DONTNEED, "MADV_DONTNEED" },
468 sys_madvise(struct tcb *tcp)
471 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
472 printxval(madvise_cmds, tcp->u_arg[2], "MADV_???");
477 static const struct xlat mlockall_flags[] = {
479 { MCL_CURRENT, "MCL_CURRENT" },
482 { MCL_FUTURE, "MCL_FUTURE" },
488 sys_mlockall(struct tcb *tcp)
491 printflags(mlockall_flags, tcp->u_arg[0], "MCL_???");
498 static const struct xlat mctl_sync[] = {
500 { MS_SYNC, "MS_SYNC" },
502 { MS_ASYNC, "MS_ASYNC" },
503 { MS_INVALIDATE,"MS_INVALIDATE" },
508 sys_msync(struct tcb *tcp)
512 tprintf("%#lx", tcp->u_arg[0]);
514 tprintf(", %lu, ", tcp->u_arg[1]);
516 printflags(mctl_sync, tcp->u_arg[2], "MS_???");
521 #endif /* MS_ASYNC */
525 static const struct xlat mctl_funcs[] = {
526 { MC_LOCK, "MC_LOCK" },
527 { MC_LOCKAS, "MC_LOCKAS" },
528 { MC_SYNC, "MC_SYNC" },
529 { MC_UNLOCK, "MC_UNLOCK" },
530 { MC_UNLOCKAS, "MC_UNLOCKAS" },
534 static const struct xlat mctl_lockas[] = {
535 { MCL_CURRENT, "MCL_CURRENT" },
536 { MCL_FUTURE, "MCL_FUTURE" },
541 sys_mctl(struct tcb *tcp)
547 tprintf("%#lx", tcp->u_arg[0]);
549 tprintf(", %lu, ", tcp->u_arg[1]);
551 function = tcp->u_arg[2];
552 printflags(mctl_funcs, function, "MC_???");
558 printflags(mctl_sync, arg, "MS_???");
561 printflags(mctl_lockas, arg, "MCL_???");
574 sys_mincore(struct tcb *tcp)
577 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
579 unsigned long i, len;
583 if (syserror(tcp) || tcp->u_arg[2] == 0 ||
584 (vec = malloc(len)) == NULL ||
585 umoven(tcp, tcp->u_arg[2], len, vec) < 0)
586 tprintf("%#lx", tcp->u_arg[2]);
589 for (i = 0; i < len; i++) {
590 if (abbrev(tcp) && i >= max_strlen) {
594 tprints((vec[i] & 1) ? "1" : "0");
603 #if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64)
605 sys_getpagesize(struct tcb *tcp)
615 print_ldt_entry(struct modify_ldt_ldt_s *ldt_entry)
617 tprintf("base_addr:%#08lx, "
621 "read_exec_only:%d, "
622 "limit_in_pages:%d, "
623 "seg_not_present:%d, "
625 (long) ldt_entry->base_addr,
627 ldt_entry->seg_32bit,
629 ldt_entry->read_exec_only,
630 ldt_entry->limit_in_pages,
631 ldt_entry->seg_not_present,
636 sys_modify_ldt(struct tcb *tcp)
639 struct modify_ldt_ldt_s copy;
640 tprintf("%ld", tcp->u_arg[0]);
641 if (tcp->u_arg[1] == 0
642 || tcp->u_arg[2] != sizeof(struct modify_ldt_ldt_s)
643 || umove(tcp, tcp->u_arg[1], ©) == -1)
644 tprintf(", %lx", tcp->u_arg[1]);
646 tprintf(", {entry_number:%d, ", copy.entry_number);
650 print_ldt_entry(©);
653 tprintf(", %lu", tcp->u_arg[2]);
659 sys_set_thread_area(struct tcb *tcp)
661 struct modify_ldt_ldt_s copy;
663 if (umove(tcp, tcp->u_arg[0], ©) != -1) {
664 if (copy.entry_number == -1)
665 tprintf("{entry_number:%d -> ",
668 tprints("{entry_number:");
671 if (umove(tcp, tcp->u_arg[0], ©) != -1) {
672 tprintf("%d, ", copy.entry_number);
676 print_ldt_entry(©);
679 tprintf("%lx", tcp->u_arg[0]);
687 sys_get_thread_area(struct tcb *tcp)
689 struct modify_ldt_ldt_s copy;
691 if (umove(tcp, tcp->u_arg[0], ©) != -1) {
692 tprintf("{entry_number:%d, ", copy.entry_number);
696 print_ldt_entry(©);
699 tprintf("%lx", tcp->u_arg[0]);
709 sys_set_thread_area(struct tcb *tcp)
712 tprintf("%#lx", tcp->u_arg[0]);
718 sys_get_thread_area(struct tcb *tcp)
725 sys_remap_file_pages(struct tcb *tcp)
728 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
729 printflags(mmap_prot, tcp->u_arg[2], "PROT_???");
730 tprintf(", %lu, ", tcp->u_arg[3]);
732 printxval(mmap_flags, tcp->u_arg[4] & MAP_TYPE, "MAP_???");
733 addflags(mmap_flags, tcp->u_arg[4] & ~MAP_TYPE);
735 printflags(mmap_flags, tcp->u_arg[4], "MAP_???");
741 #define MPOL_DEFAULT 0
742 #define MPOL_PREFERRED 1
744 #define MPOL_INTERLEAVE 3
746 #define MPOL_F_NODE (1<<0)
747 #define MPOL_F_ADDR (1<<1)
749 #define MPOL_MF_STRICT (1<<0)
750 #define MPOL_MF_MOVE (1<<1)
751 #define MPOL_MF_MOVE_ALL (1<<2)
753 static const struct xlat policies[] = {
754 { MPOL_DEFAULT, "MPOL_DEFAULT" },
755 { MPOL_PREFERRED, "MPOL_PREFERRED" },
756 { MPOL_BIND, "MPOL_BIND" },
757 { MPOL_INTERLEAVE, "MPOL_INTERLEAVE" },
761 static const struct xlat mbindflags[] = {
762 { MPOL_MF_STRICT, "MPOL_MF_STRICT" },
763 { MPOL_MF_MOVE, "MPOL_MF_MOVE" },
764 { MPOL_MF_MOVE_ALL, "MPOL_MF_MOVE_ALL" },
768 static const struct xlat mempolicyflags[] = {
769 { MPOL_F_NODE, "MPOL_F_NODE" },
770 { MPOL_F_ADDR, "MPOL_F_ADDR" },
774 static const struct xlat move_pages_flags[] = {
775 { MPOL_MF_MOVE, "MPOL_MF_MOVE" },
776 { MPOL_MF_MOVE_ALL, "MPOL_MF_MOVE_ALL" },
781 get_nodes(struct tcb *tcp, unsigned long ptr, unsigned long maxnodes, int err)
783 unsigned long nlongs, size, end;
785 nlongs = (maxnodes + 8 * sizeof(long) - 1) / (8 * sizeof(long));
786 size = nlongs * sizeof(long);
788 if (nlongs == 0 || ((err || verbose(tcp)) && (size * 8 == maxnodes)
790 unsigned long n, cur, abbrev_end;
794 abbrev_end = ptr + max_strlen * sizeof(long);
795 if (abbrev_end < ptr)
801 for (cur = ptr; cur < end; cur += sizeof(long)) {
804 if (cur >= abbrev_end) {
808 if (umoven(tcp, cur, sizeof(n), (char *) &n) < 0) {
813 tprintf("%#0*lx", (int) sizeof(long) * 2 + 2, n);
817 tprintf(" %#lx", ptr);
819 tprintf(", %#lx", ptr);
820 tprintf(", %lu", maxnodes);
824 sys_mbind(struct tcb *tcp)
827 tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
828 printxval(policies, tcp->u_arg[2], "MPOL_???");
829 get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[4], 0);
831 printflags(mbindflags, tcp->u_arg[5], "MPOL_???");
837 sys_set_mempolicy(struct tcb *tcp)
840 printxval(policies, tcp->u_arg[0], "MPOL_???");
841 get_nodes(tcp, tcp->u_arg[1], tcp->u_arg[2], 0);
847 sys_get_mempolicy(struct tcb *tcp)
851 if (tcp->u_arg[0] == 0)
853 else if (syserror(tcp) || umove(tcp, tcp->u_arg[0], &pol) < 0)
854 tprintf("%#lx", tcp->u_arg[0]);
856 printxval(policies, pol, "MPOL_???");
857 get_nodes(tcp, tcp->u_arg[1], tcp->u_arg[2], syserror(tcp));
858 tprintf(", %#lx, ", tcp->u_arg[3]);
859 printflags(mempolicyflags, tcp->u_arg[4], "MPOL_???");
865 sys_migrate_pages(struct tcb *tcp)
868 tprintf("%ld, ", (long) (pid_t) tcp->u_arg[0]);
869 get_nodes(tcp, tcp->u_arg[2], tcp->u_arg[1], 0);
871 get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[1], 0);
877 sys_move_pages(struct tcb *tcp)
880 unsigned long npages = tcp->u_arg[1];
881 tprintf("%ld, %lu, ", tcp->u_arg[0], npages);
882 if (tcp->u_arg[2] == 0)
886 long puser = tcp->u_arg[2];
888 for (i = 0; i < npages; ++i) {
892 if (umove(tcp, puser, &p) < 0) {
897 puser += sizeof(void *);
901 if (tcp->u_arg[3] == 0)
905 long nodeuser = tcp->u_arg[3];
907 for (i = 0; i < npages; ++i) {
911 if (umove(tcp, nodeuser, &node) < 0) {
915 tprintf("%#x", node);
916 nodeuser += sizeof(int);
922 unsigned long npages = tcp->u_arg[1];
923 if (tcp->u_arg[4] == 0)
927 long statususer = tcp->u_arg[4];
929 for (i = 0; i < npages; ++i) {
933 if (umove(tcp, statususer, &status) < 0) {
937 tprintf("%#x", status);
938 statususer += sizeof(int);
942 printflags(move_pages_flags, tcp->u_arg[5], "MPOL_???");
949 sys_subpage_prot(struct tcb *tcp)
952 unsigned long cur, end, abbrev_end, entries;
955 tprintf("%#lx, %#lx, ", tcp->u_arg[0], tcp->u_arg[1]);
956 entries = tcp->u_arg[1] >> 16;
957 if (!entries || !tcp->u_arg[2]) {
962 end = cur + (sizeof(int) * entries);
963 if (!verbose(tcp) || end < tcp->u_arg[2]) {
964 tprintf("%#lx", tcp->u_arg[2]);
968 abbrev_end = cur + (sizeof(int) * max_strlen);
969 if (abbrev_end > end)
975 for (; cur < end; cur += sizeof(int)) {
976 if (cur > tcp->u_arg[2])
978 if (cur >= abbrev_end) {
982 if (umove(tcp, cur, &entry) < 0) {
983 tprintf("??? [%#lx]", cur);
987 tprintf("%#08x", entry);