Commit Graph

204565 Commits

Author SHA1 Message Date
ahoka
7cc3650740 readd assertions noew with the correct struct
im wondering why the module cflags didnt warn about this obvious typo
2011-08-28 07:22:48 +00:00
dyoung
bdb3e7cbc5 Normalize whitespace. 2011-08-28 06:08:15 +00:00
dyoung
6332563764 Add some code for grovelling in the PCI configuration space for all
of the memory & I/O space reserved by the PCI BIOS for PCI devices
(including bridges) and recording that information for later use.

The code takes between 13k and 50k (depends on the architecture and,
bizarrely, the kernel configuration) so I am going to move it from
pci_machdep.c into its own module on Monday.
2011-08-28 06:04:17 +00:00
dyoung
35fd1a8bbe Replace some anonymous constants with PCI_ constants.
Print debugging information using aprint_debug(9) not aprint_verbose(9)
and be consistent about that.  Get rid of the pciaddrverbose switch for
debugging printfs.

Make 'static' several functions that are private to this module.

Don't test truth of arbitrary integers but compare with 0.  Change
'return (x)' to 'return x'.
2011-08-28 05:32:41 +00:00
dyoung
aa14fb96d7 Make the override implementation more concise. Saves about three lines
of code per routine, makes it more explicit what's going on, and avoids
recursion, though the compiler probably optimized the tail recursion in
the old code.
2011-08-28 04:59:37 +00:00
sjg
09fee58e88 In meta mode, we create .meta files for most targets.
These capture all the interesting data - useful for debugging.
In such cases there is no need to replicate commands in the build log.
Rather than run the entire build .SILENT, allow meta mode to set that flag
per target iff a .meta file is created.
Normal behavior is retained for targets where no .meta file is created,
ensuring that no build data is lost.
2011-08-28 03:54:07 +00:00
joerg
c36a7298be ANSIfy. Add static. Add __dead. 2011-08-28 01:17:47 +00:00
dyoung
bd41bd0d2c Use __strict_weak_alias(). 2011-08-28 00:51:21 +00:00
jmcneill
442b047756 cpu_lwp_trampoline isn't supposed to return, so drop the atexit handler
and drop a panic() at the end of the function
2011-08-28 00:40:10 +00:00
joerg
17834822b6 Mark error() as dead, so that validation for setclipped works correctly. 2011-08-27 23:42:33 +00:00
joerg
c5a7423167 Revert last, assertions on undefined variables don't make sense. 2011-08-27 23:31:12 +00:00
joerg
52e7e4adca ANSIfy 2011-08-27 22:41:35 +00:00
joerg
19f8b044c9 static + __dead 2011-08-27 22:38:48 +00:00
joerg
b71455acb5 Use __dead. Move global variables into function scope. 2011-08-27 22:32:44 +00:00
joerg
42286e2542 Sprinkle const 2011-08-27 22:30:44 +00:00
joerg
8756b97804 static + __dead 2011-08-27 22:22:01 +00:00
joerg
94b1bee225 Mark types as static and usage as dead. 2011-08-27 22:17:53 +00:00
jmcneill
f4f64870fb defflag CPU_DEBUG 2011-08-27 21:43:06 +00:00
reinoud
fd7d55daa3 Catch the atexit() so we can bypass the libc feature that if one ucontext()
ends that it then call exit()
2011-08-27 21:19:17 +00:00
reinoud
8208d1d4bc Add dirty copy of child_return() 2011-08-27 21:17:26 +00:00
reinoud
84c452bbd0 Print when retregs() is called. 2011-08-27 21:16:15 +00:00
reinoud
3ef22b9aa8 Print when the cpu_trampoline is called() 2011-08-27 21:15:07 +00:00
reinoud
08e130c2e0 Add a thunk_atexit() so ucontext() ends can be dealt with as they should 2011-08-27 21:14:15 +00:00
jmcneill
2b1abfc3d9 CPU_DEBUG: remove printf in cpu_signotify, and print pid/lid in cpu_switchto 2011-08-27 20:49:36 +00:00
christos
4d53e32690 one static is enough, otherwise you risk zapping yourself. 2011-08-27 20:49:03 +00:00
martin
b352f73ca9 I suppose mrg did mean to include this change in yesterday commit:
use CFATTACH_DECL_NEW for real.
2011-08-27 20:02:18 +00:00
martin
c5ba0125cf Enhance a panic message slightly 2011-08-27 19:52:22 +00:00
bouyer
166893d482 translate WDOGIOC_GWDOGS 2011-08-27 19:25:35 +00:00
dyoung
581feba28b Straggler from last: add the directory for ppath(3) tests. 2011-08-27 19:02:29 +00:00
joerg
e837071dcc Mark yyerror as static and dead. 2011-08-27 19:01:34 +00:00
joerg
b79356001b static + __dead 2011-08-27 18:57:50 +00:00
joerg
8d4273fcb4 __dead + kill main prototype. 2011-08-27 18:55:58 +00:00
dyoung
dd4d60eb36 Build and install ppath(3) tests. 2011-08-27 18:55:51 +00:00
joerg
bab034bac4 static + __dead 2011-08-27 18:55:21 +00:00
joerg
8bdebf9d52 statc + __dead 2011-08-27 18:54:39 +00:00
dyoung
27dae6f368 Updating setlists for mips64. Thanks Matt Thomas for the heads-up. 2011-08-27 18:54:15 +00:00
joerg
fdbae3b9b7 static + const + __dead 2011-08-27 18:48:59 +00:00
joerg
eccb2789c7 static + __dead 2011-08-27 18:44:44 +00:00
joerg
3fedada239 static + __dead + G/C pathmtu 2011-08-27 18:43:24 +00:00
joerg
c6d7b0bb59 static + __dead 2011-08-27 18:37:41 +00:00
joerg
a919271017 Mark yy_fatal_error as noreturn if supported by the compiler. 2011-08-27 18:36:03 +00:00
joerg
ba5a5a1119 Add new "analyze" command to run clang's static analyzer in a directory
on all C/C++ files.
2011-08-27 18:35:19 +00:00
joerg
f4a68476b9 Ensure __printflike exists. 2011-08-27 18:33:22 +00:00
jmcneill
f6d96679b3 add options DEBUG_EXEC and LOCKDEBUG 2011-08-27 18:13:09 +00:00
reinoud
7c13e88609 Also fix DPRINTF()'s for DEBUG_EXEC 2011-08-27 18:11:48 +00:00
reinoud
14ad4e1152 Fix DPRINTF()'s missing the extra parenteses 2011-08-27 18:07:10 +00:00
reinoud
f40aa5670b Implement trap recursion detection and fix small one-off error in range
checks for kernel space
2011-08-27 18:01:37 +00:00
reinoud
cc12bd9a38 Only return the result of pmap_extract() when the return variable is not NULL. 2011-08-27 17:59:24 +00:00
reinoud
83485a13dd Fix copystring routines to NOT just copy all since not all space might be
writable. This can be fixed by implementing/importing strnlen(3) in the kernel
and/or for NetBSD/usermode to have onfaults in the copyins/copyouts.
2011-08-27 17:57:14 +00:00
reinoud
f64aeb0d94 In execve1(), don't assume VM_MIN_ADDRESS is 0 for PIE executables. 2011-08-27 17:53:21 +00:00