pooka
63ee3d24ed
Remove unused macro definition (the NetBSD version would just not go
...
through a compiler).
2010-01-18 20:45:12 +00:00
christos
081c24c702
PR/42637: Joachim Kuebart: Shell tab completion crashes due to libedit stack
...
smashing
2010-01-18 19:17:42 +00:00
pooka
d305920d2d
nuke unused bpf inclusions
2010-01-18 19:00:58 +00:00
pooka
8052f8db95
Remove conditional inclusion of unused bpf.h
2010-01-18 18:52:35 +00:00
jruoho
f4cdb6678e
Fix and improve several comments.
2010-01-18 18:49:27 +00:00
jruoho
e5a9d901c0
Use acpi_eval_reference_handle() to simplify code. No functional change.
...
ok jmcneill@, pgoyette@
2010-01-18 18:36:49 +00:00
pooka
c109162bd9
Pass correct pointer to bpf_mtap() and most likely avoid a crash
...
if bpf is activated.
not even compile-tested, since i can't find any config in the tree
which uses this(?)
2010-01-18 18:23:53 +00:00
pooka
4be5171ee2
Fix bpf. compile-tested only.
2010-01-18 18:14:43 +00:00
jdc
8427f80fba
Add definitions for CAS_INTR_REG and CAS_INTR_PCI.
2010-01-18 18:09:22 +00:00
jruoho
81e1657ee2
Introduce acpi_eval_reference_handle() --
...
an utility function to evaluate reference handles from package elements.
ok jmcneill@, pgoyette@
2010-01-18 18:06:31 +00:00
pooka
431bb6c50c
if_ade doesn't build, suggesting nobody has tried to do anything
...
else than rototill it for the past n+1 years. The comments at the
top note a number of clauses after which it can be removed. I'm
sure that in the past 10+ years those have either been met or become
irrelevant, so remove this.
2010-01-18 17:53:35 +00:00
jruoho
8391833e8a
Ensure that the return string is NUL-terminated in acpi_eval_string().
...
ok jmcneill@, pgoyette@
2010-01-18 17:34:37 +00:00
jruoho
91262361ae
Add definitions for volume keys.
...
ok jmcneill@
2010-01-18 17:11:00 +00:00
ahoka
f582d2426d
Add examples to make switching wscons to ISO 8859-2 as easy as removing
...
some hashmarks.
2010-01-18 17:10:29 +00:00
jruoho
517e16fb9b
Fix a minor bug where a reference handle is used for error reporting even
...
though it may not be present. While here, convert few lines to aprint_*().
ok pgoyette@
2010-01-18 17:09:17 +00:00
ahoka
a764af8493
Add the new latin2 fonts for wscons to the file list.
2010-01-18 16:57:39 +00:00
ahoka
3e4bec4b5a
Add font files for latin-2 (ISO 8859-2) encoding. Loading these fonts will
...
enable wscons to read texts in central european languages, eg. HU or CZ.
From FreeBSD.
2010-01-18 16:55:36 +00:00
jruoho
25608cae55
regen.
2010-01-18 16:50:08 +00:00
pooka
aeedd94c9a
include ISDN support
2010-01-18 16:43:15 +00:00
rmind
b6c2588582
x86_cpu_topology, not toplogy.
2010-01-18 16:40:17 +00:00
pooka
4798b5bf9f
Nuke some debug print code which has never compiled in NetBSD.
2010-01-18 16:37:41 +00:00
jruoho
71c4a74b58
Add some ACPI 4.0 devices.
...
ok jmcneill@, pgoyette@
2010-01-18 16:34:47 +00:00
pooka
83c8bf52c8
Don't freak out if a kernel config already has I4B_MBUF_DEBUG
2010-01-18 16:29:51 +00:00
jdc
b417193411
Add a note about the RSC ports on the E250.
...
Bump date.
Remove trailing whitespace.
s;Sun Ultra 5/10;.Tn Sun Ultra;
2010-01-18 15:55:11 +00:00
wiz
04ed6a9ef0
Use Dv for defined values.
2010-01-18 15:36:11 +00:00
skrll
103d303e8d
Various improvements to bring closer to reality. Mostly from OpenBSD.
...
More improvements possible / probable.
2010-01-18 15:25:52 +00:00
jdc
568b4a7807
Add RSC ports (ttyh2, ttyh3) to all_md.
2010-01-18 10:35:18 +00:00
plunky
2ad83ccc31
also clean up NetBSD.dist.tmp as if a second build is done without the
...
NetBSD.dist changing, the tmp file will remain.
2010-01-18 10:25:29 +00:00
jdc
2cdec76aad
Re-do the previous check for the RSC console:
...
Do the check in sabtty_console_flags() and set a flag if we are an RSC port.
If we are an RSC port, note that the baud rate is 115200, but don't write a
new value to the baud rate generator register, as this stops the console
working.
2010-01-18 09:58:20 +00:00
christos
e684a7b22f
check if i is in range before using it.
2010-01-18 04:53:10 +00:00
pooka
b99665a360
Nuke "ummmm" quality macro. It's outside __NetBSD__, so not
...
functional change, but some C parsers that don't know which cpp
macros are defined fall and hurt themselves quite badly with it.
2010-01-18 01:51:25 +00:00
wiz
64e964907b
Close file handle after using it. Found by cppcheck.
2010-01-17 23:17:08 +00:00
wiz
f9884f518a
Free malloc()ed buffer in error case. Found by cppcheck.
2010-01-17 23:13:32 +00:00
wiz
62523e18d5
Close file handles in error cases. Found by cppcheck.
2010-01-17 23:12:30 +00:00
wiz
ccf859cb7b
Close file handle in error case. Found by cppcheck.
2010-01-17 23:10:20 +00:00
wiz
7bd4f0a241
Close log file handle after using it. Found by cppcheck.
2010-01-17 23:09:02 +00:00
wiz
15989318ee
Close file handle after using it. Found by cppcheck.
2010-01-17 23:06:31 +00:00
wiz
e15635055f
Free strdeupped string after using it. Found by cppcheck.
2010-01-17 23:03:01 +00:00
wiz
44e3b1fff7
Close file handles after using them. Found by cppcheck.
2010-01-17 23:02:48 +00:00
wiz
4c5d0b1878
Close file when finished with it. Found by cppcheck.
2010-01-17 22:56:32 +00:00
wiz
32b30fe688
Simplify alloc() to avoid ifdef(LINT) workaround.
2010-01-17 22:55:20 +00:00
wiz
8c6dae0be9
Close two file descriptors after using them. Found by cppcheck.
2010-01-17 22:52:00 +00:00
wiz
7d9fce090d
Only a return value below 0 denotes an error in open(2). Found by cppcheck.
2010-01-17 22:48:50 +00:00
wiz
af7d8656df
Close file when finished with it. Found by cppcheck.
2010-01-17 22:47:18 +00:00
wiz
bfc69b9f22
Add missing parentheses in ifdef(OLD_LEXER). Found by cppcheck.
2010-01-17 22:42:36 +00:00
dsl
7ed12d4ce0
Fix 'fault on load of %gs during retirn to userspace' to look for the
...
correct instruction bytes.
Take the 'fault on load segment register' through the same path as 'fault
on iret' so we don't have to fixup the broken stackframe that contains a
mix of user and kernel registers,
Update comments about how the faults during return to userspace are processed.
Setting an invalid %gs in the saved context of a signal handler causes
a SIGSEGV handler to be entered with what look like valid registers.
2010-01-17 22:21:18 +00:00
pooka
64da563d90
Forward declare struct bpf_if and use that as the type for bpf_if
...
instead of "void *". Buys us oo times the type-safety for 0 times
the price.
(no functional change)
2010-01-17 19:45:06 +00:00
drochner
d0d86c817a
fix tyop in default flag definition
2010-01-17 17:02:47 +00:00
phx
f189752c2a
Heed modeldata.ranges_offset while constructing the ranges bitmap.
2010-01-17 16:47:17 +00:00
tsutsui
15c20a62b3
Make sure to set ZS_HWFLAG_USE_CONSDEV and zs_consdev into zsc_args
...
passed to child devices even in !(NWSKBD == 0) case so that zs console
functions are actually used rather than the default prom console.
Fixes stray interrupts on MP machines running GENERIC.MP kernel with
zs serial console.
Ok'ed by mrg@.
2010-01-17 16:23:43 +00:00