bde
070eb30ca6
Fixed the easy cases of const poisoning in the kernel. Cosmetic.
1996-08-31 16:52:44 +00:00
julian
65b6e7181b
Collect all the functioons concerned with rebooting into one place
...
also add the at_shutdown callout list, and change the one user of
the present (broken) method (the vn driver) to use the new scheme.
1996-08-19 20:07:07 +00:00
gpalmer
86058739b9
Correct a comment. There is no fn `kprintf'
1996-05-09 18:58:06 +00:00
gpalmer
c79cc630ed
Clean up various compiler warnings. Most (if not all) were benign
...
Reviewed by: bde
1996-05-08 04:29:08 +00:00
phk
7bfc0101cb
KGDB is dead. It may come back one day if somebody does it.
1996-05-02 09:34:51 +00:00
jkh
2f862644fc
Bill Fenner <fenner@parc.xerox.com> comes up with a better fix to the
...
debugger_on_panic stuff.
1996-03-25 17:06:34 +00:00
jkh
4d62e1dae8
Ok, now this is correct (even simple fixes sometimes ain't so simple :)
1996-03-23 21:41:00 +00:00
jkh
78a7a152d0
Fix bogus last commit - debugger_on_panic was referenced even when
...
not defined. Another change clearly committed without testing! :-(
1996-03-23 21:23:43 +00:00
phk
d821d19255
Remove all traces of KADB
...
add sysctl
debug.debugger_on_panic: 1
if DDB or KGDB is defined.
Requested by: davidg
1996-03-23 11:31:16 +00:00
gpalmer
1dec7bc8c6
Add a new option: DDB_UNATTENDED. Stops machine dropping into DDB
...
when it panics, but leaving activation of DDB from the console
unaffected.
1996-02-28 21:42:15 +00:00
gibbs
6757073e1c
Kernel printf now returns int.
1996-01-29 03:18:05 +00:00
bde
bdbbbadb36
Restored newline at the end of panic messages.
1996-01-25 00:17:22 +00:00
phk
defff6cc5b
Remove %r hack, we have vprintf() now.
...
Add %D for "dumping" data. Good for ethernet/MAC addresses and such.
Handle 1 < radix < 37.
1996-01-24 20:56:20 +00:00
phk
285a427184
bounds check the radix, just in case.
1996-01-22 13:21:33 +00:00
phk
fd032b69a6
Imake %.*s really work. :-(
1996-01-19 21:05:52 +00:00
phk
02594239cb
Make result of sprintf zero terminated. Fix %r for sprintf case.
1996-01-19 11:38:18 +00:00
phk
1525c6d7bd
Make %.*s work.
1996-01-18 10:23:02 +00:00
phk
80fe9dce33
Add support for %.{int|*}s
1996-01-16 18:08:57 +00:00
phk
c3e6222aa5
Get rid of two and a half printf in the kernel.
...
Add more features to the one remaining to handle the job:
+ signed quantity.
# alternate format
- left padding
* read width as next arg.
n numeric in (argument specified) default radix.
Fix the DDB debugger to use these.
Use vprintf in debug routine in pcvt.
The warnings from gcc may become more wrong and intolerable because
of this.
Warning: I have not checked the entire source for unsupported or
changed constructs, but generally belive that there are only a few.
Suggested by: bde
1996-01-15 22:41:03 +00:00
wollman
39d3a9a3d3
Convert DDB to new-style option.
1996-01-04 21:13:23 +00:00
phk
63ec2c0ae9
A Major staticize sweep. Generates a couple of warnings that I'll deal
...
with later.
A number of unused vars removed.
A number of unused procs removed or #ifdefed.
1995-12-14 08:32:45 +00:00
dg
b4c4ba5932
Killed some gratuitous #include's.
1995-08-24 12:54:11 +00:00
dg
3ed1e41c8e
Woops, I committed the wrong version of the diff in the last rev.
1995-08-07 08:40:49 +00:00
dg
fad46e4f97
Made msgbuf range checking more robust and clean.
1995-08-07 07:58:23 +00:00
dg
f0b49bdd9e
Restore check for msg_bufx being negative. Changed if() expression to be
...
in Lite2 style.
1995-08-06 22:00:17 +00:00
bde
909b527c19
Convert %p to 0x%x instead of to 0x%8x. The latter gives blank padding
...
in the wrong place. Blank padding in the right place or zero padding
would be inconsistent with user mode.
Put case 'p' in alphabetical order.
Implement %p in sprintf() too. I'd like only a single, more complete
printf() core, perhaps one based on vsnprintf().
1995-06-14 07:55:07 +00:00
joerg
2feff74c28
Implement a simple hook (or hack?) to allow graphics device console
...
drivers to protect DDB from being invoked while the console is in
process-controlled (i.e., graphics) mode.
Implement the logic to use this hook from within pcvt. (I'm sure
Søren will do the syscons part RSN).
I've still got one occasion where the system stalled, but my attempts
to trigger the situation artificially resulted int the expected
behaviour. It's hard to track bugs without the console and DDB
available. :-/
1995-04-08 21:32:11 +00:00
joerg
1c0c97a80b
subr_prf.c used to provide an exported function kprintf(), but only had
...
a private declaration for it. Declare the function publically instead.
1995-04-01 20:19:00 +00:00
bde
289f11acb4
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
...
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.
1995-03-16 18:17:34 +00:00
bde
fd0281dbd4
Don't flush the message buffer when it fills up.
1995-02-19 15:02:26 +00:00
bde
927dfdafa7
Print "(null)" instead of "<null>" for NULL string args for consistency
...
with the libc and ddb printf's.
Print "(fmt null)\n" for NULL formats.
1994-12-30 12:17:42 +00:00
dg
d2d47d9034
Make printf() a bit more robust and allow NULL strings (print them as
...
"<null>"). It bad to have diagnostic printfs cause panics when they are
trying to tell you about another problem.
1994-12-28 06:28:34 +00:00
phk
c3e4945541
All of this is cosmetic. prototypes, #includes, printfs and so on. Makes
...
GCC a lot more silent.
1994-10-02 17:35:40 +00:00
phk
ee374e9243
Added a %p to printf & friends, same thing as 0x%08x but more with the
...
potiential to make a warning from gcc more useful.
1994-09-28 19:22:32 +00:00
dg
4d4250da00
1) Changed ddb into a option rather than a pseudo-device (use options DDB
...
in your kernel config now).
2) Added ps ddb function from 1.1.5. Cleaned it up a bit and moved into its
own file.
3) Added \r handing in db_printf.
4) Added missing memory usage stats to statclock().
5) Added dummy function to pseudo_set so it will be emitted if there
are no other pseudo declarations.
1994-08-27 16:14:39 +00:00
dg
9daaac06d0
Made the kernel compile cleanly with gcc 2.6.0. Thanks go to Bruce
...
Evans for suggesting a method to detect various versions of gcc.
1994-08-13 14:21:58 +00:00
dg
8d205697aa
Added $Id$
1994-08-02 07:55:43 +00:00
rgrimes
2469c867a1
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
...
Reviewed by: Rodney W. Grimes
Submitted by: John Dyson and David Greenman
1994-05-25 09:21:21 +00:00
rgrimes
8fb65ce818
BSD 4.4 Lite Kernel Sources
1994-05-24 10:09:53 +00:00