aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/linux/linux_sysvec.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: ABI dependent MINSIGSTKSZ.Marcel Moolenaar2001-02-221-1/+2
| | | | | | | | | | | | Maintain forward compatibility on the -stable branch by not doing an MFC of the machine dependent MINSIGSTKSZ. This guarantees that binaries compiled on systems that include this MFC will run on older systems. Reviewed by: gallatin Notes: svn path=/stable/4/; revision=72848
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-11-041-0/+267
| | | | Notes: svn path=/stable/4/; revision=68301
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-131-511/+0
| | | | Notes: svn path=/stable/4/; revision=57955
* Changed the type used to represent the user stack pointer from `long *'Bruce Evans1999-12-271-6/+6
| | | | | | | | | | | to `register_t *'. This fixes bugs like misplacement of argc and argv on the user stack on i386's with 64-bit longs. We still use longs to represent "words" like argc and argv, and assume that they are on the stack (and that there is stack). The suword() and fuword() families should also use register_t. Notes: svn path=/head/; revision=55141
* Implement pluggable ioctl handlers.Marcel Moolenaar1999-12-041-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Other modules can register and unregister ioctl handlers to extend the ioctls known by the Linuxulator. A recent application is the vmware port. The Linuxulator itself uses the new interface to register its handlers as well. Handlers for the following types of ioctls have been defined: cdrom console (=keyboard and VT handling) socket sound termio All ioctl related defines and declarations have been moved to a new file (linux_ioctl.h), except for the pluggable ioctl handler interface definition. While there, cleanup linux.h some more. linux.h and linux_ioctl.[ch] have been made to conform to style(9) as much as possible. Inspired and reviewed by: Vladimir N. Silyaev Notes: svn path=/head/; revision=54122
* Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for thePoul-Henning Kamp1999-10-301-1/+2
| | | | | | | | | | | | "rw" argument, rather than hijacking B_{READ|WRITE}. Fix two bugs (physio & cam) resulting by the confusion caused by this. Submitted by: Tor.Egge@fast.no Reviewed by: alc, ken (partly) Notes: svn path=/head/; revision=52644
* useracc() the prequel:Poul-Henning Kamp1999-10-291-1/+0
| | | | | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument. Notes: svn path=/head/; revision=52635
* Add a per-signal flag to mark handlers registered with osigaction, so weLuoqi Chen1999-10-111-11/+9
| | | | | | | | | | | | | | | | | | can provide the correct context to each signal handler. Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK as we did before the linuxthreads support merge (submitted by bde). Move ps_sigstk from to p_sigacts to the main proc structure since signal stack should not be shared among threads. Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag. Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag. Reviewed by: marcel, jdp, bde Notes: svn path=/head/; revision=52140
* sigset_t change (part 4 of 5)Marcel Moolenaar1999-09-291-46/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- The compatibility code and/or emulators have been updated: iBCS2 now mostly uses the older syscalls. SVR4 now properly handles all signals. This has been achieved by using the new sigset_t throughout the emulator. The Linuxulator has been severely updated. Internally the new Linux sigset_t is made the default. These are then mapped to and from the new FreeBSD sigset_t. Also, rt_sigsuspend has been implemented in the Linuxulator. Implementing this syscall basicly caused all this sigset_t changing in the first place and the syscall has been used throughout the change as a means for testing. It basicly is too much work to undo the implementation so that it can later be added again. A special note on the use of sv_sigtbl and sv_sigsize in struct sysentvec: Every signal larger than sv_sigsize is not translated and is passed on to the signal handler unmodified. Signals in the range 1 upto and including sv_sigsize are translated. The rationale is that only the system defined signals need to be translated. The emulators also have been updated so that the translation tables are only indexed for valid (system defined) signals. This change also fixes the translation bug already in the SVR4 emulator. Notes: svn path=/head/; revision=51793
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* 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
* Enable vmspace sharing on SMP. Major changes are,Luoqi Chen1999-04-281-4/+6
| | | | | | | | | | | | | | | | | | | | - %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
* 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-191-1/+22
| | | | | | | | | | | | | | | 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
* *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-051-4/+4
| | | | | | | | 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 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
* 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
* 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
* Unbotch whitespace and change switch with two cases to if.Eivind Eklund1998-05-071-12/+9
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=35820
* Translate T_PROTFLT to SIGSEGV instead of SIGBUS when running underEivind Eklund1998-04-281-1/+26
| | | | | | | | | | | | Linux emulation. This make Allegro Common Lisp 4.3 work under FreeBSD! Submitted by: Fred Gilham <gilham@csl.sri.com> Commented on by: bde, dg, msmith, tg Hoping he got everything right: eivind Notes: svn path=/head/; revision=35496
* Added EIDRM & ENOMSG to errno translation table.Søren Schmidt1998-04-131-2/+2
| | | | Notes: svn path=/head/; revision=35178
* Staticized.Bruce Evans1998-02-131-2/+2
| | | | Notes: svn path=/head/; revision=33313
* De-staticize enough to make all the LKMs work again. Add comments whereEivind Eklund1998-02-111-2/+2
| | | | | | | deemed relevant. Notes: svn path=/head/; revision=33233
* Staticize.Eivind Eklund1998-02-091-10/+16
| | | | Notes: svn path=/head/; revision=33181
* Back out DIAGNOSTIC changes.Eivind Eklund1998-02-061-3/+1
| | | | Notes: svn path=/head/; revision=33134
* Turn DIAGNOSTIC into a new-style option.Eivind Eklund1998-02-041-1/+3
| | | | Notes: svn path=/head/; revision=33108
* Make COMPAT_43 and COMPAT_SUNOS new-style options.Eivind Eklund1997-12-161-2/+6
| | | | Notes: svn path=/head/; revision=31778
* Move the "retval" (3rd) parameter from all syscall functions and putPoul-Henning Kamp1997-11-061-3/+2
| | | | | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled. Notes: svn path=/head/; revision=30994
* Removed unused #includes (<machine/cpu.h> now gives more pollution).Bruce Evans1997-09-011-2/+1
| | | | Notes: svn path=/head/; revision=28988
* Fixed misplaced declaration.Bruce Evans1997-08-251-2/+3
| | | | Notes: svn path=/head/; revision=28763
* Revert my previous commit about using CS_SECURE macro.Philippe Charnier1997-08-211-1/+2
| | | | | | | Requested by: Bruce. Notes: svn path=/head/; revision=28496
* Use CS_SECURE macro.Philippe Charnier1997-08-181-2/+1
| | | | | | | Reviewed by: John Dyson Notes: svn path=/head/; revision=28359
* Removed unused #includes.Bruce Evans1997-07-201-13/+1
| | | | Notes: svn path=/head/; revision=27557
* md_regs is a struct trapframe * now, not int []Peter Wemm1997-05-071-41/+41
| | | | Notes: svn path=/head/; revision=25553
* Removed potentially harmful garbage <vm/lock.h> and fixed bogusBruce Evans1997-04-011-2/+2
| | | | | | | | | use of it. It was actually harmless because the use was null due to fortuitous include orders and identical (wrong) idempotency macros. Notes: svn path=/head/; revision=24478
* Fix the warning when compiling the SYSINIT hook due to function types.Peter Wemm1997-03-291-2/+13
| | | | Notes: svn path=/head/; revision=24370
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Prepare kernel to take advantage of "branded" ELF binaries.Søren Schmidt1996-10-161-5/+6
| | | | Notes: svn path=/head/; revision=18959