aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/linux
Commit message (Collapse)AuthorAgeFilesLines
* Implementation of the modify_ldt syscall. Use the sysarch() interface to doMarcel Moolenaar1999-09-021-1/+0
| | | | | | | | | | the actual work. When USER_LDT is not defined for a kernel, sysarch returns EOPNOTSUPP. Display a message in that case and return ENOSYS to userland. Reviewed by: luoqi Notes: svn path=/head/; revision=50818
* Implement the OSS_GETVERSION ioctl. The version returned can be changed throughMarcel Moolenaar1999-08-281-0/+2
| | | | | | | | | | the sysctl variable `compat.linux.oss_version'. PR: 12917 Originator: Dean Lombardo <dlombardo@excite.com> Notes: svn path=/head/; revision=50500
* $Id$ -> $FreeBSD$Peter Wemm1999-08-287-7/+7
| | | | Notes: svn path=/head/; revision=50477
* Fix lingo: 'is not implemented or obsoleted' is not the same as 'is obsoletedMarcel Moolenaar1999-08-251-2/+2
| | | | | | | or not implemented'. Notes: svn path=/head/; revision=50348
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysMarcel Moolenaar1999-08-252-5/+43
| | | | | | | | | | | | | | | know if and when an unimplemented or obsoleted syscall is being used. Make the message more end-user friendly. And as long as we're here, rename some unimplemeted syscalls (linux_phys -> linux_umount2, linux_vm86 -> linux_vm86old, linux_new_vm86 -> linux_vm86). Change prototype for linux_newuname from `struct linux_newuname_t *' into `struct linux_new_utsname *'. This change is reflected in linux.h and linux_misc.c. Notes: svn path=/head/; revision=50345
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysMarcel Moolenaar1999-08-251-86/+87
| | | | | | | | | | | | | | | | | know if and when an unimplemented or obsoleted syscall is being used. Make the message more end-user friendly. And as long as we're here, rename some unimplemeted syscalls (linux_phys -> linux_umount2, linux_vm86 -> linux_vm86old, linux_new_vm86 -> linux_vm86). Change prototype for linux_newuname from `struct linux_newuname_t *' into `struct linux_new_utsname *'. This change is reflected in linux.h and linux_misc.c. Lastly, make line-continuation and indentation more uniform. Notes: svn path=/head/; revision=50344
* Implement vfork() syscall.Marcel Moolenaar1999-08-161-2/+2
| | | | Notes: svn path=/head/; revision=49889
* Major rewrite.Marcel Moolenaar1999-08-151-235/+46
| | | | | | | | | | | | | | | | | | | | The first reason for this rewrite is KNF conformance. The second reason is to avoid redundancy. Each function printed the same string, with only the syscall name being different. The actual printing is now performed by a single function, which gets the syscall name as an argument. The third reason is that of convenience. It's now very easy to add a new dummy implementation. Just add ``DUMMY(foo);'' to the file. It's also a lot easier now to see if a syscall has a dummy implementation or not. The dummies are ordered on syscall number. Please maintain this when adding new dummies (there're 32 candidates at the time of writing :-) Reviewed by: bde Notes: svn path=/head/; revision=49850
* Provide wrappers for sched_{s|g}etscheduler. We need to convert the policyMarcel Moolenaar1999-08-151-1/+6
| | | | | | | | | | argument. PR: 12006 Originator: Jean-Claude MICHOT <jcmichot@teaser.fr> Notes: svn path=/head/; revision=49849
* Provide wrappers for sched_{s|g}etscheduler. We need to convert the policyMarcel Moolenaar1999-08-151-3/+4
| | | | | | | | | argument. PR: 12006 Notes: svn path=/head/; revision=49848
* Extend the number of syscalls to include those present in Linux 2.2.10. TheseMarcel Moolenaar1999-08-141-1/+9
| | | | | | | | are syscalls 183 to 190. Also implement syscall 183: linux_getcwd. This is needed to support a RH 6.0 environment. Notes: svn path=/head/; revision=49787
* Implementation of linux_rt_sigaction and linux_rt_sigprocmask syscalls. BothMarcel Moolenaar1999-08-141-1/+15
| | | | | | | | | | | | | functions use the new sigset_t and sigaction_t which allows support for more than 32 signals. Only the lower 32 signals are supported for now. linux_rt_sigaction, linux_sigaction and linux_signal use linux_do_sigaction to do the actual work. That way unnecessary redundancy is avoided. The same has been done for linux_rt_sigprocmask and linux_sigprocmask. They call linux_do_sigprocmask to do the actual work. Notes: svn path=/head/; revision=49786
* Implementation of linux_rt_sigaction and linux_rt_sigprocmask syscalls. TheseMarcel Moolenaar1999-08-141-3/+9
| | | | | | | syscalls are needed to support a RH 6.0 environment. Notes: svn path=/head/; revision=49784
* Implementation of the CDROMSUBCHNL ioctl.Marcel Moolenaar1999-08-131-1/+4
| | | | Notes: svn path=/head/; revision=49688
* Use a wrapper for the link syscall that does name translations.Marcel Moolenaar1999-08-121-2/+2
| | | | | | | | PR: 12749 Submitted by: Boris Nikolaus <boris@cs.tu-berlin.de> Notes: svn path=/head/; revision=49662
* Do not map {s|g}etrlimit onto FreeBSD syscalls. The arguments don't match.Marcel Moolenaar1999-08-111-1/+15
| | | | | | | | | | | The linux syscalls translate the arguments first before invoking the FreeBSD native syscalls. PR: kern/9591 Originator: John Plevyak <jplevyak@inktomi.com> Notes: svn path=/head/; revision=49626
* Do not map {s|g}etrlimit onto the FreeBSD syscalls. The arguments do notMarcel Moolenaar1999-08-111-5/+5
| | | | | | | | | | match. PR: kern/9591 Originator: John Plevyak <jplevyak@inktomi.com> Notes: svn path=/head/; revision=49624
* Implementation of TCXONC.Marcel Moolenaar1999-07-171-2/+6
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=48851
* Implement VT_RELDISP ioctlMarcel Moolenaar1999-07-081-1/+2
| | | | | | | Submitted by: Kazutaka Yokota <yokota@FreeBSD.org> Notes: svn path=/head/; revision=48685
* Rename struct members sa_siginfo. POSIX reserves identifiers startingMartin Cracauer1999-07-061-5/+5
| | | | | | | | | | with sa_ when <signal.h> is included. They would conflict with the upcoming SA_SIGINFO implementation. Reviewed by: BDE Notes: svn path=/head/; revision=48620
* Tweak include ordering so sys/systm.h is before sys/buf.h to keep buf.h'sPeter Wemm1999-06-281-2/+2
| | | | | | | inlines happy. Notes: svn path=/head/; revision=48303
* - Handle mixer read ioctls correctly. They have the same group, number andLuoqi Chen1999-04-291-2/+29
| | | | | | | | argument size as their write counterparts and were handled as write ioctls. - Emulate some cdrom ioctls. Notes: svn path=/head/; revision=46163
* Enable vmspace sharing on SMP. Major changes are,Luoqi Chen1999-04-282-6/+7
| | | | | | | | | | | | | | | | | | | | - %fs register is added to trapframe and saved/restored upon kernel entry/exit. - Per-cpu pages are no longer mapped at the same virtual address. - Each cpu now has a separate gdt selector table. A new segment selector is added to point to per-cpu pages, per-cpu global variables are now accessed through this new selector (%fs). The selectors in gdt table are rearranged for cache line optimization. - fask_vfork is now on as default for both UP and SMP. - Some aio code cleanup. Reviewed by: Alan Cox <alc@cs.rice.edu> John Dyson <dyson@iquest.net> Julian Elischer <julian@whistel.com> Bruce Evans <bde@zeta.org.au> David Greenman <dg@root.com> Notes: svn path=/head/; revision=46129
* unifdef -DVM_STACK - it's been on for a while for x86 and was checkedPeter Wemm1999-04-191-5/+1
| | | | | | | and appeared to be working for the Alpha some time ago. Notes: svn path=/head/; revision=45821
* Added call to elf_brand_inuse() to prevent you from cutting your ownMark Newton1999-02-041-3/+11
| | | | | | | legs out from under you. Notes: svn path=/head/; revision=43620
* Minor cleanup; no more references to LKM's.Peter Wemm1999-01-171-4/+1
| | | | Notes: svn path=/head/; revision=42766
* Add (but don't activate) code for a special VM option to makeJulian Elischer1999-01-061-20/+3
| | | | | | | | | | | | | | | | downward growing stacks more general. Add (but don't activate) code to use the new stack facility when running threads, (specifically the linux threads support). This allows people to use both linux compiled linuxthreads, and also the native FreeBSD linux-threads port. The code is conditional on VM_STACK. Not using this will produce the old heavily tested system. Submitted by: Richard Seaman <dick@tar.com> Notes: svn path=/head/; revision=42360
* Commit patch inSøren Schmidt1998-12-301-1/+3
| | | | | | | | PR: 9232 Submitted by: marcel@scc.nl <Marcel Moolenaar> Notes: svn path=/head/; revision=42186
* Commit #1 of:Søren Schmidt1998-12-301-3/+5
| | | | | | | PR: 9235 Notes: svn path=/head/; revision=42184
* Fix NOIMPL -> NOPROTO as per bruce.Søren Schmidt1998-12-221-2/+2
| | | | Notes: svn path=/head/; revision=41997
* Syscall 168 (poll) is not implemented in the Linux emulator. ThisSøren Schmidt1998-12-211-2/+3
| | | | | | | | | | syscall is used by Oracle. PR: 9154 Submitted by: Marcel Moolenaar <marcel@scc.nl> Notes: svn path=/head/; revision=41987
* Make it compile again.Søren Schmidt1998-12-191-5/+5
| | | | | | | | | I have no idea if the new stuff works though. Broken by: Julian Notes: svn path=/head/; revision=41942
* Reviewed by: Luoqi Chen, Jordan HubbardJulian Elischer1998-12-194-12/+27
| | | | | | | | | | | | | | | Submitted by: "Richard Seaman, Jr." <lists@tar.com> Obtained from: linux :-) Code to allow Linux Threads to run under FreeBSD. By default not enabled This code is dependent on the conditional COMPAT_LINUX_THREADS (suggested by Garret) This is not yet a 'real' option but will be within some number of hours. Notes: svn path=/head/; revision=41931
* Removed the cast to a pointer in the definition of PS_STRINGS andBruce Evans1998-12-161-2/+2
| | | | | | | | | | adjusted related casts to match (only in the kernel in this commit). The pointer was only wanted in one place in kern_exec.c. Applications should use the kern.ps_strings sysctl instead of PS_STRINGS, so they shouldn't notice this change. Notes: svn path=/head/; revision=41871
* Added 3 new errno values, requred by various standards: EOVERFLOW,Dmitrij Tejblum1998-12-141-5/+5
| | | | | | | | | | ECANCELED, EILSEQ. Fixed ibcs2 and especially linux EIDRM and ENOMSG errno mapping. Reviewed by: Dan Nelson <dnelson@emsphone.com> Notes: svn path=/head/; revision=41796
* Finished updating module event handlers to be compatible withBruce Evans1998-11-151-8/+2
| | | | | | | modeventhand_t. Notes: svn path=/head/; revision=41173
* MF22: Bring in some linux sound ioctl support which I committed to 2.2Jordan K. Hubbard1998-11-121-1/+16
| | | | | | | | | | for PR 7792 but did not bring forward. Submitted by: Avatar Liang <avatar@www.mmlab.cse.yzu.edu.tw> PR: 8656 Notes: svn path=/head/; revision=41105
* *gulp*. Jordan specifically OK'ed this..Peter Wemm1998-10-161-17/+36
| | | | | | | | | | | This is the bulk of the support for doing kld modules. Two linker_sets were replaced by SYSINIT()'s. VFS's and exec handlers are self registered. kld is now a superset of lkm. I have converted most of them, they will follow as a seperate commit as samples. This all still works as a static a.out kernel using LKM's. Notes: svn path=/head/; revision=40435
* Unregister the glibc2 brand at module unload time.Alexander Langer1998-10-111-5/+19
| | | | | | | | | | | | Change the ELF registration/unregistration scheme to be less error prone. Adding a new brand requires a single addition to linux_brandlist instead of modifying linux_load(), linux_unload(), and linux_elf_init(). Approved by: jkh Reviewed by: msmith Notes: svn path=/head/; revision=40237
* Make async I/O on a socket work.John Fieber1998-10-052-11/+10
| | | | | | | | Although the current Sybase license does not permit running under emulation, FreeBSD 3.0 is now "Sybase Ready" should the license change. Notes: svn path=/head/; revision=39978
* Add several missing ioctl handlers. One needed by Sybase, the othersJohn Fieber1998-09-301-1/+8
| | | | | | | found while looking for the one. Notes: svn path=/head/; revision=39799
* Add support for glibc consumers using the new ld-linux.so.2 linker.Mike Smith1998-09-171-2/+10
| | | | | | | I can't say this was the most inspired fix, but it matches the design OK. Notes: svn path=/head/; revision=39437
* Add provisions for variant core dump file formats, depending on theJohn Polstra1998-09-141-3/+6
| | | | | | | | | | | | | | object format of the executable being dumped. This is the first step toward producing ELF core dumps in the proper format. I will commit the code to generate the ELF core dumps Real Soon Now. In the meantime, ELF executables won't dump core at all. That is probably no less useful than dumping a.out-style core dumps as they have done until now. Submitted by: Alex <garbanzo@hooked.net> (with very minor changes by me) Notes: svn path=/head/; revision=39154
* Initial support for using linux X servers under emulation - to use anJordan K. Hubbard1998-08-311-1/+15
| | | | | | | | | | | | | | | | | | | XFree86 server, users need to create the following links in their /compat/linux/dev directory (assuming kernel configured with 4 VTs). lrwxrwxrwx 1 root wheel 7 Aug 30 22:59 tty0 -> console lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty1 -> ttyv0 lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty2 -> ttyv1 lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty3 -> ttyv2 lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty4 -> ttyv3 VT switching is still not yet supported. Attempting to switch VT currently will cause Xserver bus error. Submitted by: Chain Lee <chain@110.net> Notes: svn path=/head/; revision=38672
* Use [u]intptr_t instead of [u_]long for casts between pointers andBruce Evans1998-08-161-4/+4
| | | | | | | integers. Don't forget to cast to (void *) as well. Notes: svn path=/head/; revision=38354
* Fixed print format errors.Bruce Evans1998-07-291-4/+5
| | | | Notes: svn path=/head/; revision=37950
* Fixed printf format errors.Bruce Evans1998-07-291-9/+11
| | | | | | | | Use offsetof() instead of null pointer hacks. Use a home made offsetof() because including <stddef.h> is not permitted in LKMs. Notes: svn path=/head/; revision=37949
* Quick and dirty support for Linux's mremap. Not used by anythingJordan K. Hubbard1998-07-101-2/+3
| | | | | | | | | but quake2 AFAIK. Submitted by: Luoqi Chen <luoqi@watermarkgroup.com> Notes: svn path=/head/; revision=37548
* Include "opt_compat.h" explicitly instead of depending onBruce Evans1998-06-091-2/+2
| | | | | | | | | | makesyscalls.sh generating it as pollution. Don't attempt to separate the includes by newlines. makesyscalls.sh just ignores newlines. Notes: svn path=/head/; revision=36781
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-12/+12
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735