summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Use protected variables names in prototypes visible to the userland asdd2001-09-091-4/+4
| | | | per style(9) and most other header files in sys/.
* Add a missing newline to an error message.dd2001-09-092-2/+2
| | | | | PR: 30436 Submitted by: Joerg Lehners <Lehners@Informatik.Uni-Oldenburg.DE>
* Add support for the Accton USB320-EC Ethernet adapter.dwhite2001-09-091-0/+1
| | | | MFC after: 14
* Regen.dwhite2001-09-091-1/+4
|
* Add entry for Accton USB320-EC Ethernet adapter.dwhite2001-09-091-0/+3
| | | | MFC after: 14
* Correct intended fix to my foul-up.marcel2001-09-082-2/+2
| | | | linux_uid16.c is in sys/compat/linux not in sys/i386/linux.
* Stole unicode translation table from mount_msdos. Add kernel codesemenu2001-09-086-18/+137
| | | | | | to support this translation. MFC after: 2 weeks
* Catch up with common usage:marcel2001-09-081-0/+3
| | | | | | | | | o Define ELFMAG and SELFMAG as an alternative to test the ELF magic. ELFMAG is the magic; SELFMAG is the size of the magic. Use with strncmp() or memcmp(). o Define SHT_NUM as the number of predefined sections. Note: style(9) deviation for consistency.
* Fix opening particular file's attributes (as described in man page).semenu2001-09-081-9/+14
| | | | | | This is useful for debug purposes. MFC after: 2 weeks
* Reference devvp on ntnode creation and dereference on removal. Previoussemenu2001-09-083-22/+17
| | | | | | | code lead to page faults becouse i_devvp went zero after VOP_RECLAIM, but ntnode was reused (not reclaimed). MFC after: 2 weeks
* Fix errors and warnings when compiling with NTFS_DEBUG > 1semenu2001-09-082-6/+4
| | | | MFC after: 2 weeks
* Add linux_sysctl.c, and linux_uid16.c to the x86 platforms.peter2001-09-083-0/+5
|
* Missing part of dillon's coredump commit. cpu_coredump() was stillpeter2001-09-086-16/+8
| | | | | passing IO_NODELOCKED to vn_rdwr(), this would cause operations on the unlocked core vnode and softupdates nastiness if an a.out binary cored.
* This brings in a Yahoo coredump patch from Paul, with additional mods bydillon2001-09-086-16/+74
| | | | | | | | | | | | | | | | | | | me (addition of vn_rdwr_inchunks). The problem Yahoo is solving is that if you have large process images core dumping, or you have a large number of forked processes all core dumping at the same time, the original coredump code would leave the vnode locked throughout. This can cause the directory vnode to get locked up, which can cause the parent directory vnode to get locked up, and so on all the way to the root node, locking the entire machine up for extremely long periods of time. This patch solves the problem in two ways. First it uses an advisory non-blocking lock to abort multiple processes trying to core to the same file. Second (my contribution) it chunks up the writes and uses bwillwrite() to avoid holding the vnode locked while blocking in the buffer cache. Submitted by: ps Reviewed by: dillon MFC after: 2 weeks
* Round of cleanups and enhancements. These include (in random order):marcel2001-09-0827-2748/+3655
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Introduce private types for use in linux syscalls for two reasons: 1. establish type independence for ease in porting and, 2. provide a visual queue as to which syscalls have proper prototypes to further cleanup the i386/alpha split. Linuxulator types are prefixed by 'l_'. void and char have not been "virtualized". o Provide dummy functions for all syscalls and remove dummy functions or implementations of truely obsolete syscalls. o Sanitize the shm*, sem* and msg* syscalls. o Make a first attempt to implement the linux_sysctl syscall. At this time it only returns one MIB (KERN_VERSION), but most importantly, it tells us when we need to add additional sysctls :-) o Bump the kenel version up to 2.4.2 (this is not the same as the KERN_VERSION MIB, BTW). o Implement new syscalls, of which most are specific to i386. Our syscall table is now up to date with Linux 2.4.2. Some highlights: - Implement the 32-bit uid_t and gid_t bases syscalls. - Implement a couple of 64-bit file size/offset bases syscalls. o Fix or improve numerous syscalls and prototypes. o Reduce style(9) violations while I'm here. Especially indentation inconsistencies within the same file are addressed. Re-indenting did not obfuscate actual changes to the extend that it could not be combined. NOTE: I spend some time testing these changes and found that if there were regressions, they were not caused by these changes AFAICT. It was observed that installing a RH 7.1 runtime environment did make matters worse. Hangs and/or reboots have been observed with and without these changes, so when it failed to make life better in cases it doesn't look like it made it worse.
* o Introduce private types for use in linux syscalls for two reasons:marcel2001-09-081-190/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. establish type independence for ease in porting and, 2. provide a visual queue as to which syscalls have proper prototypes to further cleanup the i386/alpha split. Linuxulator types are prefixed by 'l_'. void and char have not been "virtualized". o Provide dummy functions for all unimplemented syscalls, except for the osf1 syscalls. This can only be done if the osfulator implements at least all syscalls used by the linuxulator. Remove dummy functions for syscalls that are now truely unimplemented. o Set the syscall namespace as follows: Mark a syscall as OSF1 if the Linux kernel has prefixed the syscall with 'osf_' and has provided special implementations for it. Otherwise mark the syscall as LINUX by default. Some of the LINUX syscalls remain marked as BSD or POSIX. o Rename syscalls so they match the names used in the Linux kernel. Also, provide more accurate prototypes. This generally improves cross-referencing and reduces head-scratching. o Fix the (g|s)etresuid syscalls. They mapped to (g|s)etresgid. o Sanitize the the shm*, sem* and msg* syscalls. Their prototypes were dictated by the way these syscalls were used in the i386 code. That has been fixed. NOTE: linux_semctl now passes it's 'arg' parameter by value and not by reference. o Fix prototype of linux_utime. It takes a struct timeval, not a struct utimbuf. o Fix the linux_sysfs syscall. It's index is not 255, but 254. o Implement the following syscalls: linux_sysctl o Add the following new syscalls: (g|s)etresgid linux_pivot_root (dummy) linux_mincore (dummy) linux_pciconfig_iobase (dummy) linux_getdents64
* o Introduce private types for use in linux syscalls for two reasons:marcel2001-09-081-166/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. establish type independence for ease in porting and, 2. provide a visual queue as to which syscalls have proper prototypes to further cleanup the i386/alpha split. Linuxulator types are prefixed by 'l_'. void and char have not been "virtualized". o Remove dummy functions for syscalls that are now truely unimplemented. o Rename syscalls so they match the names used in the Linux kernel. Also, provide more accurate prototypes. This generally improves cross-referencing and reduces head-scratching. o Provide seperate implementations for the 16-bit uid_t and gid_t based syscalls as Linux used to have. The new 32-bit uid_t and gid_t based syscalls now map to their FreeBSD equivalents. o Fix the linux_ipc syscall so that it doesn't force the shm*, sem* and msg* syscalls to have the same syscall. The prototypes for these syscalls now match the those used on Alpha. While here, add the same kludge for MSGRCV as is present in the Linux kernel. o Implement the following syscalls: linux_stat64, linux_lstat64 and linux_fstat64 linux_sysctl o Added syscalls numbered 198 - 221. This include: - the 32-bit uid_t and gid_t bases syscalls - 64-bit file offset/size based syscalls
* Don't call tsleep from AcpiOsStall(), call DELAY() always instead.iwasaki2001-09-081-5/+1
| | | | | Process switching during calling AcpiOsStall() caused fatal trap 12 at sleeping/wakeup on some machines.
* Add missing entry to memory type name table and adjust field widths.dfr2001-09-082-4/+6
|
* Add a command 'memmap' to print out the EFI memory map.dfr2001-09-082-0/+150
|
* Convert the CMedia driver to using a device mutex and INTR_MPSAFE.green2001-09-081-2/+28
|
* Wrap array accesses in macros, which also happen to be lvalues:marcel2001-09-081-1/+1
| | | | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng. Forgotten by: jlemon
* Add options to select between 4k, 8k and 16k page sizes on ia64. Thedfr2001-09-072-0/+19
| | | | default is now 8k.
* Typo in comment.dfr2001-09-071-2/+2
|
* * Track ref/mod information properly when a mapping changes.dfr2001-09-071-4/+36
| | | | * Fix a panic in pmap_remove() for a non-current pmap.
* Remove old setjmp/longjmp stubs.dfr2001-09-072-138/+0
|
* Hook up the native EFI filesystem reader.dfr2001-09-072-2/+4
|
* Set currdev and loaddev variables.dfr2001-09-072-8/+8
|
* Add a libstand filesystem for accessing EFI native filesystems.dfr2001-09-073-3/+349
|
* Reformat.dfr2001-09-072-278/+280
|
* Remove some un-needed code that was accidentally included injulian2001-09-071-15/+0
| | | | | | the 2nd previous KAME patch. Submitted by: SUMIKAWA Munechika <sumikawa@ebina.hitachi.co.jp>
* Patches from KAME to remove usage of Varargs in existingjulian2001-09-0710-66/+24
| | | | | | | IPV4 code. For now they will still have some in the developing stuff (IPv6) Submitted by: Keiichi SHIMA / <keiichi@iij.ad.jp> Obtained from: KAME
* First pass at porting John's "accept" changes tojulian2001-09-072-49/+383
| | | | | | | | | | | | allow an in-kernel webserver (or similar) to accept and handle incoming connections using netgraph without ever leaving the kernel. (allows incoming tunnel requests to be handled totally within the kernel for example) Needs work, but shouldn't break existing functionality. Submitted by: John Polstra <jdp@polstra.com> MFC after: 2 weeks
* Fix another shortcircuit return() statement that I missed.jlemon2001-09-071-1/+1
|
* Fix sense of comparison in space test. Also eliminate a compilejlemon2001-09-071-8/+8
| | | | warning and remove a previously existing off-by-one error.
* Should check debug.acpi.avoid, not .disable.msmith2001-09-071-1/+1
|
* Correct the path for OsdEnvironment.c.green2001-09-071-1/+1
|
* Now that this code is MD, we don't need the i386 ifdefs.msmith2001-09-072-12/+18
|
* Allow the ACPI subsystem to be disabled with a hint.msmith2001-09-071-19/+59
| | | | | | | | | Avoid fully initialising the ACPI namespace if we are attempting to avoid parts of it. This is a workaround for some systems that still crash the interpreter. Implement the ISA_IVAR_LOGICALID for ISA compatibility. Implement stubs for other PnP ID-related ivars.
* Move OsdEnvironment.c into MD code; searching for the ACPI tables is notmsmith2001-09-073-65/+1
| | | | portable.
* Merge our local branch changes with the 20010831 snapshot.msmith2001-09-074-173/+140
|
* This commit was generated by cvs2svn to compensate for changes in r83174,msmith2001-09-07108-2219/+1852
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor-branch import of the Intel ACPI CA 20010831 snapshot.msmith2001-09-07112-2392/+1992
| |
* | Initialise the adapter status to an invalid state, so that the initial checkmsmith2001-09-061-0/+1
| | | | | | | | | | | | | | | | | | of the adapter object will always result in a change event. This fixes the problem where a laptop booted without an AC adapter ran at 100% CPU speed by default. Submitted by: "Christopher N . Harrell" <cnh@netvmg.com>
* | Add a hack to acpi_EvaluateInteger() to handle the case of a methodjhb2001-09-061-1/+37
| | | | | | | | | | | | | | returning a Buffer that contains an Integer rather an an Integer directly. Submitted by: msmith Approved by: msmith
* | Allocate system resource IRQs as shareable; this is the typical case.msmith2001-09-061-1/+1
| |
* | Call sendsig() with the proc lock held and return with it held.jhb2001-09-068-27/+16
| |
* | Don't panic when we don't know the exact chip that is being used.imp2001-09-061-4/+44
| | | | | | | | | | | | | | | | Also, add support for the following parts: O2micro 6912/6972, 6922, 6933 Cirrus Logic PD6834 TI PCI-1260 and PCI-1421 MFC: Soon
* | Surf the net again and find more device IDs:imp2001-09-061-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cirrus Logic PD6834 O2micro OZ6836 O2micro OZ6912/6972 O2micro OZ6922 O2micro OZ6933 TI1260 Note: These two aren't on TI's site, but are in TI1260B http://www.yourvote.com/pci/vendors.txt Plus comments for other chips found in Windows INF files, and also referenced in various spots on the net: * Intel 82092AA 0x12218086 16bit * smc/Databook DB87144 0x310610b3 * SMC/databook smc34c90 0xb10610b3 * Omega/Trident 82c094 0x00940123? * Omega/Trident 82c194 0x01941023 * Omega/Trident 82c722 0x07221023? * Opti 82c814 0xc8141045 * Opti 82c824 0xc8241045 * NEC uPD66369 0x003e1033
* | minor commentaryimp2001-09-061-0/+10
| |
OpenPOWER on IntegriCloud