aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Expand the APIC ID mask field of the ICR register to 8 bits intead of justJohn Baldwin2003-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 Notes: svn path=/head/; revision=112350
* Clean up /dev/mem now that pmap handles illegal aliases properly. Don'tJake Burkholder2003-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). Notes: svn path=/head/; revision=112349
* - Unlock the target bp and not the pager buf bp in a failure case inJeff Roberson2003-03-171-1/+1
| | | | | | | | | | cluster_wbuild(). This was causing strange panics that were widely reported on current@. Big Pointy Hat to: jeff Notes: svn path=/head/; revision=112347
* - Lock down the bounce pages structures. We use the same locking schemeMaxime Henrion2003-03-172-52/+68
| | | | | | | | | as with the alpha backend because both implementations of bounce pages are identical. - Remove useless splhigh()/splx() calls. Notes: svn path=/head/; revision=112346
* Tidy up the locking of the bounce pages structures.Maxime Henrion2003-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. Notes: svn path=/head/; revision=112344
* Remove bogus KASSERT. The 802.11 layer and the resume from suspendWarner Losh2003-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 Notes: svn path=/head/; revision=112343
* (This commit certainly increases the need for a wash&clean of vfs_cache.c,Poul-Henning Kamp2003-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> Notes: svn path=/head/; revision=112342
* Fix malloc() without legal mode flag.Poul-Henning Kamp2003-03-172-2/+2
| | | | Notes: svn path=/head/; revision=112335
* Fix a malloc() with no legal modeflag.Poul-Henning Kamp2003-03-172-2/+2
| | | | Notes: svn path=/head/; revision=112334
* Ensure that kstack0 has physical colour equal to virtual colour, so thatJake Burkholder2003-03-171-4/+11
| | | | | | | | illegal aliases will not be created in the data cache if its accessed through another such mapping. Notes: svn path=/head/; revision=112330
* Subtract the memory that backs the vm_page structures from phys_availJake Burkholder2003-03-171-4/+2
| | | | | | | | after mapping it. This makes it possible to determine if a physical page has a backing vm_page or not. Notes: svn path=/head/; revision=112329
* Add a #define for the device name of the mmap device for devstat.Poul-Henning Kamp2003-03-162-2/+7
| | | | | | | Constify the geom identification pointer. Notes: svn path=/head/; revision=112326
* #ifdef notyet a bit of code which needs not yet committed refcounting toPoul-Henning Kamp2003-03-161-0/+2
| | | | | | | work correctly. Notes: svn path=/head/; revision=112322
* Fix the cable detection and properly find the host bridge onSøren Schmidt2003-03-161-22/+22
| | | | | | | older SiS chips. Notes: svn path=/head/; revision=112321
* Make udf_allocv() return an unlocked vnode instead of a locked oneTim J. Robbins2003-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. Notes: svn path=/head/; revision=112317
* Pass the sf buf to MEXTADD() as the optional argument. This permitsAlan Cox2003-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. Notes: svn path=/head/; revision=112316
* Made the prototypes for pmap_kenter and pmap_kremove MD. These functionsJake Burkholder2003-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. Notes: svn path=/head/; revision=112312
* Catch up with bpf_mtap() changes.Matthew N. Dodd2003-03-161-1/+1
| | | | Notes: svn path=/head/; revision=112310
* Catch up with recent infrastructure changes.Matthew N. Dodd2003-03-162-7/+2
| | | | Notes: svn path=/head/; revision=112309
* - Use IFP2AC().Matthew N. Dodd2003-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. Notes: svn path=/head/; revision=112308
* Implement is_physical_memory. Accessing memory which doesn't exist causesJake Burkholder2003-03-151-3/+9
| | | | | | | | traps that are difficult to recover from, so we check against the memory map returned by the prom. Notes: svn path=/head/; revision=112306
* Fix whitespace issues.Matthew N. Dodd2003-03-151-20/+20
| | | | Notes: svn path=/head/; revision=112305
* Register module dependencies.Matthew N. Dodd2003-03-151-0/+2
| | | | Notes: svn path=/head/; revision=112304
* Don't build if_iso88025subr.c into the oltr module.Matthew N. Dodd2003-03-151-25/+3
| | | | Notes: svn path=/head/; revision=112303
* G/C unused varilable.Matthew N. Dodd2003-03-151-1/+1
| | | | Notes: svn path=/head/; revision=112302
* Catch up with recent changes.Matthew N. Dodd2003-03-151-36/+5
| | | | Notes: svn path=/head/; revision=112301
* Bump __FreeBSD_version for token-ring changes.Matthew N. Dodd2003-03-151-1/+1
| | | | Notes: svn path=/head/; revision=112300
* Don't strip header from packets before input routine is called.Matthew N. Dodd2003-03-152-6/+27
| | | | Notes: svn path=/head/; revision=112299
* Use if_printf().Matthew N. Dodd2003-03-152-4/+3
| | | | Notes: svn path=/head/; revision=112298
* iso88025_ifattach() changes:Matthew N. Dodd2003-03-152-3/+22
| | | | | | | | - Call if_attach(). - Conditionally call bpfattach() based on second function argument. Notes: svn path=/head/; revision=112297
* - Style(9) changes.Matthew N. Dodd2003-03-151-4/+11
| | | | | | | | | - Remove unneeded assignment. - Increment if_oerrors as per if_fddisubr.c. - Wrap ISO code with conditional. Notes: svn path=/head/; revision=112296
* Stray } forgotten by manual merging.Matthew N. Dodd2003-03-151-1/+0
| | | | Notes: svn path=/head/; revision=112295
* - Remove stray ).Matthew N. Dodd2003-03-151-2/+6
| | | | | | | | - Add missing breaks. - Add missing if_noproto++. Notes: svn path=/head/; revision=112294
* One devstat_start_transaction_bio() is enough.Poul-Henning Kamp2003-03-151-7/+0
| | | | Notes: svn path=/head/; revision=112292
* Revert part of 1.37; use bcopy() like if_fddisubr.c.Matthew N. Dodd2003-03-151-3/+1
| | | | Notes: svn path=/head/; revision=112291
* - Increment ifp->if_noproto when appropriate.Matthew N. Dodd2003-03-151-11/+19
| | | | | | | | - Use 'goto dropanyway' when appropriate. - Move dropanyway label out of switch for readability. Notes: svn path=/head/; revision=112289
* Run a revision of the devstat interface:Poul-Henning Kamp2003-03-154-113/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=112288
* Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.Matthew N. Dodd2003-03-151-6/+6
| | | | Notes: svn path=/head/; revision=112287
* - Adopt tests for (IFF_UP|IFF_RUNNING) and non local unicast packetsMatthew N. Dodd2003-03-151-5/+20
| | | | | | | | in promiscuous mode from if_fddisubr.c. - Add comment to reduce diffs. Notes: svn path=/head/; revision=112286
* Add MAC support.Matthew N. Dodd2003-03-151-0/+12
| | | | | | | This is the same code that was added in 1.70 of if_fddisubr.c Notes: svn path=/head/; revision=112285
* Use llc_control rather than llc_snap.control.Matthew N. Dodd2003-03-151-1/+1
| | | | Notes: svn path=/head/; revision=112281
* - Add comment.Matthew N. Dodd2003-03-151-2/+5
| | | | | | | - Whitespace fixes. Notes: svn path=/head/; revision=112280
* Reduce code differences.Matthew N. Dodd2003-03-153-19/+20
| | | | Notes: svn path=/head/; revision=112279
* Use ISO88025_ADDR_LEN where appropriate.Matthew N. Dodd2003-03-151-6/+6
| | | | Notes: svn path=/head/; revision=112278
* Don't use etherbroadcastaddr; use iso88025_broadcastaddr.Matthew N. Dodd2003-03-151-4/+6
| | | | Notes: svn path=/head/; revision=112277
* - Remove definition of senderr() from iso88025.h.Matthew N. Dodd2003-03-153-3/+3
| | | | | | | - Use definition of senderr() from if_ethersubr.c. Notes: svn path=/head/; revision=112276
* Remove duplicate line introduced in the previous commit.Maxim Sobolev2003-03-151-1/+0
| | | | | | | | Submitted by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=112275
* Some whitespace/style/readability changes.Matthew N. Dodd2003-03-151-16/+29
| | | | Notes: svn path=/head/; revision=112274
* Add iso88025_resolvemulti().Matthew N. Dodd2003-03-151-0/+87
| | | | | | | Cribbed from net/if_fddisubr.c Notes: svn path=/head/; revision=112273
* Fix formatting of iso88025_ifattach().Matthew N. Dodd2003-03-151-9/+9
| | | | Notes: svn path=/head/; revision=112272