Commit Graph

141259 Commits

Author SHA1 Message Date
macallan 648f3c825b - ansify
- pick some KNF nits
- remove trailing whitespaces
- remove some useless commented out code
2005-11-16 04:25:28 +00:00
uwe 8fbe0d8575 Drop trailing whitespace. 2005-11-16 03:00:23 +00:00
uwe 1cb1ba5ffa Drop trailing whitespace. 2005-11-16 02:15:08 +00:00
uwe 1664ea4ae9 ANSIify function declarations/defintions. Use uint<N>_t.
Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.
2005-11-16 02:13:18 +00:00
uwe ec05898db9 ANSIify. Use uint<N>_t. Drop unnecessary inlcudes.
Declare as static everything we don't need to export.
2005-11-16 02:10:31 +00:00
uwe bcb7ac1eae ANSIify. Declare as static everything we don't need to export. 2005-11-16 01:47:58 +00:00
uwe 901a66afbb ANSIify. 2005-11-16 01:46:44 +00:00
uwe 03fe068a2f ANSIify. Use uint<N>_t. Drop unnecessary includes.
Drop trailing whitespace.
2005-11-16 01:39:27 +00:00
uwe e6942192ef Duplicate open curlies in both #if and #else parts confuse
paren-matching in editors, drop them and add one after #endif.
2005-11-16 01:14:35 +00:00
uwe 3f1973ce02 Drop unnecessary includes and extern declarations.
Declare match/attach routines static.
2005-11-16 01:09:49 +00:00
uwe 60ed1ea4ce ANSIify function declarations/defintions. Use uint<N>_t.
Propagate "static" to function definitions.  Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.
2005-11-16 00:49:02 +00:00
dsl c24781af04 Pass the current process structure to in_pcbconnect() so that it can
pass it to in_pcbbind() so that can allocate a low numbered port
if setsockopt() has been used to set IP_PORTRANGE to IP_PORTRANGE_LOW.
While there, fail in_pcbconnect() if the in_pcbbind() fails - rather
than sending the request out from a port of zero.
This has been largely broken since the socket option was added in 1998.
2005-11-15 18:39:46 +00:00
matt 9b978162a2 Add MPC5200 SVR definition 2005-11-15 18:26:49 +00:00
tsutsui d9a0be54d3 Explicitly enable interrupts before softintr is handled as noted
in the TODO file. At least this fixes "sn0: receive buffers exhausted"
messages on my NEC-JC94.

XXX: does anyone know what "Dont reenable" comment means, which was
XXX: there since initial import of pica (not arc).
2005-11-15 15:07:36 +00:00
tsutsui b7deaff52a Reflect MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV removal. 2005-11-15 15:00:15 +00:00
tsutsui 8a69f0ef96 Remove MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV macro and
use MIPS_INT_MASK_5 and MIPS3_HARD_INT_MASK directly.
They were not used since interrupt service function was
moved from MI mips/trap.c to MD part long ago.
2005-11-15 14:03:20 +00:00
tsutsui 45991188b7 Remove COPY_SIGCODE definition, which is not used anywhere. 2005-11-15 13:45:30 +00:00
tsutsui a452ef42e4 constify 2005-11-15 12:12:21 +00:00
tsutsui c6c355d343 Remove netisr handling from the list since arc has switched to
MI mips softintr.c (though it still uses splhigh()/splx() pair
and maybe it's better to use atomic insns).
2005-11-15 12:09:43 +00:00
jonathan de85711ee1 Correct a performance bug from Bill Paul's original FreeBSD bge(4) driver:
Each call to the FreeBSD bge_start() routine the transmit producer
pointer index from the chip mailbox register BGE_MBX_TX_HOST_PROD0_LO.
The local copy of that value is then updated by bge_encap() as
bge_encap() encapsulates packets in the Tx ring. If bge_encap()
succeds in encpuslating one or more packets, bge_start() tells the
chip to start sending the newly-encinitiates writes the new value back
to the chip mailbox register.

However, comparison of the Linux drivers (Broadcom-supplied and
open-source tg3.c) and to the OpenSolaris driver confirms that
register BGE_MBX_TX_HOST_PROD0_LO is write-only to software.
Thus, we can just keep a copy in the softc, and eliminate the
(expensive) PCI register write on each call to bge_start().

``Make it so''.
2005-11-15 06:05:44 +00:00
yamt 483900aec9 correct base tag of yamt-readahead. 2005-11-15 04:06:57 +00:00
yamt d5f16ffeec add yamt-readahead branch. 2005-11-15 04:06:38 +00:00
uwe 0ec5f35b6c ANSIify. Same code is generated.
While here, collect in one place prototypes that were scattered
throughout the file, apply static to prom_cn* consistently.
2005-11-14 22:48:34 +00:00
uwe ce96890569 Protect all places that refer to _redzone with
#if defined(DEBUG) && !defined(MULTIPROCESSOR)
Makes MULTIPROCESSOR + KGDB compilable.
2005-11-14 21:40:25 +00:00
uwe 76d829a926 Halfhearted attempt to make EXTREME_DEBUG code compile again.
It should probably be just g/c'ed.
2005-11-14 19:55:12 +00:00
uwe 79d0d56355 Make this compile with DEBUG. 2005-11-14 19:33:54 +00:00
uwe 7257cf947e ANSIify. Same binary code is produced for GENERIC.MP + KGDB + DDB. 2005-11-14 19:11:24 +00:00
gdt 9238c3b84d Add (empty) INSTALL.local, parallel to GENERIC.local.
Change INSTALL kernels to include INSTALL.local instead of GENERIC.local.

With this change, one can add IPSEC in GENERIC.local and still build a
release, rather than having install kernels not fit on floppies.

Remaining nit: the PS2 install kernel includes the regular version
config file, and hence GENERIC.local.

(Posted for review on tech-pkg, encouragement to commit by lukem@, no
objections.)
2005-11-14 17:03:05 +00:00
uwe e46d129e48 ANSIify one function I missed in previous. 2005-11-14 16:04:47 +00:00
augustss 88f620ab3d Make it possible to decide endianess dynamically. From port-evbmips/31912
by "Garrett D'Amore" <garrett_damore@tadpole.com>.
2005-11-14 13:40:23 +00:00
skrll 1f381351c3 Don't use DPRINTF for previous. Doh! 2005-11-14 12:07:33 +00:00
skrll 5349e12d67 Dump the error log if we get an IWI_INTR_FATAL_ERROR interrupt. 2005-11-14 11:58:52 +00:00
dillo f05d706e05 Bump version for ``pkg_info -Q against local binary packages'' fix. 2005-11-14 09:41:43 +00:00
dillo b6b652227e Fix first part of PR 32068: pkg_info -Q broken for local binary packages
Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
2005-11-14 09:39:44 +00:00
hamajima 201a955e8e delete unknown options.
change root device to "?".
2005-11-14 05:09:31 +00:00
uwe 684414e729 ANSIify. Same binary code is produced for GENERIC.MP + KGDB + DDB. 2005-11-14 03:30:49 +00:00
uwe 7e29958aa5 Catch up with changes to make this compile for MULTIPROCESSOR.
While here add some #endif comments.
2005-11-14 03:11:38 +00:00
uwe 68bf470949 Catch up with the signature change of obio_find_rom_map.
Add __UNVOLATILE when zc is passed as kgdb ioarg.
2005-11-14 02:52:16 +00:00
itohy 46cdc5bb72 Add missing T:
"T"his product includes software developed by the PocketBSD project
    and its contributors.
2005-11-14 01:57:12 +00:00
lukem 8dfe8b4d24 Update copyright years.
Whitespace tweaks.
2005-11-14 00:04:34 +00:00
dsl c310ecd73c Pull the boot timeout for the boot_params header.
Allows it to be set to a very large number so the boot on Soekris systems
can be interrupted.
2005-11-13 22:23:30 +00:00
agc 2ca444e0bd Get rid of cvs merge botch in previous. 2005-11-13 20:37:23 +00:00
agc d6e9c48326 The Dewey number comparison routines were added by myself in 2002 in
revision 1.32 of pkg_install/lib/str.c, and have absolutely nothing to
do with the original FreeBSD utilities.

Place the appropriate (3 clause) copyright on this file.
2005-11-13 20:07:41 +00:00
wiz 41fb8f4fed Handle -1 return value from dewey_match. 2005-11-13 19:48:35 +00:00
wiz 45be6e647e Do not use errx in dewey_match, return -1 instead. 2005-11-13 19:48:19 +00:00
elad 03e754fd4d The securelevel does not affect whether Veriexec's tables can be modified;
this is now controlled by Veriexec's strict level.
2005-11-13 18:39:53 +00:00
cube 7230395132 Invert the meaning of a comment to match reality. Pointed out by uwe@. 2005-11-13 17:24:31 +00:00
uwe 53ead9a757 G/c arch/sparc/sparc/sys_process.c that has been commented out since
revision 1.1 anyway.
2005-11-13 15:26:48 +00:00
simonb 56d948d99c Switch to the libkern C versions of _insque()/_remque().
Problems building -current and pointers to the libkern versions of
these functions from Izumi Tsutsui.
2005-11-13 12:41:30 +00:00
rpaulo 585daa639d Fix a long standing typo noticed by Alex Pivovarov on PR/32061.
When people use variables like 'flag' and 'flags' in the same function
(one local and one passed as a parameter) this is prone to happen..
2005-11-13 10:47:39 +00:00