summaryrefslogtreecommitdiffstats
path: root/sys/alpha
Commit message (Collapse)AuthorAgeFilesLines
* Allow kernel accesses to a small region of the user stack which is useddfr1999-12-111-4/+21
| | | | | | | | by the Linux emulator (and other emulators) for syscall argument translation. The x86 port currently seems to allow unrestricted kernel accesses to user memory. Reviewed by: alc, gallatin
* Move source files common to all platforms from <arch>/conf/files.<arch>archie1999-12-091-15/+0
| | | | | to conf/files. If/when these files are optimized for each platform, they can be moved back.
* Move libkern/arc4random.c into conf/files. I was planning on doing andan1999-12-091-1/+0
| | | | optimized alpha version, but I'll leave that alone for the time being.
* [ repository copy of sys/pci/pci_ioctl.h to sys/sys/pciio.h happened in theken1999-12-086-6/+0
| | | | | | | | | | | | | | | | | background ] Rename sys/pci/pci_ioctl.h to sys/sys/pciio.h to make it easier for userland programs to use this interface. Reformat the file, and add a BSD-style copyright to it. Add a new man page for pci(4). The PCIOCGETCONF, PCIOCREAD, and PCIOCWRITE ioctls are documented, but the PCIOCATTACHED ioctl is not documented because it is not implemented. Change includes of <pci/pci_ioctl.h> to <sys/pciio.h> or remove them altogether. In many cases, pci_ioctl.h was unused. Reviewed by: steve
* Make this compile again. (missing #include for RFPROC)peter1999-12-061-0/+1
|
* User ldt sharing.luoqi1999-12-061-1/+5
|
* Add the if_dc driver and remove all of the al, ax, dm, pn and mx driverswpaul1999-12-042-10/+2
| | | | | | | | which it replaces. The new driver supports all of the chips supported by the ones it replaces, as well as many DEC/Intel 21143 10/100 cards. This also completes my quest to convert things to miibus and add Alpha support.
* Implement pluggable ioctl handlers.marcel1999-12-043-656/+738
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-0317-20/+38
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* Set RB_VERBOSE into boothowto (provide proper layering from boot loadermjacob1999-12-031-1/+3
| | | | | | (eventually) settings to kernel settings). Prototype read_random to quiesce a warning.
* A port of NetBSD's AlphaServer 1000 and 1000A support. Thanks to Cristiangallatin1999-12-016-2/+419
| | | | | | | | | | Angelini for allowing me to use his AS1000 to do the port. Note that this is untested on AlphaServer 1000A hardware. Reviewed by: dfr Tested by: Cristian Angelini <chr.ang@biella.alpcom.it> Obtained From: NetBSD
* dummy version of read_random() until the real random driver is ported.dima1999-11-301-0/+9
|
* Add arc4random.c.dima1999-11-301-0/+1
| | | | Please note that kernel is still broken on alpha.
* Implement linux_sigaltstack.marcel1999-11-302-1/+8
|
* Implement sigaltstack.marcel1999-11-301-1/+2
|
* add linuxulator wrapper for SNDCTL_DSP_GETODELAYalfred1999-11-291-0/+1
|
* inline spl functions.gallatin1999-11-292-71/+62
| | | | | | | | In combination with Doug's recent alpha_cpu.h, this reduces the cost of ipl raising/lowering significantly. This is most pronounced when doing file reads. Reviewed by: dfr
* Implement inline assembler wrappers for PALcode calls and for alphadfr1999-11-291-35/+268
| | | | | | | specific instructions such as rpcc and mb. This should provide some performance improvements and will allow me to delete the file pal.s. To allow people time to update their loadable modules, I will leave pal.s alone for now.
* Sort PCI SCSI controlers.obrien1999-11-282-8/+8
|
* /sys adjustments to add the `sym' controler driver.obrien1999-11-282-0/+2
| | | | | This is commented out in GENERIC as you cannot mix `sym' with `ncr' right now. Note that LINT is no more broken by this commit.
* Implement linux_ustat.marcel1999-11-271-1/+0
| | | | Reviewed by: bde
* Change prototype of linux_ustat.marcel1999-11-271-1/+2
|
* Implement fdatasync in terms of fsync. The regeneration of proto.h,marcel1999-11-261-1/+0
| | | | | syscall.h and sysent.h was probably forgotten after the last change syscalls.master.
* Add pcm entries for the alpha too, since they were taken out ofpeter1999-11-221-0/+6
| | | | | | conf/files and moved to i386/conf/files.i386 Forgotten by: tanimura
* Update the Alpha makefile to be more in line with the x86 version. Itpeter1999-11-221-68/+75
| | | | | was getting quite dated. Attempt to minimize diffs between the two so it's not as painful to do this next time.
* Use %ll instead of %q as gcc moans bitterly about it.peter1999-11-221-1/+1
|
* Zap some latent problems hidden by differences between KERNEL and _KERNEL.peter1999-11-226-37/+4
| | | | The KAME code intruduces _KERNEL, which exposes some of them.
* Add MOUSE_MSC_MAXBUTTON and MOUSE_IF_USB.n_hibma1999-11-221-0/+2
|
* Use LIST_FOREACH to traverse the allproc list.phk1999-11-191-4/+3
| | | | Submitted by: Jake Burkholder jake@checker.org
* Properly attribute interrupt time on alpha. Previously, interrupt timegallatin1999-11-193-5/+6
| | | | | | | | | | was likely to be counted as idle time. Note that we are counting time spent in software interrupt handlers as interrupt time, so this invalidates the i386 meaning of intr_nesting_level. Reviewed by: dfr, bde Tested by: anderson@cs.duke.edu
* Move Alpha conflicting entries (98,99) to 135,136. Renumber the zscpeter1999-11-181-1/+1
| | | | CDEV_MAJOR entry to match.. Is "ipr" in the tree? I can't find it.
* Typon_hibma1999-11-161-1/+1
|
* Mchines whose interrupts are not routed through the ISA pic were stillgallatin1999-11-161-3/+11
| | | | | | | | | | | | | | registering their interrupts with rman as though they were going through the ISA pic. This prevents a conflict between isa & pci for irqs on such machines. Also hookup the chipset struct before calling platform.pci_intr_init(). This allows me to call inw/outw down in the platform code. Add interrupt printfs to match the CIA chipset. Reviewed by: dfr Tested by: wilko
* Add the ata devices to the GENERIC kernel. Hopefully, this should allowdfr1999-11-152-10/+10
| | | | | it to install from ATA cds and to ATA disks. I'll check after my next release builds.
* Re-organise the code which manages the owner of the FP state (fpcurproc).dfr1999-11-107-78/+164
| | | | | | | | | | | | | | | The old code was spread out through the machdep code and was sloppy about enabling and disabling the FEN bit (which controls access to the FP register set). This caused a DIAGNOSTIC warning "DANGER WILL ROBINSON: FEN SET IN cpu_fork!" sometimes when operating under high loads and could conceivably lead to processes getting incorrect FP results. The new code is much more strict about the FEN bit and makes sure that *only* fpcurproc ever has it enabled. This also allows us to remove a section of code from the exception_return path which might improve performance marginally. Reviewed by: gallatin
* Drop ipl to zero before calling ast(). Make sure that this only happensdfr1999-11-091-0/+2
| | | | | | | if we are really going to call ast() to avoid unexpected interrupt recursion. Reviewed by: bde, gallatin
* Fix a warning.dfr1999-11-091-1/+1
|
* Passing "0" or "FALSE" as the fourth argument to vm_fault is wrong. Italc1999-11-091-2/+3
| | | | should be "VM_FAULT_NORMAL".
* - Added the following options; they have existed in sysconsyokota1999-11-081-0/+4
| | | | | | | | | | | for sometime, but haven't been registered here. SC_NORM_ATTR SC_NORM_REV_ATTR SC_KERNEL_CONS_ATTR SC_KERNEL_CONS_REV_ATTR PR: kern/13176
* - Added a new kernel configuration option: SC_TWOBUTTON_MOUSE.yokota1999-11-081-0/+1
| | | | | | | The new option will make the right mouse button the `paste' button. Useful for two button mice. Submitted by: morganw@engr.sc.edu (Wes Morgan)
* - Removed SC_VIDEO_DEBUG. It is broken and useless now.yokota1999-11-081-1/+0
|
* Take a shot at using cdevsw_add() to get it working again. This reallypeter1999-11-081-1/+3
| | | | needs to use make_dev().
* Remove the iskmemdev() function. Make it the responsibility of the mem.cphk1999-11-071-17/+5
| | | | drivers to enforce the securelevel checks.
* Remove the devsw magic from DEV_MODULE()phk1999-11-071-1/+11
|
* Options cleanup.eivind1999-11-061-6/+0
| | | | | | | | | * GC unused options * Move options that exist on all architectures to conf/options * Add missing options to LINT * Sort undocumented options list in LINT Reviewed by: green
* Remove an unnecessary alignment check from osigreturn and sigreturn. (Thealc1999-11-041-7/+2
| | | | | | | | | data is copyin()'ed to a properly aligned buffer.) Return EFAULT rather than EINVAL if the sigcontext is inaccessible, as specified by the documentation. Submitted by: bde
* Fix the atomic arithmetic primitives for address where (p&7) >= 4.dfr1999-11-041-24/+24
| | | | Reviewed by: gallatin
* Eliminate two useracc(..., VM_PROT_READ) calls that immediately precedealc1999-11-041-8/+4
| | | | | | copyin() calls. Submitted by: bde
* Add a second direct map window to increase the maximum RAM this platformgallatin1999-11-031-28/+43
| | | | | | | can deal with from 1GB to 2GB. I have no way to test with >1GB because I don't have high enough density memory to get any one box over 1GB. However, I have tested it on xp1000 & ds10 with < 1GB of memory & have verified that it does no harm.
* Cut out some extra dead code that I missed last time around. I thinkmsmith1999-11-021-14/+2
| | | | this will fix the alpha kernel build now (MFS excluded).
OpenPOWER on IntegriCloud