summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* MFi386: revision 1.35 (Add support for writing to BIOS disks)nyan2001-12-121-4/+221
|
* MFi386: revision 1.485 (the previous commit is not completely)nyan2001-12-122-22/+26
|
* Connect libiconv to the build.sheldonh2001-12-121-0/+1
| | | | | | Recent work by fjoe and bp has fixed smbfs. The smbfs module can now be loaded once libiconv and libmchain have been loaded, and works!
* Fix select on named pipes without a reader.alfred2001-12-121-1/+0
| | | | | PR: kern/19871 MFC after: 1 month
* Axe an unneeded PCPU_SET(spinlocks, NULL) that I missed earlier.jhb2001-12-126-6/+0
|
* - Move _jail sysctl node underneath _kern_security in order to standardizearr2001-12-121-4/+5
| | | | | | | | | where our security related sysctl tuneables are located. Also, this will help if/when we move _security node out from under _kern as to help make _kern less cluttered. Approved by: rwatson Review by: rwatson
* Overhaul the per-CPU support a bit:jhb2001-12-11107-1596/+850
| | | | | | | | | | | | | | | | | | | | | | | | | - The MI portions of struct globaldata have been consolidated into a MI struct pcpu. The MD per-CPU data are specified via a macro defined in machine/pcpu.h. A macro was chosen over a struct mdpcpu so that the interface would be cleaner (PCPU_GET(my_md_field) vs. PCPU_GET(md.md_my_md_field)). - All references to globaldata are changed to pcpu instead. In a UP kernel, this data was stored as global variables which is where the original name came from. In an SMP world this data is per-CPU and ideally private to each CPU outside of the context of debuggers. This also included combining machine/globaldata.h and machine/globals.h into machine/pcpu.h. - The pointer to the thread using the FPU on i386 was renamed from npxthread to fpcurthread to be identical with other architectures. - Make the show pcpu ddb command MI with a MD callout to display MD fields. - The globaldata_register() function was renamed to pcpu_init() and now init's MI fields of a struct pcpu in addition to registering it with the internal array and list. - A pcpu_destroy() function was added to remove a struct pcpu from the internal array and list. Tested on: alpha, i386 Reviewed by: peter, jake
* Explicitly decode GetAllNext SNS Response back *as*mjacob2001-12-112-4/+59
| | | | | | | a GetAllNext response. Otherwise, we won't unswizzle it correctly. This was found on linux/PPC. This mandated creating another inline: isp_get_gan_response.
* Add VOP_GETEXTATTR(9) passthrough support to pseudofs.green2001-12-112-0/+55
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove an obsolete prototype for procfs_kmemaccess().des2001-12-111-3/+0
| | | | Submitted by: rwatson
* Correct a comment that should have been updated in rev 1.43, whensheldonh2001-12-111-2/+2
| | | | | | | CIRCLEQ was removed. PR: kern/32688 Submitted by: Jordan DeLong <fracture@allusion.net>
* Fix boot -p for DDBless kernelsguido2001-12-111-0/+6
| | | | Pointed out by: John Hay <jhay@icomtek.csir.co.za>
* Wrap Dangerously Dedicated printf under if (bootverbose)peter2001-12-111-2/+4
|
* Avoid an unnecessary copy of a packet if it is already in a single mbuf.luigi2001-12-114-4/+14
| | | | | | | | Introduce an additional device flag for those NICs which require the transmit buffers to be aligned to 32-bit boundaries. (the equivalen fix for STABLE is slightly simpler because there are no supported chips which require this alignment there.)
* Delete some leftover code from a bygone age. We dont have an array ofpeter2001-12-112-22/+2
| | | | IdlePTDS anymore and dont to the PTD[MPPTDI] swapping etc.
* - Add 'fwrite' and 'fseek' words for writing to and seeking on files.jhb2001-12-118-27/+96
| | | | | | | | | | | | | - Change the 'fopen' keyword to accept a mode parameter. Note that this will break existing 4th scripts that use fopen. Thus, the loader version has been bumped and loader.4th has been changed to check for a sufficient version on i386 and alpha. Be sure that you either do a full world build or install or full build and install of sys/boot after this since loader.old won't work with the new 4th files and vice versa. PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Major restructuring for swizzling to the request queue and unswizzling frommjacob2001-12-119-579/+1500
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros. The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). It also has to handle the SBus cards (for platforms that have them) which, while on a Big Endian machine, do *not* require *most* of the request/response queue entry fields to be swizzled or unswizzled. One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies. Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done. Additional changes: Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer. Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE). MFC after: 2 weeks
* Add support for writing blocks to the loader's disk cache.jhb2001-12-111-21/+92
| | | | | | PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Add support for writing to BIOS disks.jhb2001-12-111-3/+169
| | | | | | PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Missed an assignment of arg6 in previous commit.obrien2001-12-101-0/+1
|
* Get rid of irritating (bogus) message:guido2001-12-101-2/+5
| | | | | | | | pcm0: ac97 codec failed to reset extended mode (0, got 80) This was due to not masking off the correct extended function bits in the read value from the extended status reg. MFC after: 2 days
* Adjust for the addition of CTR6.obrien2001-12-101-1/+1
|
* Complete the CTR6 addition (and TR6 and ITR6...)obrien2001-12-101-11/+11
|
* Add new boot flag to i386 boot: -p.guido2001-12-108-2/+37
| | | | | | | | | | | | This flag adds a pausing utility. When ran with -p, during the kernel probing phase, the kernel will pause after each line of output. This pausing can be ended with the '.' key, and is automatically suspended when entering ddb. This flag comes in handy at systems without a serial port that either hang during booting or reser. Reviewed by: (partly by jlemon) MFC after: 1 week
* Regen from usbdevs rev 1.70: added some AGFA scannerssheldonh2001-12-102-2/+51
|
* Add some AGFA scanners:sheldonh2001-12-101-0/+7
| | | | | | | | | | SnapScan 1236U SnapScan e20 SnapScan e25 SnapScan e26 SnapScan e40 SnapScan e50 SnapScan e52 PR: kern/32649 Submitted by: "Erik H. Bakke" <ebakke@trolltech.com>
* I missed a string concatenation.obrien2001-12-101-1/+1
|
* Add identification string for AMD-761 host to PCI bridge.murray2001-12-102-0/+6
| | | | PR: kern/32255
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-1092-306/+309
| | | | also don't use ANSI string concatenation.
* Update to C99, s/__FUNCTION__/__func__/.obrien2001-12-101-1/+1
|
* Update to C99, s/__FUNCTION__/__func__/.obrien2001-12-106-25/+25
|
* Repeat after me -- "Use of ANSI string concatenation can be bad."obrien2001-12-104-38/+38
| | | | | | | | In this case, C99's __func__ is properly defined as: static const char __func__[] = "function-name"; and GCC 3.1 will not allow it to be used in bogus string concatenation.
* Add a CTR6, we need it now.obrien2001-12-101-0/+8
|
* o Eliminate compilation warnings on 64-bit architectures.alc2001-12-101-3/+3
|
* Remove PAO3 dependent part where I missed to remove at last commit.non2001-12-101-4/+0
|
* Add a NO_6_BYTE quirk for the D-series olympus digital cameras.iedowse2001-12-091-0/+7
| | | | | PR: kern/31250 Submitted by: Bryan Liesner <bleez@bellatlantic.net>
* We need machine/{signal,ucontext}.h to build a cross GCC compiler.obrien2001-12-092-0/+138
| | | | So craft the proper versions of these and commit em.
* Following sys/i386/include/ansi.h rev 1.33, add additional integer typesobrien2001-12-091-9/+57
| | | | in <machine/ansi.h> and that are required by <sys/stdint.h>.
* style(9)obrien2001-12-095-44/+50
|
* We need machine/types.h to build a cross GCC compiler.obrien2001-12-091-0/+72
| | | | | (copied from src/sys/i386/include/types.h rev 1.23, except for the label_t size, which is '10' everywhere BUT on i386)
* machine/limits.hobrien2001-12-092-0/+430
| | | | (taken from i386/include/limits.h rev 1.19)
* Disable sleep requests for 5 sec after wakeup. This is needed foriwasaki2001-12-092-0/+17
| | | | | | | | some Toshiba and Thinkpad laptops. Wakeup event is generated by power button or sleep button on some laptops but this also generates SCI interrupt, and shutdown the system as result. So this is introduced so that acpi driver ignore given requests for certain period.
* - Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.arr2001-12-093-3/+3
| | | | Spotted by: bde
* o Eliminate unnecessary synchronization from filt_aiodetach().alc2001-12-091-5/+3
| | | | | | | | o The manual page for kevent says that EVFILT_AIO returns under the same conditions as aio_error(). With that in mind, set the data field of the returned struct kevent to the value that would be returned by aio_error(). o Fix two compilation warnings.
* The ScanLogic SL11R-IDE claims to be SCSI-compatible, but actually requiresmsmith2001-12-091-1/+11
| | | | | | | | | the UFI command set. Even with this patch, it's incredibly slow on my laptop, but at least now it works. Note that the drive is reported to CAM with the vendor and device IDs from the device itself, forcing the user to patch the da(4) quirk table manually.
* Allow maxusers to be specified as 0 in the kernel config, which willdillon2001-12-0920-37/+73
| | | | | | | cause the system to auto-size to between 32 and 512 depending on the amount of memory. MFC after: 1 week
* Pull in more stuff from procfs now that it's been pseudofsized.des2001-12-091-31/+3
|
* Fix various bugs in the debugging code and reenable it.des2001-12-092-9/+9
|
* Fix an incorrect PFS_TRACE. Also, use __func__ instead of __FUNCTION__.des2001-12-091-3/+3
|
* p_trespass() has been dead for over a year.des2001-12-081-1/+0
|
OpenPOWER on IntegriCloud