Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2009 14:01:28 GMT
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 167538 for review
Message-ID:  <200908201401.n7KE1SMd044689@repoman.freebsd.org>

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

Change 167538 by stas@stas_yandex on 2009/08/20 14:00:57

	- Use FreeBSD7 mmap.

Affected files ...

.. //depot/projects/valgrind/coregrind/m_aspacemgr/aspacemgr-common.c#5 edit
.. //depot/projects/valgrind/coregrind/m_syswrap/syswrap-freebsd.c#35 edit
.. //depot/projects/valgrind/coregrind/m_ume/elf.c#2 edit
.. //depot/projects/valgrind/include/vki/vki-scnums-freebsd.h#5 edit

Differences ...

==== //depot/projects/valgrind/coregrind/m_aspacemgr/aspacemgr-common.c#5 (text+ko) ====

@@ -181,8 +181,8 @@
 #  elif defined(VGP_amd64_freebsd)
    if (flags & VKI_MAP_ANONYMOUS && fd == 0)
       fd = -1;
-   res = VG_(do_syscall7)(__NR_mmap, (UWord)start, length,
-			  prot, flags, fd, 0, offset);
+   res = VG_(do_syscall6)(__NR_mmap, (UWord)start, length,
+			  prot, flags, fd, offset);
 #  else
 #    error Unknown platform
 #  endif

==== //depot/projects/valgrind/coregrind/m_syswrap/syswrap-freebsd.c#35 (text+ko) ====

@@ -3298,7 +3298,7 @@
    GENX_(__NR_setrlimit,		sys_setrlimit),			// 195
 
    BSDXY(__NR_getdirentries,		sys_getdirentries),		// 196
-   BSDX_(__NR_mmap,			sys_mmap),			// 197
+   BSDX_(__NR_mmap,			sys_mmap7),			// 197
    // __syscall (handled specially)					// 198
    BSDX_(__NR_lseek6,			sys_lseek),			// 199
 
@@ -3648,7 +3648,7 @@
    BSDXY(__NR_pread7,			sys_pread7),			// 475
 
    BSDX_(__NR_pwrite7,			sys_pwrite7),			// 476
-   BSDX_(__NR_mmap7,			sys_mmap7),			// 477
+   BSDX_(__NR_mmap,			sys_mmap7),			// 477
    BSDX_(__NR_lseek,			sys_lseek),			// 478
    BSDX_(__NR_truncate7,		sys_truncate7),			// 479
 

==== //depot/projects/valgrind/coregrind/m_ume/elf.c#2 (text+ko) ====


==== //depot/projects/valgrind/include/vki/vki-scnums-freebsd.h#5 (text+ko) ====

@@ -174,7 +174,7 @@
 #define	__NR_getrlimit		194
 #define	__NR_setrlimit		195
 #define	__NR_getdirentries	196
-#define	__NR_mmap		197
+#define	__NR_mmap6		197
 #define	__NR___syscall		198
 #define	__NR_lseek6		199
 #define	__NR_truncate		200
@@ -387,7 +387,7 @@
 #define	__NR_sctp_generic_recvmsg	474
 #define	__NR_pread7		475
 #define	__NR_pwrite7		476
-#define	__NR_mmap7		477
+#define	__NR_mmap		477
 #define	__NR_lseek		478
 #define	__NR_truncate7		479
 #define	__NR_ftruncate7		480



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