summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* First pass of style(9) for #define's.obrien2002-05-1415-1677/+1677
|
* BDE and I have had a chance to hash this out:imp2002-05-131-5/+5
| | | | | | | o Use splnet() instead of splclock(). o Use splnet() instead of splimp(). Reviewed by: bde
* Align CLEANFILES with revision 1.25 changes.ru2002-05-132-2/+2
|
* Fixed CLEANFILES after bsd.lib.mk sweep.ru2002-05-132-2/+2
|
* Fixed a semantic error. va_arg(ap, u_short) is nonsense except on i386'sbde2002-05-132-10/+10
| | | | | | | | with 16-bit ints, since u_short is promoted when it is passed to a varargs function. gcc now warns about this. We always pass small integers (this is well obuscated), so there are no conversion problems. Fixed a related style bug (bogus cast).
* Don't include <stddef.h> "For offsetof". This is not even wrong inbde2002-05-131-2/+0
| | | | | | | | | -current, since offsetof() is defined a header under /sys so that system sources don't need to have this wrong include. This bug was only detected because my version of <stddef.h> has some spelling fixes (s/field/member/g) and gcc is now sensitive to the spelling of arg names in macros as required by standards (ISO C90 6.8.3...).
* Fixed syntax errors (tokens after #endif).bde2002-05-138-45/+45
|
* Fixed syntax errors (garbage after #endif; just editing errors in thisbde2002-05-132-8/+8
| | | | | | case). These errors and related style bugs swere cloned from ufs shortly after they were committed to ufs. They were mostly fixed in ufs long ago.
* Fixed a syntax error (a label not followed by a statement).bde2002-05-132-2/+2
|
* Removed now unused INTERNALSTATICLIB.ru2002-05-136-17/+0
| | | | | INTERNALLIB now implies NOPIC and NOPROFILE. Removed gratuitous NOMAN.
* Major cleanup of bsd.lib.mk.ru2002-05-134-16/+0
| | | | | | | Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB. INTERNALLIB now means to build static library only and don't install anything. Added a NOINSTALLLIB knob for libpam/modules. To not build any library at all, just do not set LIB.
* Add ipfw hooks to ether_demux() and ether_output_frame().luigi2002-05-133-5/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ipfw processing of frames at layer 2 can be enabled by the sysctl variable net.link.ether.ipfw=1 Consider this feature experimental, because right now, the firewall is invoked in the places indicated below, and controlled by the sysctl variables listed on the right. As a consequence, a packet can be filtered from 1 to 4 times depending on the path it follows, which might make a ruleset a bit hard to follow. I will add an ipfw option to tell if we want a given rule to apply to ether_demux() and ether_output_frame(), but we have run out of flags in the struct ip_fw so i need to think a bit on how to implement this. to upper layers | | +----------->-----------+ ^ V [ip_input] [ip_output] net.inet.ip.fw.enable=1 | | ^ V [ether_demux] [ether_output_frame] net.link.ether.ipfw=1 | | +->- [bdg_forward]-->---+ net.link.ether.bridge_ipfw=1 ^ V | | to devices
* style(9) changes before further editing that region:joerg2002-05-132-12/+14
| | | | | . add unnecessary parenthesis around return values . put body of an "if" statement onto a line of its own
* Remove custom definitions (IP_FW_TCPF_SYN etc.) of TCP header flagsluigi2002-05-132-12/+1
| | | | which are the same as the original ones (TH_SYN etc.)
* Remove register keyword.phk2002-05-1313-127/+127
| | | | | Sponsored by: DARPA & NAI Labs. Submitted by: mckusick
* Build the fpu support routines.benno2002-05-131-0/+1
|
* FPU support.benno2002-05-139-221/+219
| | | | Obtained from: NetBSD (portions)
* Bump for GCC 3.1.obrien2002-05-131-1/+1
|
* Match the default newfs UFS block size.obrien2002-05-131-1/+1
|
* Don't call the uz free function while the zone lock is held. This can leadjeff2002-05-131-14/+21
| | | | | to lock order reversals. uma_reclaim now builds a list of freeable slabs and then unlocks the zones to do all of the frees.
* s/_ALPHA_/_MACHINE_/marcel2002-05-131-1/+1
|
* Remove reference to the "Alpha Calling Standard".marcel2002-05-131-13/+0
|
* Remove the hash_free() lock order reversal. This could have happened forjeff2002-05-131-69/+72
| | | | | | several reasons before. Fixing it involved restructuring the generic hash code to require calling code to handle locking, unlocking, and freeing hashes on error conditions.
* Fix IF_SEXT(val, 32). The constants need to have type long tojake2002-05-131-1/+2
| | | | handle size > 16.
* These were repo-copied to dump_machdep.c.jake2002-05-133-538/+0
|
* ${MACHINE_ARCH}dump.c -> dump_machdep.c.jake2002-05-133-3/+3
|
* Add another copy of the ia64 dump_machdep.c.jake2002-05-131-0/+299
|
* Remove two "register" and a blank line.phk2002-05-121-3/+2
| | | | | Submitted by: mckusick Sponsored by: DARPA & NAI Labs.
* Retire the bogus uses of the disklabel field d_sbsize and begin tophk2002-05-125-11/+4
| | | | | | | initialize it to zero so we don't have to have everbody and their aunt including FFS specific header files. Sponsored by: DARPA & NAI Labs.
* Add code to match MAC header fields (at the moment supported onluigi2002-05-121-62/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bridged packets only, soon to come also for packets on ordinary ether_input() and ether_output() paths. The syntax is ipfw add <action> MAC dst src type where dst and src can be "any" or a MAC address optionallyfollowed by a mask, e.g. 10:20:30:40:50 10:20:30:40:50/32 10:20:30:40:50&ff:ff:ff:f0:ff:0f and type can be a single ethernet type, a range, or a type followed by a mask (values are always in hexadecimal) e.g. 0800 0800-0806 0800/8 0800&03ff Note, I am still uncertain on what is the best format for inputting these values, having the values in hexadecimal is convenient in most cases but can be confusing sometimes. Suggestions welcome. Implement suggestion from PR 37778 to allow "not me" on destination and source IP. The code in the PR was slightly wrong and interfered with the normal handling of IP addresses. This version hopefully is correct. Minor cleanup of the code, in some places moving the indentation to 4 spaces because the code was becoming too deep. Eventually, in a separate commit, I will move the whole file to 4 space indent.
* ARGH! SBLOCK is not unused. Try to get this right.phk2002-05-127-7/+14
| | | | | | | | BBSIZE belongs in <sys/disklabel.h> (but shouldn't be a constant). Define SBLOCK again, using the right math. Sponsored by: DARPA & NAI Labs.
* Remove #define for BBOFF, it is assumed == 0 so many places that we mightphk2002-05-123-6/+3
| | | | | | | as well forget about it. In fact the only thing which used it was the SBOFF macro. Sponsored by: DARPA & NAI Labs.
* Remove unused BBLOCK and SBLOCK #defines.phk2002-05-123-6/+0
| | | | Sponsored by: DARPA & NAI Labs.
* o Remove GIANT_REQUIRED and an excessive number of blank linesalc2002-05-121-10/+0
| | | | | from vm_map_inherit(). (minherit() need not acquire Giant anymore.)
* Fix alpha build. The alpha has dumpsys implemented.marcel2002-05-121-1/+1
| | | | | | | While here, revert the condition to list the machines for which dumpsys has not been implemented. Reported by: wilko
* Enable KTR_TRAP by default.jake2002-05-121-1/+1
|
* Hide the fd autoselection messages behind the bootverbose case so theyjoerg2002-05-122-6/+10
| | | | stop bothering people on their consoles.
* Translated -malign-functions=4 to -falign-functions=16 for the new gcc.bde2002-05-121-1/+1
|
* Saved 176 bytes by compiling with -fno-guess-branch-probability. Thebde2002-05-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | default of -fguess-branch-probablility causes time optimizations (?) like rewriting `if (foo) x++;' as `if (!foo) goto forth; back: ; ...; forth: x++; goto back;". This is pessimizes space especially well on i386's because one short branch gets converted to 2 long ones. Removed -fno-align-foo since it is implied by -Os. Previous commit messages seem to have overstated the new alignment bugs in gcc. The only case that affects boot2 is that -fno-align-functions (or equivalently -falign-functions=1) actually gives -falign-functions=2. This is caused by FUNCTION_BOUNDARY being 2 (bytes) instead of 1. The default case where the optimization level is 1 and no alignment options are given is more broken. All alignments are minimal, modulo the bug in FUNCTION_BOUNDARY. This is caused by toplev.c setting defaults too early. Some hacks in previous commits ar not needed now, but may as well be kept until gcc is fixed. The previous on in the Makefile saved 96 bytes of text due to the wrong FUNCTION_BOUNDARY and 32 bytes of data due to unrelated bloat in the alignment of large objects. There aren't even any options to control alignment of data.
* Increase the PIO timeout to approximately the value it used to havejoerg2002-05-124-30/+76
| | | | | | | | | | | | before rev 1.229 (~ 100 ms). According to bde, some (old) broken hardware could require it. In order to make timing more accurate than what could be achieved with a loop around DELAY(1), increase loop timing after the initial ~ 1 ms. Also, move the declaration of FDSTS_TIMEOUT out from fdreg.h into fd.c where it actually belongs to. MFC after: 2 days
* Recent zlib does not like Z_FLUSH at the end of inflate().ume2002-05-121-4/+7
| | | | | | | Reported by: quak@mydiax.ch Obtained from: KAME MFC after: 2 days and approved by re
* Back out last commit. I expect our bsd.*.mk gods to remove the need forobrien2002-05-1210-0/+27
| | | | | defining so many extra things in addition to INTERNALLIB. We don't like repetitive C code and we shouldn't for make code either.
* More locking fixes.benno2002-05-122-6/+26
|
* Do the correct locking on processes for DSI and ISI traps.benno2002-05-122-0/+20
| | | | Copied from: sparc64
* o Rename ia64_count_aps to ia64_count_cpus and reimplement themarcel2002-05-126-56/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function to return the total number of CPUs and not the highest CPU id. o Define mp_maxid based on the minimum of the actual number of CPUs in the system and MAXCPU. o In cpu_mp_add, when the CPU id of the CPU we're trying to add is larger than mp_maxid, don't add the CPU. Formerly this was based on MAXCPU. Don't count CPUs when we add them. We already know how many CPUs exist. o Replace MAXCPU with mp_maxid when used in loops that iterate over the id space. This avoids a couple of useless iterations. o In cpu_mp_unleash, use the number of CPUs to determine if we need to launch the CPUs. o Remove mp_hardware as it's not used anymore. o Move the IPI vector array from mp_machdep.c to sal.c. We use the array as a centralized place to collect vector assignments. Note that we still assign vectors to SMP specific IPIs in non-SMP configurations. Rename the array from mp_ipi_vector to ipi_vector. o Add IPI_MCA_RENDEZ and IPI_MCA_CMCV. These are used by MCA. Note that IPI_MCA_CMCV is not SMP specific. o Initialize the ipi_vector array so that we place the IPIs in sensible priority classes. The classes are relative to where the AP wake-up vector is located to guarantee that it's the highest priority (external) interrupt. Class assignment is as follows: class IPI notes x AP wake-up (normally x=15) x-1 MCA rendezvous x-2 AST, Rendezvous, stop x-3 CMCV, test
* o Acquire and release Giant in vm_object_reference() andalc2002-05-122-11/+9
| | | | | | | | | vm_object_deallocate(), replacing the assertion GIANT_REQUIRED. o Remove GIANT_REQUIRED from vm_map_protect() and vm_map_simplify_entry(). o Acquire and release Giant around vm_map_protect()'s call to pmap_protect(). Altogether, these changes eliminate the need for mprotect() to acquire and release Giant.
* Update the PCI table as per Dell's fickleness.scottl2002-05-121-2/+2
| | | | MFC after: 3 days
* s/demon/daemon/dd2002-05-122-3/+3
|
* Remove some duplicate types that should have been removed as part ofmike2002-05-111-40/+0
| | | | | | the rearranging in the previous revision. Pointy hat to: cvs update (merging), mike (for not noticing)
* Attempt to not crash and burn on UltraSPARC III machines; the cpuid propertyjake2002-05-111-1/+2
| | | | is named differently.
OpenPOWER on IntegriCloud