Commit Graph

104498 Commits

Author SHA1 Message Date
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
simonb
3338dd4bd0 Fix fallout from gehenna-devsw merge. 2002-11-01 05:47:23 +00:00
enami
fc1c4219ef Make this works with QUEUEDEBUG defined; don't use queue pointer after
removing an element from queue.
2002-11-01 03:34:07 +00:00
enami
5eec77bccd Cosmetic changes. 2002-11-01 03:32:21 +00:00
fvdl
4244ef3b22 For INTERLOCK_ACQUIRE, s/splsched/spllock/. 2002-11-01 01:13:32 +00:00
fvdl
5fca9b943c Make splsched == splclock, and splserial > splsched. Unfortunately,
we have to retain the 'pick unlocked interrupt handler' hack for
the MP case for now.
2002-11-01 01:12:43 +00:00
matt
71416f6690 In struct emul, e_nsysent is *not* initialized to *SYS_NSYSENT but
*SYS_MAXSYSCALL.  Adjust to this and simply compare 'code' to it instead
of doing the p-o-2 dance.
2002-11-01 00:02:40 +00:00
thorpej
f8b18efd0c xstrdup the return value of basename() before recording it in the bfd
with bfd_elf_set_dt_needed_soname().  Fixes the "NEEDED crtend.o"
problem reported on tech-toolchain/current-users.

Problem spotted by Ryo HAYASAKA <ryoh@jaist.ac.jp>.
2002-10-31 23:21:17 +00:00
itojun
8b5e86873c typo, reported by avsm@openbsd 2002-10-31 23:01:27 +00:00
jdolecek
f7d9e82965 constify trap_type[] 2002-10-31 22:32:40 +00:00
jdolecek
b56a7c4e6b update trap_type[] according to include/trap.h contents 2002-10-31 22:24:42 +00:00
matt
8b4993db5d Convert to register prefixes. Use ANSI string concatenation for
multiline asm strings.
2002-10-31 21:31:08 +00:00
matt
01ba93bc3c Convert to register prefixes. 2002-10-31 20:23:25 +00:00
itojun
ad337ee31a plug a memory leak. from sam leffler. sync w/kame 2002-10-31 17:36:16 +00:00
wrstuden
5b0a9938fd Use signed char to replace int8_t, not just char. Should fix macppc
cross-build problems introduced in rev 1.59.

Pointed out by Valeriy E. Ushakov uwe at ptc dot spbu dot ru on
tech-toolchain.
2002-10-31 17:14:46 +00:00
wiz
471dfb05bc regen (veriexec). 2002-10-31 15:35:28 +00:00