Commit Graph

448 Commits

Author SHA1 Message Date
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
tsutsui
83a448a377 Include <string.h> for memcpy(3). 2009-03-18 13:24:38 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
skrll
d6c5edc918 Use the new OPT_DDB= %DDB% to add -fno-omit-frame-pointer so that ddb
backtrace will work.
2009-02-15 10:21:10 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
mrg
c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
skrll
76a119fa8f Don't use dev_t now that it's 64bits. 2009-01-22 07:57:17 +00:00
he
d4b1297c8f Re-adapt to the changed return types for major() and minor(). 2009-01-21 16:24:33 +00:00
rtr
ab7669ef5b use PRIu64 format to print major and minor dev_t
from Wojciech Galazka on current-users@
2009-01-15 12:35:13 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
tsutsui
b49b722d36 Create machine and ${MAHCINE_ARCH} symlinks in ${.OBJDIR}
to allow build without DESTDIR.
2009-01-12 07:19:08 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +00:00
ad
93ea4650a6 dumpsys: don't spew numbers into the log. 2008-11-25 15:51:34 +00:00
skrll
5222358697 -#include "opt_modular.h" 2008-11-25 15:50:52 +00:00
skrll
1d28e9aeb0 Add empty module_init_md so that options MODULAR compiles. 2008-11-25 09:43:05 +00:00
ad
6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
skrll
713b171bb9 Return early if size == 0 in ie_gsc_memcopy{in,out} 2008-10-06 15:57:50 +00:00
mjf
f1aa727396 Almost fix capturing audio with harmony(4).
There is a still a bug whereby a chunk of previously recorded data may
appear in the recorded audio file. This goes part way to fixing PR/35239
2008-09-23 14:07:11 +00:00
tsutsui
1a0c6c8f90 Remove advertising clause for UCB in various genassym.cf files,
which were derived from genassym.c in 4.4BSD-Lite2 (or 386BSD).
Closes PR misc/39573.  Approved by martin@.
2008-09-20 18:29:04 +00:00
skrll
28945b3253 Add a comment and whitespace. 2008-09-06 09:45:57 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
skrll
6a21cfdeb4 ANSIfy 2008-08-28 08:25:46 +00:00
tls
fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
skrll
9a6d9381d2 Improve a comment. 2008-08-08 17:23:19 +00:00
simonb
0751ba4bff Add "options WAPBL" to standard GENERIC/INSTALL type configs. 2008-07-31 07:40:59 +00:00
skrll
d2b1f0c9d9 Bump image size to deal with bloat. 2008-07-17 07:01:30 +00:00
skrll
d5a5ca5266 G/C HP700_SOFTINTR_* 2008-07-07 12:29:30 +00:00
skrll
0e6408c2a9 Pull in harmony_round_buffersize fix from OpenBSD. 2008-07-04 11:18:02 +00:00
skrll
f73f03c598 Only process stuff if we're playing. This fixes panic if attempting to
record.

Part of PR/35239.

Progress is being made on getting recording working, but it's not quite
there yet.
2008-07-04 11:14:19 +00:00
ad
b94f79f0e8 Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@. 2008-07-02 17:28:54 +00:00
mjf
9cc4809adb Fix build. 2008-06-14 21:27:37 +00:00
cegger
28f4ebad5e use device_lookup_private to get softc 2008-06-13 09:41:15 +00:00
skrll
e70ef7ac6e Move milli_tiny.S into sys/arch/hp700/stand/common and use in all boot
programs.

This shrinks cdboot to a size that fits into the first 32K of a CD image
again.
2008-06-12 14:08:29 +00:00
skrll
6c70b7790a Move srt0.S into sys/arch/hp700/stand/common 2008-06-12 14:04:53 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
tsutsui
6b0322861b Add options COMPAT_40 to files which have options COMPAT_30. 2008-05-30 20:10:01 +00:00
tsutsui
b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
skrll
06decd2786 Add a cdboot prog.
Derived from OpenBSD.
2008-05-10 19:11:58 +00:00
skrll
a4c3fd710b Fix some debug printfs. 2008-05-10 19:05:59 +00:00
skrll
2932f766a1 Deal with ifconfig lossage.
Looks like I picked the wrong week to quit netbsd.
2008-05-06 15:09:45 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
mjf
24503783b3 device_t/soft_c split 2008-04-25 08:17:52 +00:00