summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Tag longling_addr as maybe using a bad type, I'm not sure.imp2003-03-181-1/+1
|
* Regenerate for 1.45imp2003-03-181-1/+4
|
* Add DLINK DWL650Himp2003-03-181-0/+1
| | | | From NetBSD by way of deichen
* Expand the APIC ID mask field of the ICR register to 8 bits intead of justjhb2003-03-173-3/+3
| | | | | | | | | 4 bits. This reportedly fixes booting on the SW7500CW2. Much thanks to the submitter for tracking this down! Submitted by: Brian Buchanan <brian@ncircle.com> Reviewed by: peter MFC after: 3 days
* Clean up /dev/mem now that pmap handles illegal aliases properly. Don'tjake2003-03-171-54/+70
| | | | | allow access to device memory through /dev/mem, or try to make modifying kernel text through /dev/mem safe (it is not).
* - Unlock the target bp and not the pager buf bp in a failure case injeff2003-03-171-1/+1
| | | | | | | cluster_wbuild(). This was causing strange panics that were widely reported on current@. Big Pointy Hat to: jeff
* - Lock down the bounce pages structures. We use the same locking schememux2003-03-172-52/+68
| | | | | | as with the alpha backend because both implementations of bounce pages are identical. - Remove useless splhigh()/splx() calls.
* Tidy up the locking of the bounce pages structures.mux2003-03-171-13/+21
| | | | | | | | | | | | - Use SYSINIT to initialize the structures instead of checking total_bpages against 0 in alloc_bounce_pages(), which could lead to several initializations being done at the same time. - Add missing locking in bus_dmamap_load(), the bounce pages mutex must be held when calling reserve_bounce_pages() and when touching the bounce_map_waitinglist list. - Remove the useless splhigh() and splx() calls. - Assert that the bounce pages mutex is held in reserve_bounce_pages() to catch regressions.
* Remove bogus KASSERT. The 802.11 layer and the resume from suspendimp2003-03-171-2/+0
| | | | | | | | | | | code both seem to call wi_start (directly or via the if_start pointer) without checking to see if OACTIVE is 0. In addition, I think that with the use of 3 transmit buffers this routine can be called with OACTIVE set, but I might be mistaken about that (and it doesn't matter). Reviewed by: sam Noticed by: imp, alfred, ambrisko
* (This commit certainly increases the need for a wash&clean of vfs_cache.c,phk2003-03-172-412/+377
| | | | | | | | | | | | | | | | | but I decided that it was important for this patch to not bit-rot, and since it is mainly moving code around, the total amount of entropy is epsilon /phk) This is a patch to move the common parts of linux_getcwd() back into kern/vfs_cache.c so that the standard FreeBSD libc getcwd() can use it's extended functionality. The linux syscall linux_getcwd() in compat/linux/linux_getcwd.c has been rewritten to use it too. It should be possible to simplify libc's getcwd() after this. No doubt this code needs some cleaning up, since I've left in the sysctl variables I used for debugging. PR: 48169 Submitted by: James Whitwell <abacau@yahoo.com.au>
* Fix malloc() without legal mode flag.phk2003-03-172-2/+2
|
* Fix a malloc() with no legal modeflag.phk2003-03-172-2/+2
|
* Ensure that kstack0 has physical colour equal to virtual colour, so thatjake2003-03-171-4/+11
| | | | | illegal aliases will not be created in the data cache if its accessed through another such mapping.
* Subtract the memory that backs the vm_page structures from phys_availjake2003-03-171-4/+2
| | | | | after mapping it. This makes it possible to determine if a physical page has a backing vm_page or not.
* Add a #define for the device name of the mmap device for devstat.phk2003-03-162-2/+7
| | | | Constify the geom identification pointer.
* #ifdef notyet a bit of code which needs not yet committed refcounting tophk2003-03-161-0/+2
| | | | work correctly.
* Fix the cable detection and properly find the host bridge onsos2003-03-161-22/+22
| | | | older SiS chips.
* Make udf_allocv() return an unlocked vnode instead of a locked onetjr2003-03-161-2/+1
| | | | | | to avoid a "locking against myself" panic when udf_hashins() tries to lock it again. Lock the vnode in udf_hashins() before adding it to the hash bucket.
* Pass the sf buf to MEXTADD() as the optional argument. This permitsalc2003-03-162-11/+6
| | | | | the simplification of socow_iodone() and sf_buf_free(); they don't have to reverse engineer the sf buf from the data's address.
* Made the prototypes for pmap_kenter and pmap_kremove MD. These functionsjake2003-03-167-2/+12
| | | | | | | | | are machine dependent because they are not required to update the tlb when mappings are added or removed, and doing so is machine dependent. In addition, an implementation may require that pages mapped with pmap_kenter have a backing vm_page_t, which is not necessarily true of all physical pages, and so may choose to pass the vm_page_t to pmap_kenter instead of the physical address in order to make this requirement clear.
* Catch up with bpf_mtap() changes.mdodd2003-03-161-1/+1
|
* Catch up with recent infrastructure changes.mdodd2003-03-162-7/+2
|
* - Use IFP2AC().mdodd2003-03-162-5/+73
| | | | | | - Support IFF_MONITOR. - Borrow some consistency for if_input() routines from if_ethersubr.c. - Correct comments regarding fddi_input() that no longer apply.
* Implement is_physical_memory. Accessing memory which doesn't exist causesjake2003-03-151-3/+9
| | | | | traps that are difficult to recover from, so we check against the memory map returned by the prom.
* Fix whitespace issues.mdodd2003-03-151-20/+20
|
* Register module dependencies.mdodd2003-03-151-0/+2
|
* Don't build if_iso88025subr.c into the oltr module.mdodd2003-03-151-25/+3
|
* G/C unused varilable.mdodd2003-03-151-1/+1
|
* Catch up with recent changes.mdodd2003-03-151-36/+5
|
* Bump __FreeBSD_version for token-ring changes.mdodd2003-03-151-1/+1
|
* Don't strip header from packets before input routine is called.mdodd2003-03-152-6/+27
|
* Use if_printf().mdodd2003-03-152-4/+3
|
* iso88025_ifattach() changes:mdodd2003-03-152-3/+22
| | | | | - Call if_attach(). - Conditionally call bpfattach() based on second function argument.
* - Style(9) changes.mdodd2003-03-151-4/+11
| | | | | | - Remove unneeded assignment. - Increment if_oerrors as per if_fddisubr.c. - Wrap ISO code with conditional.
* Stray } forgotten by manual merging.mdodd2003-03-151-1/+0
|
* - Remove stray ).mdodd2003-03-151-2/+6
| | | | | - Add missing breaks. - Add missing if_noproto++.
* One devstat_start_transaction_bio() is enough.phk2003-03-151-7/+0
|
* Revert part of 1.37; use bcopy() like if_fddisubr.c.mdodd2003-03-151-3/+1
|
* - Increment ifp->if_noproto when appropriate.mdodd2003-03-151-11/+19
| | | | | - Use 'goto dropanyway' when appropriate. - Move dropanyway label out of switch for readability.
* Run a revision of the devstat interface:phk2003-03-154-114/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel: Change statistics to use the *uptime() timescale (ie: relative to boottime) rather than the UTC aligned timescale. This makes the device statistics code oblivious to clock steps. Change timestamps to bintime format, they are cheaper. Remove the "busy_count", and replace it with two counter fields: "start_count" and "end_count", which are updated in the down and up paths respectively. This removes the locking constraint on devstat. Add a timestamp argument to devstat_start_transaction(), this will normally be a timestamp set by the *_bio() function in bp->bio_t0. Use this field to calculate duration of I/O operations. Add two timestamp arguments to devstat_end_transaction(), one is the current time, a NULL pointer means "take timestamp yourself", the other is the timestamp of when this transaction started (see above). Change calculation of busy_time to operate on "the salami principle": Only when we are idle, which we can determine by the start+end counts being identical, do we update the "busy_from" field in the down path. In the up path we accumulate the timeslice in busy_time and update busy_from. Change the byte_* and num_* fields into two arrays: bytes[] and operations[]. Userland: Change the misleading "busy_time" name to be called "snap_time" and make the time long double since that is what most users need anyway, fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same timescale as the kernel fields. Change devstat_compute_etime() to operate on struct bintime. Remove the version 2 legacy interface: the change to bintime makes compatibility far too expensive. Fix a bug in systat's "vm" page where boot relative busy times would be bogus. Bump __FreeBSD_version to 500107 Review & Collaboration by: ken
* Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.mdodd2003-03-151-6/+6
|
* - Adopt tests for (IFF_UP|IFF_RUNNING) and non local unicast packetsmdodd2003-03-151-5/+20
| | | | | in promiscuous mode from if_fddisubr.c. - Add comment to reduce diffs.
* Add MAC support.mdodd2003-03-151-0/+12
| | | | This is the same code that was added in 1.70 of if_fddisubr.c
* Use llc_control rather than llc_snap.control.mdodd2003-03-151-1/+1
|
* - Add comment.mdodd2003-03-151-2/+5
| | | | - Whitespace fixes.
* Reduce code differences.mdodd2003-03-153-19/+20
|
* Use ISO88025_ADDR_LEN where appropriate.mdodd2003-03-151-6/+6
|
* Don't use etherbroadcastaddr; use iso88025_broadcastaddr.mdodd2003-03-151-4/+6
|
* - Remove definition of senderr() from iso88025.h.mdodd2003-03-153-3/+3
| | | | - Use definition of senderr() from if_ethersubr.c.
* Remove duplicate line introduced in the previous commit.sobomax2003-03-151-1/+0
| | | | | Submitted by: bde MFC after: 2 weeks
OpenPOWER on IntegriCloud