summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* If the local file does not exist, or is a regular file, and we're not tryingdes2001-09-081-27/+71
| | | | | | | | | | | | | to resume a transfer, download the requested document into a temporary file which we later rename. This avoids leaving half-completed files around in case of a crash (it'll still leave a half-completed file, but with a hope- fully non-conflicting name), and should reduce the need for human inter- vention on ports-building machines. The temporary file name for "foo/bar" is constructed by invoking mkstemps() with the pattern "foo/.fetch.XXXXXX.bar" Requested by: obrien
* 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
* Fixes problem with pkg_add -r when adding multiple pkgs.unfurl2001-09-071-0/+1
| | | | Reviewed by: chris
* 1) If __SAPP stream is not seekable, remove __SAPP flag on first call insteadache2001-09-071-3/+10
| | | | | | | | | of repeating unsuccessful lseek call on each write (original stdio bug). 2) Save errno accross _sseek call in _swrite to not touch it in case write success (original stdio bug). 3) Add _sseek error checking back, but only for __SOPT mode now.
* Driver supports CS4280 rather than CS428x.orion2001-09-072-4/+4
| | | | MFC after: 10 days
* Back out (with prejudice) the last WARNS=2 fix. I cannot understandmarkm2001-09-072-11/+9
| | | | its failure mode, and will revisit it later.
* Add a bit of background to the ACPI release note.bmah2001-09-072-6/+12
|
* Yay!ru2001-09-071-236/+262
| | | | Make this manpage readable and match the reality.
* Move to using .In instead of .Fd #include <> for include mark-up.asmodai2001-09-0727-39/+39
| | | | Inspired by comment from: dd
* reconnect strfmon.c to build listphantom2001-09-071-1/+1
|
* If -s -s is specified, don't show zero multicast routing statistics.ru2001-09-072-66/+48
|
* Fix some mdoc nits caused by my knowledge not being too up-to-date onasmodai2001-09-071-9/+12
| | | | | | mdocNG. Submitted by: dd
* Port to ia64, taking into account the fact that pagesizes may be variable.dfr2001-09-071-0/+11
|
* ACPI CA updated to 20010831.dd2001-09-072-2/+2
|
* Deprecate the -l option in favour of more natural -W.ru2001-09-075-15/+11
| | | | | | | | The compatibility glue is still provided. (This change is not yet reflected in the manpage, nor in usage(). This will be fixed at a later time today, with the general manpage cleanup commit.)
* Don't print stray socket addresses (-A) with the listen queue display (-L).ru2001-09-071-23/+20
| | | | Also, print socket's protocol with the -L.
* 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
|
* Add strfmon.3 to the fray.asmodai2001-09-072-1/+89
| | | | | | | | This is a first cut, but enough to help people interested in using it further than before. More text coming to illustrate use and provide more details. Based on standards' text.
* 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
|
* For now just back out seek error checking in __SAPP case, it cause problemsache2001-09-071-2/+2
| | | | | | with non-seekable streams. Now here is what here was originally, but it is ugly, producing unneded seek syscall on each non-seekable stream write. I'll think about proper solution later.
* 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>
OpenPOWER on IntegriCloud