Commit Graph

104513 Commits

Author SHA1 Message Date
perry e4c3c3c99a /*CONTCOND*/ a sizeof comparison 2002-11-02 07:19:51 +00:00
perry 3f03646323 /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:17:31 +00:00
perry 1547f39c5a /*CONTCOND*/ a while (0) macro 2002-11-02 07:15:07 +00:00
perry 7c42625da4 define KERNBASE with a UL -- eliminates 830 or so lines of lint. 2002-11-02 07:09:23 +00:00
perry fa3fedc290 /*ARGSUSED*/ one function -- eliminates 414 lint complaints 2002-11-02 07:07:09 +00:00
enami 0ad4042cc2 ... and fix typos which makes wrong display. 2002-11-02 06:35:30 +00:00
enami a65c9b21f2 Cosmetic changes. 2002-11-02 06:32:10 +00:00
yamt 80fb7e0013 M_ZERO for inline'ed MALLOC. 2002-11-02 06:24:34 +00:00
perry 2bf91ba1e8 environment variables, not environmental variables 2002-11-02 04:13:41 +00:00
thorpej 3d93c95dc8 Make register_t == long long for N32, and == long for everthing else.
Use register_t in label_t.
2002-11-02 02:45:22 +00:00
perry c290830eb1 changed asm()s to __asm()s.
XXX Now, could someone please explain to me why in the love of Bob a
file containing inline x86 assembler is in sys/dev/isa/????
This should be moved, fixed, or nuked from space.
2002-11-02 02:10:56 +00:00
wiz fdc93ee90f Add tag for yesterday's state. 2002-11-02 02:07:43 +00:00
thorpej 3517ae5f6a Define N32/N64 register usage. 2002-11-02 02:00:17 +00:00
mrg c066bc7b3a update to new dkstats.c interface; no changes to how this program works.
pointed out by uwe@ in private email.
2002-11-02 01:59:24 +00:00
perry a0839650fe asm -> __asm 2002-11-02 01:58:51 +00:00
perry 58d2be532d asm volatile -> __asm __volatile 2002-11-02 01:57:31 +00:00
perry 73a1e34586 asm -> __asm 2002-11-02 01:56:14 +00:00
perry ab74747a8d 1) // is only for c99 or gcc
2) inline is acceptable in c99 -- create a new c99 keyword class.

XXX The handling of sflag and Sflag is utterly bogus throughout this
pass. I think I have to make some adjustments.
2002-11-02 01:42:22 +00:00
thorpej 4b17905e0f Add support for "link sets", which are arrays of pointers to objects
gathered together in named sections by the linker.
2002-11-01 22:58:44 +00:00
kristerw 85b746f61a ISO C requires a statement after a label. 2002-11-01 21:46:51 +00:00
jdolecek 60c092247e pckbc_poll_data1(): make sure the loop variable is always initialized
this potential problem found by Krister Walfridsson
2002-11-01 21:39:31 +00:00
jdolecek 6a40f5edcb pipe_read(): initialize ocnt before pipelock() call; it might have been
used unitialized when the pipelock() call would fail
bug found by Krister Walfridsson
2002-11-01 21:34:30 +00:00
jdolecek 20e698bdc1 set nsysent to 512 (oh well, just three syscalls too many for 256) 2002-11-01 21:24:19 +00:00
kristerw 58efa0630e Removed unused variables doclusterread and doclusterwrite. 2002-11-01 21:11:43 +00:00
jdolecek 3b4db9c39d set nsysent to 256 2002-11-01 21:09:52 +00:00
jdolecek 51fb890e3c don't assume intptr_t is 'long', and cast the value appropriately
pointed out by Valeriy E. Ushakov
2002-11-01 20:54:32 +00:00
jdolecek 2cfacee0a0 set nsysent to 256 2002-11-01 20:44:43 +00:00
jdolecek 22ca1fc9f1 set nsysent to 512 2002-11-01 20:32:13 +00:00
jdolecek 8bf8260072 regen: nsysent set to 256 2002-11-01 20:24:23 +00:00
jdolecek 11422af13d nsysent set to 256, and use linux_sys_nosys() 2002-11-01 20:23:23 +00:00
jdolecek d53c88616f add appropriate nsysent, and use linux_sys_nosys as sys_nosys 2002-11-01 20:20:52 +00:00
jdolecek faf637ce78 add appropriate nsysent 2002-11-01 20:20:10 +00:00
jdolecek de9c76a3b0 add appropriate sys_nosys and nsysent (not that it matters here too much) 2002-11-01 20:19:29 +00:00
jdolecek 81d274c850 make compile without DEBUG_MACH 2002-11-01 20:04:40 +00:00
jdolecek e608322a28 regen: bump nsysent to nearest p-o-2 (256) 2002-11-01 19:30:28 +00:00
jdolecek a0d3a3c03f bump nsysent to nearest p-o-2 2002-11-01 19:29:21 +00:00
jdolecek 2a9e0afa92 set emul_netbsd's e_nsysent to SYS_NSYSENT, not SYS_MAXSYSCALL 2002-11-01 19:27:05 +00:00
jdolecek 1524c4bf08 set struct emul's nsysent to compat SYS_NSYSENT, not SYS_MAXSYSCALL 2002-11-01 19:26:21 +00:00
thorpej 64a5da6461 Revise previous to xstrdup the basename earlier; an intervening call to
basename() was occurring.

Pointed out by Matthias Drochner.
2002-11-01 16:07:37 +00:00
simonb b9c304a9e0 Pass all three mib items to a sysctl in dkreadstats().
Use the new kernel sysctl sizing code to calculate the number of drives.
2002-11-01 15:23:06 +00:00
simonb 307ae1b2e5 When calculating the space needed for the data, use the supplied
userland structure size (if passed in).
Use the supplied userland structure size (if passed in) to check if
there is enough room to copyout the next structure.
2002-11-01 15:20:03 +00:00
simonb c79652b287 Print a newline between lines in -x mode. 2002-11-01 14:02:21 +00:00
mrg 8674f67cf9 note separate r/w disk stats changes. 2002-11-01 12:55:23 +00:00
mrg 514174fe75 disk_unbusy() change -> NetBSD 1.6K. 2002-11-01 12:49:47 +00:00
mrg 3cf4c73d05 iostat(8) and systat(8) support for separate read/write disk statistics.
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics.  "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
mrg 603098b9b5 implement separate read/write disk statistics:
- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.
2002-11-01 11:31:50 +00:00
jdolecek c28aaab16a don't assume intptr_t is 'long', and cast the value appropriately 2002-11-01 09:49:47 +00:00
simonb 6971634c5e Destroy "ioext" as well as "memext" when we're done with it. 2002-11-01 09:16:28 +00:00
enami d1c7d5dcae Cope with intr.h of rev. 1.29 to prevent panic when DEBUG is defined;
since splsched() now raises system priority level just to IPL_SCHED,
we can't assert that current priority level is IPL_HIGH on cpu_switch.
2002-11-01 06:06:17 +00:00
enami 68c7a9fc3f Pass an argument to panic() correctly. 2002-11-01 05:49:01 +00:00