summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch
AgeCommit message (Collapse)Author
2003-12-08remove error(1) comment.christos
2003-12-04Dynamic sysctl.atatat
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.
2003-10-10Adapt to SIGINFO changes.matt
2003-10-10Adapt ARM Linux compat code to deal with SIGINFO.matt
2003-10-10Adapt to SIGINFO changes.matt
2003-10-08Use ksi_signo accessor macro.thorpej
2003-10-06Catch up with chuck's stack changes. Don't map the linux stuff executablechristos
and avoid mapping segments that have 0 size.
2003-09-28fix fmovem argument referencecl
2003-09-28catch up with const sigset_tcl
2003-09-26Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Testsimonb
compiled on most architectures.
2003-09-25constify sendsig/trapsignalchristos
2003-09-25Add siginfo support for PowerPC.matt
2003-09-22SA_SIGINFO support for m68k (emul linux)cl
2003-09-21make compile after last change (!)jdolecek
2003-09-21Now that we have siginfo, use it, instead of pretending to have one.christos
2003-09-06SA_SIGINFO changeschristos
2003-08-24add support for non-executable mappings (where the hardware allows this)chs
and make the stack and heap non-executable by default. the changes fall into two basic catagories: - pmap and trap-handler changes. these are all MD: = alpha: we already track per-page execute permission with the (software) PG_EXEC bit, so just have the trap handler pay attention to it. = i386: use a new GDT segment for %cs for processes that have no executable mappings above a certain threshold (currently the bottom of the stack). track per-page execute permission with the last unused PTE bit. = powerpc/ibm4xx: just use the hardware exec bit. = powerpc/oea: we already track per-page exec bits, but the hardware only implements non-exec mappings at the segment level. so track the number of executable mappings in each segment and turn on the no-exec segment bit iff the count is 0. adjust the trap handler to deal. = sparc (sun4m): fix our use of the hardware protection bits. fix the trap handler to recognize text faults. = sparc64: split the existing unified TSB into data and instruction TSBs, and only load TTEs into the appropriate TSB(s) for the permissions. fix the trap handler to check for execute permission. = not yet implemented: amd64, hppa, sh5 - changes in all the emulations that put a signal trampoline on the stack. instead, we now put the trampoline into a uvm_aobj and map that into the process separately. originally from openbsd, adapted for netbsd by me.
2003-08-21Hide prototype of linux_exec_setup_stack() inside #ifdef _KERNEL sodsl
that sbin/sysctl will compile.
2003-08-21Fix syscall_vm86 argument:hannken
struct trapframe -> struct trapframe *
2003-08-14remove the args from the macro.christos
2003-08-10regen - added wrapper for Linux ftruncate64()jdolecek
2003-08-10add Linux compat arg wrapper for ftruncate64(), and change linux compatjdolecek
truncate64() wrapper to translate args structure NetBSD truncate() and ftrucate() have hidden 'pad' argument, so we have to do the argument translation Problem found and patch supplied in PR kern/22360 by Ales Krenek This is the last of syscalls with hidden 'pad' arg we didn't have wrapper for; all the others (lseek, mmap, pwrite, pread) already had wrapper before.
2003-08-09Explain a diagnostic message a bit better, and make it a debug only message.christos
2003-08-08- GC all the setup_stack functionschristos
- add one for linux/i386
2003-08-02use copyout() instead of subyte()jdolecek
2003-08-02use copyin()/copyout() instead of fubyte()/subyte()jdolecek
also nuke uvm_useracc() check, copyin()/copyout() do this atomically XXX only compile-tested
2003-08-02replace fuword() with copyin(), and suword() with copyout()jdolecek
2003-07-26add LINUX_SO_PEERNAME, LINUX_SO_TIMESTAMP where it has been missingjdolecek
fix value for LINUX_SO_DETACH_FILTER on couple places (unused anyway) g/c LINUX_SCM_TIMESTAMP definition for some archs, it will be defined in generic linux_socket.h
2003-07-03Regen.christos
2003-07-03Implement linux_rt_sigreturn for real. Add a hack for more plausible siginfo.christos
The java segv handler still segv's again inside the signal handler, but our sample test program now works [gets the proper ucontext].
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-29Adapt to ktrace/lwp changes.thorpej
2003-06-29Regen: adapt to linux mmap2 changes.thorpej
2003-06-29Adapt to linux mmap2 changes.thorpej
2003-06-29Fix 'struct lwp *' lossage.simonb
2003-06-29'struct proc *' -> 'struct lwp *' as required to get GENERIC for macppc builtdarrenr
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
2003-06-28Regenerate after adding include of linux_mmap.h.he
2003-06-28Need to include linux_mmap.h to get size of struct linux_sys_mmap2_args.he
2003-06-23Regen.christos
2003-06-23PR/21937: Todd Vierling: Proper support for mmap2christos
2003-04-01Use PAGE_SIZE rather than NBPG.thorpej
2003-03-21Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.dsl
Avoids a lot of casting and removes the need for some line breaks. Removed a load of (caddr_t) casts from calls to copyin/copyout as well. (approved by christos - he has a plan to remove caddr_t...)
2003-03-01Do the syscall_plain/syscall_fancy dance on ARM. Shaves a fair numberthorpej
of cycles off the syscall overhead. Since all COMPAT_LINUX platforms now support __HAVE_SYSCALL_INTERN, garbage-collect the LINUX_SYSCALL_FUNCTION stuff.
2003-02-27make compat_linux struct file interlock friendly.yamt
2003-01-18Regen for correct RCS ID.thorpej
2003-01-18Regen for correct RCS IDs.thorpej
2003-01-18Regen to get correct RCS IDs.thorpej
2003-01-18Regen to get correct RCS ID.thorpej
2003-01-18Regen: Merge the nathanw_sa branch.thorpej