summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Update the comment about what NO_SWAPPING does.das2004-11-201-1/+1
| | | | Reviewed by: arch@
* Maintain the broken state of backwards compatibilty for a.out (anddas2004-11-203-6/+9
| | | | | | | PECOFF!) core dumps. None of the old versions of gdb I tried were able to read a.out core dumps before or after this change. Reviewed by: arch@
* We don't do U area swapping anymore, so update some comments. Also,das2004-11-201-5/+5
| | | | | | | prototype the new routine that creates a mock U area for a.out core dumps. Reviewed by: arch@
* Remove UAREA_PAGES and USPACE definitions. The definitions ofdas2004-11-201-9/+1
| | | | | | | | USPACE_SVC_STACK_TOP, USPACE_SVC_STACK_BOTTOM, USPACE_UNDEF_STACK_TOP, and USPACE_UNDEF_STACK_BOTTOM look wrong to me, so I'm leaving them alone. Reviewed by: arch@
* Remove some references to U area here while trying not to breakdas2004-11-201-4/+3
| | | | | | | anything. Someone with ARM hardware could do a lot more to untangle this code. Reviewed by: arch@
* Remove references to U area and garbage collect includes.das2004-11-204-13/+4
| | | | Reviewed by: arch@
* Remove UAREA_PAGES.das2004-11-206-6/+0
| | | | Reviewed by: arch@
* U areas are going away, so don't allocate them. It's worrisome thatdas2004-11-202-6/+2
| | | | | | | | mp_machdep.c was using UAREA_PAGES to allocate something that isn't a U area, and that there seems to be an implicit assumption that the PCB is just past the end of the kernel stack. Reviewed by: arch@
* U areas are going away, so don't allocate one for process 0.das2004-11-2011-53/+6
| | | | Reviewed by: arch@
* Disable U area swapping and remove the routines that create, destroy,das2004-11-204-206/+0
| | | | | | copy, and swap U areas. Reviewed by: arch@
* Malloc p_stats instead of putting it in the U area. We should considerdas2004-11-203-12/+49
| | | | | | simply embedding it in struct proc. Reviewed by: arch@
* user.h is included only to get pcb.h, so use the latter directly instead.das2004-11-203-3/+2
|
* Increase cnt.v_syscall and cnt.v_trap when needed.cognet2004-11-201-0/+3
|
* Remove unused macro.glebius2004-11-191-3/+0
| | | | Approved by: julian (mentor)
* Cancel pending timeout before scheduling a new one. This fixesglebius2004-11-191-0/+1
| | | | | | item leak, I've introduced with previous change. Approved by: julian (mentor)
* Correct typo. Return ENXIO instead of EIO.emax2004-11-191-1/+1
|
* Revert part of rev 1.57. The tag boundary is honored by splitting thescottl2004-11-191-9/+5
| | | | segment, not by bouncing.
* Revert part of rev 1.56. Tag boundaries are handled by splitting segments,scottl2004-11-191-9/+5
| | | | not through bouncing.
* Place function comment above the right function.marks2004-11-191-7/+7
|
* Rebuild from compat/freebsd32/syscalls.master:1.43marks2004-11-182-2/+2
| | | | | Reviewed by: imp, phk, njl, peter Approved by: njl
* 32-bit FreeBSD ABI compatibility stubs from syscalls.master:1.179marks2004-11-181-1/+1
| | | | | Reviewed by: imp, phk, njl, peter Approved by: njl
* Rebuild from syscalls.master:1.179marks2004-11-185-2/+8
| | | | | Reviewed by: imp, phk, njl, peter Approved by: njl
* Add ntp_gettime(2) system call.marks2004-11-181-1/+1
| | | | | Reviewed by: imp, phk, njl, peter Approved by: njl
* Add system call implementation of ntp_gettime(2).marks2004-11-181-18/+43
| | | | | | | | Moved most of the work to ntp_gettime1(), which is now called by ntp_gettime() and ntp_sysctl(). Reviewed by: imp, phk, njl, peter Approved by: njl
* Add some useful target mode diagnostics for incoming commandsgibbs2004-11-181-7/+11
| | | | under the AHC_SHOW_TQIN debug flag.
* Revert to basing all timeout/timer values in ms rather than us. The switchgibbs2004-11-184-16/+26
| | | | | | | | | to us was to help out the Linux port, but really just invited overflow. In fact, the request sense timer was overflowing prior to this change making it much shorter than intended. aic_osm_lib.h: Be more careful about overflow in all timer/timeout primitives.
* Add dropped implementation of ioctl for fifos.phk2004-11-181-1/+20
|
* Ok, first blunder: ioctls are not entirely unused on vnodes anymore :-)phk2004-11-181-0/+3
| | | | Add dropped call to VOP_IOCTL().
* Pass path to filesystem when mounting rootphk2004-11-181-1/+1
|
* - Since divert protocol is not connection oriented, remove SS_ISCONNECTED flagglebius2004-11-181-33/+0
| | | | | | | | | | | | | from divert sockets. - Remove div_disconnect() method, since it shouldn't be called now. - Remove div_abort() method. It was never called directly, since protocol doesn't have listen queue. It was called only from div_disconnect(), which is removed now. Reviewed by: rwatson, maxim Approved by: julian (mentor) MT5 after: 1 week MT4 after: 1 month
* - Eliminate the acquisition and release of the bqlock in bremfree() byjeff2004-11-184-40/+72
| | | | | | | | | | | | | | | | | | | | setting the B_REMFREE flag in the buf. This is done to prevent lock order reversals with code that must call bremfree() with a local lock held. This also reduces overhead by removing two lock operations per buf for fsync() and similar. - Check for the B_REMFREE flag in brelse() and bqrelse() after the bqlock has been acquired so that we may remove ourself from the free-list. - Provide a bremfreef() function to immediately remove a buf from a free-list for use only by NFS. This is done because the nfsclient code overloads the b_freelist queue for its own async. io queue. - Simplify the numfreebuffers accounting by removing a switch statement that executed the same code in every possible case. - getnewbuf() can encounter locked bufs on free-lists once Giant is removed. Remove a panic associated with this condition and delay asserts that inspect the buf until after it is locked. Reviewed by: phk Sponsored by: Isilon Systems, Inc.
* Make more sense out of vop_stdcreatevobject()phk2004-11-181-21/+21
|
* Correct another location where inquiry length as calculated from thegibbs2004-11-181-3/+5
| | | | | | inquiry additional length field is off by one. MFC: 3 days
* this should have been deleted a while agoimp2004-11-181-9/+0
|
* Correct an off-by-one in the calculation of the inquiry buffer lengthgibbs2004-11-181-1/+11
| | | | | | | | | | | | | | | | | to request from devices during the "long inquiry" portion of our probe. This same bug was fixed in the 4.x stream a few years ago, but the fix was never propogated to -current. This fix is slightly different than in -stable: o Use offsetof() instead of a hard coded constant so as the make the code more self-explainatory. o Round odd long inquiry lengths up so as to avoid tickling ignore wide residue bugs in broken parallel SCSI devices running with a wide transfer negotiation. MFC: 3 days
* Move KERNPHYSADDR and KERNVIRTADDR from std.i80321 to std.iq31244.cognet2004-11-182-2/+2
| | | | Use the correct KERNPHYSADDR.
* Correct URL of the programming manual.brueffer2004-11-172-2/+2
|
* Add missing /* DEVICE_POLLING */brueffer2004-11-172-2/+2
|
* Fix host route addition for more than one address to a loopback interfacemlaier2004-11-171-1/+1
| | | | | | | | after allowing more than one address with the same prefix. Reported by: Vladimir Grebenschikov <vova NO fbsd SPAM ru> Submitted by: ru (also NetBSD rev. 1.83) Pointyhat to: mlaier
* only clear the IFF_OACTIVE flag when we have a chance of being able tojmg2004-11-172-8/+8
| | | | | | | | | queue a packet to the hardware... instead of when the hardware queue is empty.. don't initalize cur_tx now that it doesn't need to be... Pointed out by: bde
* Remove the whole uart_cpu_identify() stuff again. Now that it's no longermarius2004-11-178-39/+0
| | | | | | | used on sparc64 they are only stubs on all architectures and it doesn't look like if we would need it in the near future again. Ok'ed by: marcel
* sync comment on IFF_OACTIVE with reality.. IFF_OACTIVE is set when thejmg2004-11-171-1/+1
| | | | | | | hardware cannot take anymore packets, and so will supress the calling of the device's if_start method... Submitted by: bde
* Hook up mac_sysv_{msg,sem,shm}.c to the build when compiling with MACrwatson2004-11-171-0/+3
| | | | support.
* Add a front-end for the `rtc' device which is a MC146818 compatiblemarius2004-11-174-0/+187
| | | | | | | | clock found on the ISA bus (some USIIe, USIIi and USIIIi models) and EBus (USIII models) instead of a MK48Txx clock. Testet by: Matthew T. Lager" <freebsd@trinetworks.com> on Sun Fire V100, Xavier Beaudouin <kiwi@oav.net> on Netra X1 (initial version)
* Add a driver back end for MC146818 and compatible clocks based on themarius2004-11-174-47/+341
| | | | | | | | | | | respective NetBSD driver for use with the genclock interface. It's first use will be on sparc64 but it was also tested on alpha with a preliminary patch to switch alpha to use the genclock code together with this driver instead of the respective code in alpha/alpha/clock.c and the rather MD mcclock(4). Using it on i386 and amd64 won't be that hard but some changes/extensions to improve the genclock code in general should be done first, e.g. add locking and make it easier to access the NVRAM usually coupled with RTCs.
* o sparc64/isa/isa.c:marius2004-11-173-159/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The claim in the commit log of rev. 1.11 of dev/uart/uart_cpu_sparc64.c etc. that UARTs are the only relevant ISA devices on sparc64 turned out to be false. While there are sparc64 models where UARTs are the only devices on the ISA bus there are in fact also low-cost models where all devices traditionally found on the EBus are hooked up to the ISA bus. There are also models that use a mix between EBus and ISA devices with things like an AT keyboard controller and other rather interesting devices that we might want to support in the futute hook up to the ISA bus. In order to not need to add sparc64 specific device_identify methods to all of the respective ISA drivers and also not add OFW specific code to the common ISA code make the sparc64 ISA bus code fake up PnP devices so most ISA drivers probe their devices without further changes. Unfortunately Sun doesn't adhere to the ISA bindings defined in IEEE 1275-1994 for the properties of most of the ISA devices which would allow to obtain the vendor and logical IDs from their properties. So we we just use a simple table which maps the name properties to PnP IDs. This could be done in a more sophisticated way but I courrently don't see the need for this. [1] - Add the children with fully mapped and specified resources (in the OFW sense) similar to what is done in the EBus code for the IRQ resources of the children as adjusting the resources and the resource list entries respectively in isa_alloc_resource() as done perviously causes trouble with drivers which use rman_get_start(), pass-through or allocate and release resources multiple times, etc. Adjusting the resources might be better off in a bus_activate_resource method but the common ISA code currently doesn't allow for an isa_activate_resource(). [2] With this change: - ppbus(4) and lpt(4) attach and work (modulo ECP mode, which requires real ISADMA code but it currently only consists of stubs on sparc64). - atkbdc(4) and atkbdc(4) attach, no further testing done. - fdc(4) itself attaches but causes a hang while attaching fd0 also when is DMA disabled, further work in fdc(4) is required here as e.g. fd0 uses the address of fd1 on sparc64 (not sure if sparc64 supports more than one floppy drive at all). All of these drivers previously caused panics in the sparc64 ISA code. - Minor changes, e.g. use __FBSDID, remove a dupe word in a comment and declare one global variable which isn't used outside of isa.c static. o dev/uart/uart_cpu_sparc64.c and modules/uart/Makefile: - Remove the code for registering the UARTs on the ISA bus from the sparc64 uart_cpu_identify() again and rely on probing them via PnP. Original idea by: tmm [1] No objections by: tmm [1], [2]
* Don't bother exiting storming mode once a second to see if it has gonejhb2004-11-171-12/+6
| | | | | | | away, instead only exit storming mode when an interrupt stops firing long enough for the ithread to exit the loop and go back to sleep. Tested by: macrus (cruder version)
* Implement MAC entry points relating to System V IPC, calling into therwatson2004-11-173-0/+592
| | | | | | | | | MAC policies to perform object life cycle operations and access control checks. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research
* In the kernel-only portionss of System V IPC objects (messages,rwatson2004-11-173-0/+4
| | | | | | | | | | | | message queues, shared memory segments, and semaphores), add a struct label pointer, which will hold the MAC labels for the objects. As a result of recent work to separate kernel and user space ABIs, this should not break the ABI for applications using System V IPC, but will require a rebuild of the ipcs monitoring tool. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research
* Define new MAC framework and policy entry points for System V IPCrwatson2004-11-174-2/+258
| | | | | | | | | | | | | | | objects and operations: - System V IPC message, message queue, semaphore, and shared memory segment init, destroy, cleanup, create operations. - System V IPC message, message queue, seamphore, and shared memory segment access control entry points, including rights to attach, destroy, and manipulate these IPC objects. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research
OpenPOWER on IntegriCloud