summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a manual page for the kernel's EVENTHANDLER facility.jkoshy2004-12-032-0/+248
| | | | Reviewed by: ru
* Remove an extra space.harti2004-12-031-1/+1
| | | | Submitted by: ru
* Fix breakage introduced on 64-bit platforms with my last commit. Needharti2004-12-0310-52/+53
| | | | to change to size_t in a couple of other places too.
* Make NAMEI_DIAGNOSTIC compile again and add a stragic vprint()phk2004-12-031-8/+9
|
* Improve vprint() a little bit: break long lines, reduce indent and tellphk2004-12-031-4/+7
| | | | if the VI_LOCK() is held.
* Plug a memory leak.harti2004-12-031-0/+1
|
* Put macro arguments in paranthesis.harti2004-12-032-2/+2
| | | | Submitted by: johan
* Make sizes to be of type size_t and correct function arguments thatharti2004-12-033-32/+32
| | | | should be Byte (as the numerous casts to Byte in the function calls show).
* Add missing vop_bypass (returning EOPNOTSUPP).phk2004-12-031-1/+3
| | | | Tripped up: marks
* ACPI is not on pc98 either.njl2004-12-031-1/+2
| | | | Informed by: nyan
* Style: fix indentation, protect macro with do { } while (0).harti2004-12-032-135/+134
| | | | Checked with: diff on object file.
* Non-x86 platforms cannot use the ACPI includes. This should be fixed butnjl2004-12-031-0/+4
| | | | | | for now, only include the headers for i386, amd64, or ia64. Pointed out by: grehan
* Describe the .SHELL target.harti2004-12-031-1/+109
| | | | Reviewed by: ru
* Change the algorithm that matches the builtin shells from the name keywordharti2004-12-031-32/+16
| | | | | | | | | | | | | | of the .SHELL target. Formerly it used to select the shell with the longest common trailing substring, so that bash would select sh, but pocsh would select csh. Now an exact match is required so that specifying bash without also giving a path and the other keywords will give an error. PR: Submitted by: Reviewed by: ru Approved by: Obtained from: MFC after:
* Enable the relaxed behavior for op regions and other workarounds fornjl2004-12-031-1/+2
| | | | | | | | | non-standard BIOSen. We used to implement this in local patches but now that ACPI-CA has merged/re-implemented most of our fixes, they were no longer needed and we just needed to turn this knob on. Also, remove an unnecessary cast. Tested by: phk
* Add myself to the committers' birthday calendardumbbell2004-12-031-0/+1
| | | | Reviewed by: mux
* Include <sys/signalvar.h> for trapsignal().cognet2004-12-021-0/+1
|
* Clarify the structure element size ordering.dds2004-12-021-1/+1
| | | | Obtained from: OpenBSD style.9 1.38
* Fix import conflicts from tzdata2004g.wollman2004-12-023-7/+22
| | | | Obtained from: ftp://elsie.nci.nih.gov/pub/tzdata2004g.tar.gz
* Make the tests runnable on a read-only src. To do this you must make sureharti2004-12-024-98/+132
| | | | | | | | | | | | that you create one of the object directories make knows (see make(1)). This uses the -C flag, so add a test that checks that make actually accepts -C. Also fix the test that selects csh via the .SHELL target to work for tcsh users too. This commit renames shell_test to shell_test.sh. There is no history to preserve so go without a repo-copy. Reviewed by: ru
* Am I smoking crack? Correct stupid, wrong ASSERT -> if conversion and makemlaier2004-12-021-2/+2
| | | | | | | it do what I had in mind. Noticed by: glebius Pointyhat to: me, myself and mlaier
* o Do not dump core in -W if dumpdates was not readable and ddatev == NULL.maxim2004-12-022-5/+2
| | | | | | | | | PR: bin/69977 o Remove unused ddates_in. Obtained from: NetBSD MFC after: 3 weeks
* o Add a missed "." .maxim2004-12-021-1/+1
| | | | | Reviewed by: ru MFC after: 3 weeks
* o Terminate an endless loop sh -T goes into in dowait() around waitproc().maxim2004-12-021-1/+2
| | | | | | | | | | | | XXX from Tor: "The shell can also go into a similar loop if the child was killed by signal 127, since the shell would believe the child to have only stopped (WIFSTOPPED() macro returns nonzero value). Disallowing signals 127 and 128 will fix that problem." See kern/19402 for details. PR: bin/66242 Submitted by: tegge Analysis and testcase by: demon MFC after: 3 weeks
* Drop ffree() as a separate function and incorporate the only place used.phk2004-12-022-18/+8
|
* Style polishing.phk2004-12-021-88/+37
| | | | | Use grepable functions Other minor nitpickings.
* Remove the de_devvp and stop VREF'ing it for every vnode we create.phk2004-12-023-11/+1
|
* Specifically use the 32-bit version of fuword/suword since that's whatobrien2004-12-021-7/+6
| | | | | | | we really want vs. the size changing 'long' (i386 vs. AMD64). This fixes the problem with DRM with Radeon's on AMD64. Submitted by: Jung-uk Kim <jkim@niksun.com>
* Turn ACPI and PCI devices off or to a lower power state in suspend andnjl2004-12-022-18/+264
| | | | | | | | | | | | | | | | back on again in resume. Override the default of D3 with the value the BIOS specifies in _SxD, if present. Skip serial devices (PNP05xx) since they seem to hang when set to D3 and may require special driver support. Also, skip non-type 0 PCI devices (i.e., bridges) since our we don't yet save/restore their config space and that seems to be necessary. If this gives you trouble with suspend/resume, you can disable the new ACPI and PCI power behavior separately with these tunables & sysctls: debug.acpi.do_powerstate hw.pci.do_powerstate Approved by: imp (pci) Tested by: acpi@ (numerous)
* Add the ACPI_PWR_FOR_SLEEP method. It takes a device and outputs thenjl2004-12-021-0/+20
| | | | | | appropriate power (Dx) state, if the BIOS suggests one. MFC after: 3 weeks
* For efficiency eliminate the call to pmap_pte() from pmap_protect()'s andalc2004-12-021-14/+18
| | | | | | | pmap_remove()'s inner loop. Instead, call pmap_pde_to_pte(), a new function, prior to the inner loop. Reviewed by: peter@, tegge@
* For efficiency move the call to pmap_pte_quick() out of pmap_protect()'salc2004-12-021-7/+6
| | | | | | and pmap_remove()'s inner loop. Reviewed by: peter@, tegge@
* Catch up with AcpiOsSleep() interface change.marks2004-12-024-11/+31
| | | | | | | | Catch up with some #define's renaming. Implement AcpiOsGetTimer() as per ACPI 3.0. Approved by: njl MFC after: 1 week
* This commit was generated by cvs2svn to compensate for changes in r138298,marks2004-12-021-1/+1
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Oops, remove unnecessary cast in original, out-commented code.marks2004-12-021-1/+1
| | | | | | | | | | | | This was a debug leftover. MFC after: 1 week
* | This commit was generated by cvs2svn to compensate for changes in r138296,marks2004-12-021-1/+9
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Local change: Supporting code not yet available, use previous behaviormarks2004-12-021-1/+9
| | | | | | | | | | | | | | | | | | | | | | instead for the time being. Intel should fix this. Note that if this commit is correct, it is made on the vendor branch. We expect the Intel folks to fix it, and we don't want to unnecessarily take files off the vendor branch. Approved by: njl MFC after: 1 week
* | Local change: Remove warnings from vendor files.marks2004-12-013-62/+54
| | | | | | | | | | Approved by: njl MFC after: 1 week
* | Local change: In the resume path, give up after waiting for a whilemarks2004-12-011-7/+8
| | | | | | | | | | | | | | for WAK_STS to be set. Some BIOSs never set it. Approved by: njl MFC after: 1 week
* | Local change: Put various debugging options under ACPI_DISASSEMBLER.marks2004-12-011-1/+83
| | | | | | | | | | Approved by: njl MFC after: 1 week
* | Unchanged files that are off the vendor branch.marks2004-12-019-177/+182
| | | | | | | | | | Approved by: njl MFC after: 1 week
* | Do not leave build droppings in /usr/src for usr.sbin/pcvt/keycap andpeter2004-12-011-0/+4
| | | | | | | | | | usr.bin/lex/lib for the 32 bit libraries on amd64. Add an explicit obj for these two directories that are built in for the "libraries" target.
* | Back when VOP_* was introduced, we did not have new-style structphk2004-12-0168-1742/+1086
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initializations but we did have lofty goals and big ideals. Adjust to more contemporary circumstances and gain type checking. Replace the entire vop_t frobbing thing with properly typed structures. The only casualty is that we can not add a new VOP_ method with a loadable module. History has not given us reason to belive this would ever be feasible in the the first place. Eliminate in toto VOCALL(), vop_t, VNODEOP_SET() etc. Give coda correct prototypes and function definitions for all vop_()s. Generate a bit more data from the vnode_if.src file: a struct vop_vector and protype typedefs for all vop methods. Add a new vop_bypass() and make vop_default be a pointer to another struct vop_vector. Remove a lot of vfs_init since vop_vector is ready to use from the compiler. Cast various vop_mumble() to void * with uppercase name, for instance VOP_PANIC, VOP_NULL etc. Implement VCALL() by making vdesc_offset the offsetof() the relevant function pointer in vop_vector. This is disgusting but since the code is generated by a script comparatively safe. The alternative for nullfs etc. would be much worse. Fix up all vnode method vectors to remove casts so they become typesafe. (The bulk of this is generated by scripts)
* | This commit was generated by cvs2svn to compensate for changes in r138287,marks2004-12-0185-1658/+3570
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of Intel ACPI-CA 20041119marks2004-12-0198-1854/+3896
| |
* | Add nfs4 to list of net filesystems.rees2004-12-011-1/+1
| | | | | | | | Approved by: alfred
* | don't confuse NFSMNT_ flags with MNT_ flags in statfsrees2004-12-011-1/+0
| | | | | | | | Approved by: alfred
* | Fix unvalidated pointer dereference. This is FreeBSD-SA-04:17.procfs.cperciva2004-12-012-2/+26
| |
* | - Do a better job of handling any Dependent Functions (aka DPFs) that appearjhb2004-12-011-69/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in the _PRS or _CRS of link devices. If faced with multiple DPFs in a _PRS, we just use the first one. We assume that if _CRS has DPF tags they only contain a single set since multiple DPFs wouldn't make any sense. In practice, the only DPFs I've seen so far for link devices are that the one IRQ resource is surrounded by a DPF tag pair for no apparent reason, and this should handle that case fine now. - Only allocate link structures for IRQ resources for link devices rather than allocating a link structure for every resource. Reviewed by: njl Tested by: phk
* | hpfs_lookup() should have a vop_cachedlookup_t prototype an correspondingphk2004-12-011-2/+2
| | | | | | | | argument.
OpenPOWER on IntegriCloud