summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Redo the sigio locking.alfred2002-05-0119-115/+42
| | | | | | | | | | | Turn the sigio sx into a mutex. Sigio lock is really only needed to protect interrupts from dereferencing the sigio pointer in an object when the sigio itself is being destroyed. In order to do this in the most unintrusive manner change pgsigio's sigio * argument into a **, that way we can lock internally to the function.
* We don't need no stinkin' echos here.imp2002-05-011-3/+3
| | | | Instead, don't run kldxref if you don't have one on your system.
* Add an epic_stats_update() function (called once per second). Even thoughsemenu2002-05-011-9/+27
| | | | | | | | | | | we don't collect any stats in it, we mii_tick() in it! This fix the bug when autonegotiating fullduplex modes. Also, pause activity before setting TXCON in epic_miibus_statchg(). Though i've never seen problmes from not doing that, the documentation says we need to do it. MFC after: 1 week
* MII_TICK handlers need not restart aneg on these PHYs, they behave prettysemenu2002-05-012-109/+55
| | | | | | | | | | | | well as is, so - just fetch current status upon MII_TICK. Also do IFM_INST verification at the top of *_service() then doing it separately for every case in switch. acphy: do not read MII_ACPHY_DIAG twice, there is nothing latching. qsphy: always fetch actual link status from MII_QSPHY_PCTL. MFC after: 1 week
* Axe unused SESS_UNLOCK_NOSWITCH() and PGRP_UNLOCK_NOSWITCH() macros. Thejhb2002-05-011-4/+0
| | | | MTX_NOSWITCH flag was deprecated a while ago.
* Fix some edge cases where bad string handling could occur.alfred2002-05-011-0/+4
| | | | Submitted by: ps
* cleanup:alfred2002-05-011-37/+46
| | | | fix line wraps, add some comments, fix macro definitions, fix for(;;) loops.
* Connect up kern_envp *before* we use it for getenv() and console probing.peter2002-05-011-7/+14
| | | | | | It is a bit late after that when we have no consoles. :-] Also, fix a comment nit and print a warning about missing metadata.
* Add "CFLAGS+= -I${MAKESRCPATH}" when running under the kernel build,peter2002-05-011-0/+3
| | | | otherwise #include "aicasm.h" etc do not work with gcc-3 and later.
* Enlighten those who read the FINE POINTS of the documentation a bitcjc2002-05-011-2/+6
| | | | | | | | | more on how ipfw(8) deals with tiny fragments. While we're at it, add a quick log message to even let people know we dropped a packet. (Note that the second FINE POINT is somewhat redundant given the first, but since the code is there, leave the docs for it.) MFC after: 1 day
* Remove two unused headers (<machine/frame.h> and <machine/psl.h>).peter2002-05-011-2/+0
| | | | psl.h is 100% bogus to be referenced here, especially from alpha MD code.
* "pointers are not permitted as case values", so force the macros to ints.obrien2002-05-011-2/+2
|
* makeobjops.awk is stricter on syntax than the perl version.obrien2002-05-011-1/+1
|
* Use makeobjops.awk rather than makeobjops.pl.obrien2002-05-013-5/+4
| | | | (with big thanks to Oliver Fromme <olli@fromme.com>)
* Awk version of makeobjops.PL.obrien2002-05-011-0/+485
| | | | | | | Note the invocation ordering is slightly different: awk -f makeobjops.awk foo.m -ch Submitted by: Oliver Fromme <olli@fromme.com>
* Remove the trailing ^M's. makeobjops.awk does not like them.obrien2002-05-013-153/+147
|
* Cosmetic tweaks. Try and keep the style more consistent, catch some straypeter2002-05-012-45/+43
| | | | whitespace and update a comment.
* Zap some stale unused headers, including one machine/psl.h (which ispeter2002-05-011-6/+0
| | | | a stub on alpha). Compile tested on alpha and x86.
* Zap KMODDEPS entries so that people do not wonder why it isn't working onpeter2002-05-013-3/+0
| | | | | | -current. Apolgies to: anhold
* Catch any stray KMODDEPS entries to make sure they do not keep turning up.peter2002-05-011-0/+4
|
* kern_tc.c doesn't use <machine/psl.h>, and having this #include breakspeter2002-05-011-2/+0
| | | | other platforms.
* Remove this Perl script. There have been zero bug reports againstobrien2002-05-011-355/+0
| | | | vnode_if.awk.
* Document the location (in the source tree) of the "Porter's Handbook".mdodd2002-04-301-0/+3
|
* Bump __FreeBSD_version for mtx_init() change.mdodd2002-04-301-1/+1
| | | | | | Document same. Forgotten by: jhb
* Fix a bug where the aacp device would only talk to bus 0 on thescottl2002-04-301-7/+5
| | | | controller.
* Note that the aacp device requires CAMscottl2002-04-301-1/+1
|
* Convert longs to u_longs in stats. This will hold off wrap arounds for ajeff2002-04-302-5/+5
| | | | while longer.
* o Convert the vm_page buckets mutex to a spin lock. (This resolvesalc2002-04-302-14/+12
| | | | | | | an issue on the Alpha platform found by jeff@.) o Simplify vm_page_lookup(). Reviewed by: jhb
* Brucifixion ? Yes, out that door, row on the left, one patch each.phk2002-04-301-87/+101
| | | | Many thanks to: bde
* Brucifixion ? Yes, out that door, row on the left, one patch each.phk2002-04-303-54/+51
|
* Don't export timecounter structures under debug. with sysctl, theyphk2002-04-3015-69/+0
| | | | contain no truly interesting data anymore.
* These are Alexander Kabaev's VFSops fixes (see the thread 'Found: moduledillon2002-04-301-21/+82
| | | | | | | | | | | | | | | | | loading breakage'). The patch fixes serious issues with the VFS operations vector array which results in a crash when a filesystem module adding a new VOP is loaded into the kernel. Basically what was happening before was that the old operations vector was being freed and a new one allocated. The original MALLOC code tended to reuse the same address for the case and so the bug did not rear its ugly head until the new memory subsystem was emplaced. This patch replaces the temporary workaround Dave O'Brien comitted in 1.58. The patch is clean enough that I intend to MFC it to stable at some point. Submitted by: Alexander Kabaev <ak03@gte.com> MFC after: 1 week
* Need more includes.julian2002-04-301-0/+2
|
* Add the myson controllers to LINTjulian2002-04-301-0/+1
| | | | MFC after: 2 weeks
* Add the extra argument to mtx_init()julian2002-04-301-1/+2
|
* Add sigcode.Sbenno2002-04-301-0/+1
|
* Add a new UMA debugging facility. This will overwrite freed memory withjeff2002-04-304-2/+168
| | | | | | | | | | | 0xdeadc0de and then check for it just before memory is handed off as part of a new request. This will catch any post free/pre alloc modification of memory, as well as introduce errors for anything that tries to dereference it as a pointer. This code takes the form of special init, fini, ctor and dtor routines that are specificly used by malloc. It is in a seperate file because additional debugging aids will want to live here as well.
* - Take advantage of the M_ZERO flag that can now be passed to uma_zalloc.arr2002-04-303-15/+4
| | | | - Remove atm_uma_ctor() as the M_ZERO will zero out the memory for us.
* Add ar.lc and ar.ec to the trapframe. These are not saved for syscalls,marcel2002-04-303-345/+922
| | | | | | | | | | | | | | | | | | | | only for exceptions. While adding this to exception_save and exception_restore, it was hard to find a good place to put the instructions. The code sequence was sufficiently arbitrarily ordered that the density was low (roughly 67%). No explicit bundling was used. Thus, I rewrote the functions to optimize for density (close to 80% now), and added explicit bundles and nop instructions. The immediate operand on the nop instruction has been incremented with each instance, to make debugging a bit easier when looking at recurring patterns. Redundant stops have been removed as much as possible. Future optimizations can focus more on performance. A well-placed lfetch can make all the difference here! Also, the FRAME_Fxx defines in frame.h were mostly bogus. FRAME_F10 to FRAME_F15 were copied from FRAME_F9 and still had the same index. We don't use them yet, so nothing was broken.
* Fix udf_read(). Honor the uio_resid when determining the size ofscottl2002-04-301-16/+22
| | | | | | | | | | | the block to read and copy out. This removes the hack in udf_readatoffset() for only reading one block at a time. WooHoo! Remove a redundant test for fragmented fids in both udf_readdir() and udf_lookup(). Add comment to both as to why the test is written the way it is. Add a few more safety checks for brelse(). Thanks to Timothy Shimmin <tes@boing.melbourne.sgi.com> for pointing out these problems.
* Move the implementation of M_ZERO into UMA so that it can be passed tojeff2002-04-303-19/+21
| | | | | | uma_zalloc and friends. Remove this functionality from the malloc wrapper. Document this change in uma.h and adjust variable names in uma_core.
* skibo tells me that that I didn't apply all of his last patch, andimp2002-04-301-1/+1
| | | | | | | | | sent me a replacement patch that fixes the problem. The challenge buffer was not large enough by a factor of 4 (due to my changing the size from 128 to 32, but not u_int8_t to u_int32_t). MFC after: 1 day Submitted by: skibo@pacbell.net
* o Revert vm_fault1() to its original name vm_fault(), eliminating the wrapperalc2002-04-301-16/+11
| | | | that took its place for the purposes of acquiring and releasing Giant.
* Make this work for ski again. Don't call ia64_mca_init() when we'remarcel2002-04-301-11/+10
| | | | in the simulator.
* Include md_var.h. It has the prototype of ia64_running_in_simulator().marcel2002-04-301-0/+1
|
* Remove KTR_EXTEND.marcel2002-04-301-1/+0
|
* Revert the change of #includes in sys/filedesc.h and sys/socketvar.h.tanimura2002-04-3029-146/+211
| | | | | | | | | | Requested by: bde Since locking sigio_lock is usually followed by calling pgsigio(), move the declaration of sigio_lock and the definitions of SIGIO_*() to sys/signalvar.h. While I am here, sort include files alphabetically, where possible.
* Add a new zone flag UMA_ZONE_MTXCLASS. This puts the zone in it's ownjeff2002-04-294-10/+34
| | | | | | | mutex class. Currently this is only used for kmapentzone because kmapents are are potentially allocated when freeing memory. This is not dangerous though because no other allocations will be done while holding the kmapentzone lock.
* - Set the maximum number of device transactions to what the driverps2002-04-291-7/+73
| | | | | | | | | | | | | | | is limiting it to, not what the device says it can handle. - cl_status is an integer. cl_lstatus is a pointer. - Add some debugging code to dump some things the driver knows about the adapter. - Tell CAM that the adapter can handle more commands when a command completes. This fixes the problem were the SIM would freeze once the driver hit the maximum number of transactions for the device. - Change the vendor string to COMPAQ. - Turn of Synchronize Cache for now. It locks the controller up. Approved by: msmith Obtained from: Yahoo!
* We don't need the card_if.h here. It breaks the building of kernelsimp2002-04-291-7/+2
| | | | | with wi but without pccard. Also remove an RCS id that I don't think we need.
OpenPOWER on IntegriCloud