Home | History | Annotate | Download | only in netbsd32
History log of /src/sys/compat/netbsd32/netbsd32_compat_13.c
RevisionDateAuthorComments
 1.28  19-Jan-2021  simonb KNF consistency: No parentheses are needed around the return value.
 1.27  27-Jan-2019  pgoyette branches: 1.27.12;
Merge the [pgoyette-compat] branch
 1.26  24-Jan-2014  christos branches: 1.26.28; 1.26.30;
need to lock the process.
 1.25  29-May-2008  mrg branches: 1.25.12; 1.25.34; 1.25.44; 1.25.50;
remove clause #3 from my license where there are no other
copyright holders involved.
 1.24  20-Dec-2007  dsl branches: 1.24.6; 1.24.8; 1.24.10; 1.24.12;
Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
 1.23  08-Dec-2007  dsl branches: 1.23.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.22  16-Jun-2007  dsl branches: 1.22.6; 1.22.8; 1.22.16;
Modify the (recently added) compat_sigaltstack() #define to take the
values of the SS_ONSTACK and SS_DISABLE constants.
Use it to shorten the source files when this action is replicated.
Actually, given the monstrous complexity of sigaltstack1() there is
probably a much better way to do this...
 1.21  03-Jun-2007  dsl Add a #define that expands to the compat wrapper for sigaltstack1().
Use it for the netbsd32_compat_13.c version of the code.
 1.20  03-Jun-2007  dsl Calling sigaltstack1() directly is so much easier than going via
compat_13_sys_sigaltstack().
 1.19  18-Mar-2007  dsl Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).
 1.18  16-Mar-2007  dsl remove all the double (and triple) casts used to convert 32bit userspace
pointers to and from 64bit kernel pointers. Instead use the defines
NETBSD32PTR64(p32) to read a 32bit pointer and (the new) NETBSD32PTR32(p32,p64)
to write a 32bit pointer throughout.
The 32bit pointer is now a struct to enforce the above.
amd64 (with linux emul) and sparc64 will both compile (when the arch stuff
goes in soon), and amd64 still runs some i386 binaries.
 1.17  04-Mar-2007  christos branches: 1.17.2; 1.17.4; 1.17.6;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16  09-Feb-2007  ad branches: 1.16.2;
Merge newlock2 to head.
 1.15  11-Dec-2005  christos branches: 1.15.20;
merge ktrace-lwp.
 1.14  13-Sep-2005  christos make this compile again.
 1.13  18-Jan-2003  thorpej branches: 1.13.2; 1.13.18;
Merge the nathanw_sa branch.
 1.12  23-Oct-2002  scw In preparation for COMPAT_NETBSD32 on SH-5:

- The MD netbsd32_machdep.h header now defines the 32-bit pointer type
instead of using u_int32_t everywhere,
- The MD netbsd32_machdep.h header now defines a macro (at least on
current implementations) which converts a 32-bit pointer to its 64-bit
equivalent,
- Change the MI code to utilise the above two items in all the right places,
- Implement netbsd32___sigaction_sigtramp().

Tested on Sparc64 by Matt Green.
 1.11  16-Mar-2002  christos make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc *
in, instead of using curproc). While there add an optional size argument to
stackgap_init.
 1.10  13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.9  25-Aug-2001  mrg update copyright notices.
 1.8  07-Feb-2001  mrg branches: 1.8.2; 1.8.4;
fix the glaring errors in compat_13_netbsd32_sigaltstack13
 1.7  09-Jul-2000  mrg - massive warning fix fest.
- fix pread/pwrite return values (plus some other syscalls that looked
similarly broken).
- prototypes and clean up for netbsd32_ioctl.c

now getpw*() works under compat32!
 1.6  30-Mar-2000  augustss Kill register declarations.
 1.5  30-Dec-1999  eeh Update to 32-bit compatibility routines.
 1.4  11-Oct-1999  eeh branches: 1.4.2;
Add netbsd32_compat_14.c

Rename everything from compat_netbsd32 -> netbsd32 so we don't have silly
names like compat_14_compat_netbsd32_sys_shmctl().
 1.3  25-Mar-1999  mrg branches: 1.3.8;
move sparc32 to netbsd32; split out MD part (signal handling) (mostly via repository copy, rename and perl -pi :-)
 1.2  26-Aug-1998  mrg use right syscalls
 1.1  26-Aug-1998  mrg add a 32-bit compatibility module for the sparc64 port, so it can run NetBSD/sparc binaries with a LP64 kernel.
 1.3.8.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.2  11-Feb-2001  bouyer Sync with HEAD.
 1.4.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.8.4.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8.4.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.4.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.8.2.6  11-Nov-2002  nathanw Catch up to -current
 1.8.2.5  23-Aug-2002  petrov lwpification.
 1.8.2.4  29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.8.2.3  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.8.2.2  14-Nov-2001  nathanw Catch up to -current.
 1.8.2.1  21-Sep-2001  nathanw Catch up to -current.
 1.13.18.4  21-Jan-2008  yamt sync with head
 1.13.18.3  03-Sep-2007  yamt sync with head.
 1.13.18.2  26-Feb-2007  yamt sync with head.
 1.13.18.1  21-Jun-2006  yamt sync with head.
 1.13.2.1  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.15.20.3  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.15.20.2  11-Jan-2007  ad Checkpoint work in progress.
 1.15.20.1  21-Oct-2006  ad Checkpoint work in progress on locking and per-LWP signals. Very much a
a work in progress and there is still a lot to do.
 1.16.2.2  24-Mar-2007  yamt sync with head.
 1.16.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.17.6.2  29-Mar-2007  reinoud Pullup to -current
 1.17.6.1  18-Mar-2007  reinoud First attempt to bring branch in sync with HEAD
 1.17.4.1  11-Jul-2007  mjf Sync with head.
 1.17.2.3  15-Jul-2007  ad Sync with head.
 1.17.2.2  09-Jun-2007  ad Sync with head.
 1.17.2.1  10-Apr-2007  ad Sync with head.
 1.22.16.1  26-Dec-2007  ad Sync with head.
 1.22.8.1  09-Jan-2008  matt sync with HEAD
 1.22.6.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.23.4.1  02-Jan-2008  bouyer Sync with HEAD
 1.24.12.3  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.24.12.2  14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.24.12.1  10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.24.10.1  04-May-2009  yamt sync with head.
 1.24.8.1  04-Jun-2008  yamt sync with head
 1.24.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.25.50.1  18-May-2014  rmind sync with head
 1.25.44.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.34.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.25.12.2  29-May-2008  mrg remove clause #3 from my license where there are no other
copyright holders involved.
 1.25.12.1  29-May-2008  mrg file netbsd32_compat_13.c was added on branch christos-time_t on 2008-05-29 14:51:27 +0000
 1.26.30.1  10-Jun-2019  christos Sync with HEAD
 1.26.28.9  03-Oct-2018  pgoyette Normalize the required lists. Each compat_netbsd32_xx needs the
non-32bit module of the same version _and_ the 32-bit module for
the next higher version.
 1.26.28.8  29-Sep-2018  pgoyette Make sure that the netbsd32_compat_16 code is available to compat_netbsd_13
 1.26.28.7  27-Sep-2018  pgoyette Hook up the arm compat_netbsd32_13 & _16 code
 1.26.28.6  11-Sep-2018  pgoyette Put the ``extern struct emul'' into the netbsd32_netbsd.h header
so it doesn't have to be separately declared in each source file.

Thanks mrg@
 1.26.28.5  11-Sep-2018  pgoyette Also need to declare the emul_netbsd32 !
 1.26.28.4  11-Sep-2018  pgoyette Install the syscalls into the netbsd32 table, not the default/native table.
 1.26.28.3  11-Sep-2018  pgoyette Use netbsd32 syscall names in the establish/disestablish tables
 1.26.28.2  11-Sep-2018  pgoyette Regen syscall files and fix includes for syscallvar.h
 1.26.28.1  10-Sep-2018  pgoyette More compat_netbsd32_xx modules
 1.27.12.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed