summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Both boot and boot-conf were using a different algorithm from the onedcs2000-09-162-32/+38
| | | | | | | | | | | | | used by start to find the kernel. Fix this. Also, boot would proceed immediately in the absence of a path as argument. Check first if a kernel has already been loaded, and, if not, fall back to load kernel&modules behavior. Some further factorizing. I deem this code to be mostly readable by now! :-) Many thanks to: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
* Make LINT link.phk2000-09-163-0/+12
| | | | cy driver is broken post SMPng.
* Add proper prototype for dkcksum();phk2000-09-163-0/+6
|
* Remove SMP hack.phk2000-09-161-6/+0
|
* Make LINT compile.phk2000-09-165-9/+6
|
* Make LINT compile.phk2000-09-163-3/+3
|
* Make LINT compile again.phk2000-09-162-0/+2
|
* Remove a few leftover CLBYTES related bits.phk2000-09-162-16/+0
| | | | | This was in the good old days to patch up a logical pagesize on hardware with stupid VM pagesize. Vaxen I belive.
* Remove a pointless casting of a gid_t to a gid_t.phk2000-09-161-1/+1
|
* Call bpfattach() correctly from if_ppp.cbrian2000-09-161-0/+5
| | | | | Submitted by: Andy Adams <ala@merit.edu> PR: 18506
* Turn dkcksum() into an __inline function.phk2000-09-164-20/+45
| | | | Change its type to u_int_16_t.
* Add canonical checks to devfs_setattr().phk2000-09-161-14/+50
|
* Change the interface to pccard_function_init. The interface is suchimp2000-09-162-8/+17
| | | | | | | | | | | | | | | | | that it looks for an acceptible one. Once it finds it, it should set the resources for the device. I say "should" because I've not written that. Also set an ivar for the child of pccard. Minor fix to the attach message printed, we lose the slot number, which I'll have to restore later. Adjust the pccard ivar so that we can save the function that corresponds to this driver so we can enable and disable it more easily. Save a pointer to the function so we know what we're dealing with. There should be some way for the driver to specify which cfg it wants to activate. For now the pccard_function_init function just picks one, but we'll have to revisit this going forward. I'm not doing it now because I'd need some way to activate the card many times and I'm not sure that is desirable or even safe with some cards.
* It is possible for a TCP callout to be removed from the timing wheel,jlemon2000-09-161-5/+5
| | | | | | but have a network interrupt arrive and deactivate the timeout before the callout routine runs. Check for this case in the callout routine; it should only run if the callout is active and not on the wheel.
* Remove some commented out cruft.jhb2000-09-151-7/+0
|
* - Add a new process flag P_NOLOAD that marks a process that should bejhb2000-09-155-1/+8
| | | | | ignored during load average calcuations. - Set this flag for the idle processes and the softinterrupt process.
* Idle processes are always runnable, so let them state at SRUN.jhb2000-09-152-3/+1
|
* Release Giant before starting up init.jhb2000-09-151-1/+3
| | | | Submitted by: jake
* Use driver_intr_t instead of the now defunct inthand2_t.jhb2000-09-151-1/+1
|
* examined the gateway (from the routing table) only when the addressume2000-09-151-0/+10
| | | | | | family of the gateway is AF_INET6. Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
* Add -Wmissing-prototypes.ru2000-09-152-5/+8
|
* Reserve major number 156 for uscannern_hibma2000-09-151-0/+1
|
* Factorize, reorganize, and move code around.dcs2000-09-152-116/+152
| | | | | | | | | | | | | | | | | | | | | | | The boot-conf and boot code had various bugs, and some of it was big, ugly, unwieldy, and, sometimes, plain incorrect. I'm just about completely replaced these ugly parts with something much more manageable. Minor changes were made to the well-factorized parts of it, to accomodate the new code. Of note: * make sure boot-conf has the exact same behavior wrt boot order as start. * Correct both boot and boot-conf so they'll work correctly when compiled in, as they both had some bugs, minor and major. * Remove all the crud from loader.4th back into support.4th, for the first time since boot-conf was first improved. Hurray! I'm fairly satisfied with the code at this time. Time to see about those man pages...
* Start countdown only _after_ the kernel was loaded. Not very fair otherwise.dcs2000-09-151-4/+4
|
* Merged from sys/isa/fd.c revision 1.187.kato2000-09-152-2/+10
| | | | Pointed out by: nyan
* Merged from sys/i386/isa/sio.c revision 1.314.kato2000-09-152-0/+2
|
* Merged from sys/i386/isa/clock.c revision 1.157.kato2000-09-153-21/+21
|
* Merged from sys/i386/i386/machdep.c revision 1.408.kato2000-09-152-12/+12
|
* Moved the fe driver from the compat section to the correct section.nyan2000-09-152-4/+4
| | | | Submitted by: sanpei
* Check to see if we actually have an interrupt descriptor and an interruptjhb2000-09-152-0/+42
| | | | | | | | thread for each interrupt that comes in. If we don't, log the event and return immediately for a hardware interrupt. For a softinterrupt, panic instead. Submitted by: ben
* Add acpi_send_pm_event() to inform all devices that the system isiwasaki2000-09-142-3/+63
| | | | | going to sleep and back from sleep. Also re-enabling some acpi registers on wakeup.
* Enforce process limit policy in one place to keep proccnt from divergingtruckman2000-09-141-2/+2
| | | | from reality.
* Add pmtimer instance.iwasaki2000-09-142-0/+4
|
* Add Timer device driver for power management events.iwasaki2000-09-146-160/+154
| | | | | | | | | | | | | | | | The code for suspend/resume is derived from APM device driver. Some people suggested the original code is somewhat buggy, but I'd like to just move it from apm.c without any major changes for the initial version. This code should be refined later. To use pmtimer to adjust time at resume time, add device pmtimer in your kernel config file, and add hint.pmtimer.0.at="isa" in your device.hints Reviewed by: -current, bde
* Grab the scheduler lock before calling setrunqueue() and mi_switch().jhb2000-09-141-0/+2
|
* With the help of 'Eric Christeson <echriste@ssesco.com>', determinedmjacob2000-09-141-1/+1
| | | | that QIC 525 really should be 512 byte fixed blocksize.
* m_cat() can free its second argument, so collect the checksum informationjlemon2000-09-141-1/+1
| | | | from the fragment before calling m_cat().
* Remove the mtx_t, witness_t, and witness_blessed_t types. Instead, justjhb2000-09-1418-316/+311
| | | | | | use struct mtx, struct witness, and struct witness_blessed. Requested by: bde
* Pipes are not writeable while a direct write is in progress. However,jlemon2000-09-141-1/+1
| | | | | | the kqueue filter got the sense of the test reversed, so fix it. Spotted by: Michael Elkins <me@sigpipe.org>
* Take out the RANDOMDEV option. The entropy device is a (pseudo-)devicemarkm2000-09-141-1/+0
| | | | now.
* Add function comments for functions missing themeivind2000-09-142-2/+58
|
* Blow away COMPAT_43 support for mounteivind2000-09-142-42/+0
|
* GC vax-only codeeivind2000-09-141-47/+0
|
* Install the kernel KLM as "kernel" by default.obrien2000-09-144-4/+4
|
* Follow the hints from PHK's new messages- only make_dev for a devicemjacob2000-09-141-12/+12
| | | | once. Alias names use the make_dev_alias function.
* Follow BSD/OS and NetBSD, keep the ip_id field in network order all the time.ru2000-09-1412-24/+9
| | | | Requested by: wollman
* Change "KTR_COMPILE & m" to "KTR_COMPILE & (m)" to allow more flexibledfr2000-09-141-12/+12
| | | | expressions for m.
* Don't release Giant for db_nofault exceptions since it isn't held whendfr2000-09-141-1/+0
| | | | kdb_trap is called.
* - Newbus'ify and bus_space'ify.nyan2000-09-1411-6833/+3045
| | | | | | | | | - Separate bus dependent part and independent part. - Moved source files to sys/dev/fe (repo copied). - Fixed some comments by chi@bd.mbn.or.jp (Chiharu Shibata) Tested by: bsd-nomads@clave.gr.jp and FreeBSD98-testers@jp.freebsd.org
* - Changed the structure name (struct disk -> struct softc).nyan2000-09-141-420/+61
| | | | | - Converted to disk_create() interface. - Removed unnecessary code.
OpenPOWER on IntegriCloud