Commit Graph

89774 Commits

Author SHA1 Message Date
plunky
2e43d32311 fix typo : -> ; 2007-10-02 05:53:47 +00:00
junyoung
24ae586ea3 Use __packed rather than __attribute__ ((__packed__)). 2007-10-02 05:40:10 +00:00
plunky
0327efae31 clean up activate function 2007-10-02 05:38:06 +00:00
plunky
41358e9b10 remove unused activate function 2007-10-02 05:37:50 +00:00
pooka
c562677131 If kernel resource allocation fails after the file server has
committed something, issue an abort.  The abort is done through
the regular op channel, e.g. failed mkdir leads to regular rmdir,
inactive and reclaim.  No internal interface is planned currently
for the one file system out of a million which would implement it
to benefit from the one case in a billion where kernel resource
allocation actually does fail and out of that one case in a trillion
where internal vs. external would make a difference.
2007-10-02 01:17:17 +00:00
ad
b58e305699 Enter mi_switch() from the idle loop if ci_want_resched is set. If there
are no jobs to run it will clear it while under lock. Should fix idle.
2007-10-01 22:14:23 +00:00
martin
cadfc6aaa0 No need to db_init_commands() early any more - it will happen on first
entry to ddb.
2007-10-01 22:05:15 +00:00
martin
463076317b Special case the initialization of builtin command tables to avoid using
malloc. Fixes PR kern/37042.
Allow "mach" commands registered by LKMs even if there is no builtin
mach command for the arch.
2007-10-01 22:01:38 +00:00
ad
3bf03448f0 Make want_resched a member of cpu_info. 2007-10-01 21:26:03 +00:00
ad
6299e033fb ci_need_resched -> ci_want_resched 2007-10-01 21:23:02 +00:00
ad
f5abbe2621 Fix inverted tests. VT switching works again. 2007-10-01 21:18:18 +00:00
pooka
47cf5226f9 * better error checking: validate error values received from userland
to be vaild errno values
* include string describing error in PUFFS_ERR
* get rid of union in puffs_req, it's nothing but trouble
* pass pmp to async i/o callbacks
2007-10-01 21:09:07 +00:00
ad
a06455d0e5 Now that the bootblocks are the same, share loadfile_machdep.h between
amd64 and i386.
2007-10-01 20:31:41 +00:00
bouyer
511e912cd0 When checking for invalid b_resid valyes, also check negative ones.
Should fix kern/36690.
2007-10-01 18:43:30 +00:00
bouyer
8d743383a3 Properly initialize xs_callout in sddump(). We're using a static scsipi_xfer
here which didn't get through scsipi_get_xs().
Pointed out by Greg Oster.
2007-10-01 18:16:05 +00:00
martin
464d49ce18 printf -> DPRINTF 2007-10-01 14:18:52 +00:00
martin
da0f1debda Turn a few printf into DPRINTF 2007-10-01 14:17:34 +00:00
martin
db90818494 Make a few debug outputs only happen when debugging. 2007-10-01 13:15:06 +00:00
martin
c51526f373 Back out accidently commited part of previous 2007-10-01 12:54:39 +00:00
martin
163215473e Do not stop callouts for polled commands. 2007-10-01 09:43:00 +00:00
martin
594ab8c151 No need to cast the size argument of the dump function to "int" - make
it size_t instead. Pointed out by Chris Ross.
2007-10-01 09:15:46 +00:00
martin
7c4a68e67a Fix printf format. 2007-10-01 09:13:51 +00:00
martin
2e57b74770 On second thought: a valid mapping is a valid mapping, period.
No need to special case the kernel pmap here.
2007-10-01 08:53:35 +00:00
martin
ed85693634 Fix printf format string for 32bit builds - pointed out by Kurt S.
on current-users.
2007-09-30 23:24:56 +00:00
joerg
c77ff03fed The ACPI SCI override is relative to the Source of the MADT entry,
so use bus_pin for the comparision. Tested by reinoud@.
2007-09-30 19:08:17 +00:00
martin
898738b834 Cosmetics - improve the countdown while doing a crashdump.
XXX - need to add an ascii version of the game of life here someday.
2007-09-30 13:56:02 +00:00
martin
8841effc73 Add support to pmap_extract() for kernal mappings with PA 0. 2007-09-30 13:54:00 +00:00
tsutsui
3f7bc8fd0c - make this compile with #ifdef DEBUG
- use proper casts
2007-09-30 12:30:09 +00:00
tsutsui
4eef001c09 Use unsigned values for device addresses. 2007-09-30 12:29:01 +00:00
tsutsui
d98c049230 Remove local extiobase declarations, which is in <machine/cpu.h>. 2007-09-30 12:25:51 +00:00
tsutsui
9d9852b4ba Make this compile with #ifdef DEBUG. 2007-09-30 12:24:48 +00:00
martin
7cd933d009 When calculating memory sizes and related values for kernel dumps,
consistently use uint64_t. Fixes crash dumps on machines with > 2GB
memory. Found by Chris Ross.
While there, remove a #if 0'd part of code that prevented the first
physical memory page to be dumped - I'll solve that differently.
2007-09-30 12:06:14 +00:00
martin
eb9963a5e5 Do not stop callouts on polled commands. Problem noticed by Chris Ross
when trying to do a kernel dump on sparc64.
Approved by Manuel Bouyer.
2007-09-30 11:59:41 +00:00
he
525420f3c8 Remove a now-unused local variable. 2007-09-30 10:35:16 +00:00
kiyohara
09fa5a563a Add bcsp(4). However, it is debuging state. 2007-09-30 04:07:41 +00:00
martin
cc47bef689 Enable booting from news Solaris ufs partitions. 2007-09-29 21:43:52 +00:00
martin
aa444a36a0 When compiled with COMPAT_SOLARIS_UFS, always calculate fs_qbmask and
fs_qfmask on the fly. This allows libsa to read newer Solaris ufs
filesystems (which have a slightly incompatible superblock).
Suggested by Antti Kantee when discussing PR kern/37000.
2007-09-29 21:36:56 +00:00
pooka
c82fd73eb8 kill trailing whitespace 2007-09-29 20:17:36 +00:00
scw
851609250e s/NPBFILTER/NBPFILTER/
Compile-tested only.
2007-09-29 18:44:51 +00:00
scw
7385793c3a s/NPBFILTER/NBPFILTER/ in #endif comment. No functional change. 2007-09-29 18:33:51 +00:00
scw
eeb9826d3b s/NPBFILTER/NBPFILTER/ in some #endif comments. No functional change. 2007-09-29 18:32:50 +00:00
scw
35b1297a77 - Fix bpf radiotap: s/NPBFILTER/NBPFILTER/
- In rt2661_set_chan(), handle the case where there is no previous channel.
  (Can happen if we go directly to monitor mode before UP'ing the i/f)
2007-09-29 18:30:22 +00:00
dsl
2e20a70dbf Change the way p->p_limit (and hence p->p_rlimit) is locked.
Should fix PR/36939 and make the rlimit code MP safe.
Posted for comment to tech-kern (non received!)

The p_limit field (for a process) is only be changed once (on the first
  write), and a reference to the old structure is kept (for code paths
  that have cached the pointer).
Only p->p_limit is now locked by p->p_mutex, and since the referenced memory
  will not go away, is only needed if the pointer is to be changed.
The contents of 'struct plimit' are all locked by pl_mutex, except that the
  code doesn't bother to acquire it for reads (which are basically atomic).
Add FORK_SHARELIMIT that causes fork1() to share the limits between parent
  and child, use it for the IRIX_PR_SULIMIT.
Fix borked test for both IRIX_PR_SUMASK and IRIX_PR_SDIR being set.
2007-09-29 12:22:30 +00:00
bouyer
adc1896a31 Properly set b_resid in an error case.
Clamp b_resid to b_bcount in case the info field is larger. Fix a KASSERT
in physio() when a media error occurs on my SDLT320 drive (maybe this drive
is bogus for not setting the highter bits to 0 in the INFO field in this
case).
2007-09-29 11:04:51 +00:00
dsl
2b7c33c183 Use netbsd32_uint64 instead of fsblkcnt_t and fsfilcnt_t in order to get
the correct alignment (4 bytes for i386) for the whole structure.
2007-09-29 10:47:45 +00:00
kiyohara
3e56b57e2a We must not call bus_space_unmap() here. 2007-09-29 10:20:31 +00:00
dyoung
97d392d2c5 Always build & link net/link_proto.c, since net/if.c needs it. 2007-09-28 22:52:13 +00:00
joerg
9e4ace25c5 Add kern.no_sa_support to easily detect whether a kernel supports
Scheduler Activation or not. This is a negative name as ld.so.conf
conditionals threat undefined sysctls like 0.
2007-09-28 21:25:21 +00:00
pooka
c4ad0e4da1 Release vnode being created in error branch instead of leaving it
locked.  Ideally the function should be rewritten to do things in
a different order, but this tries to keep changes minimal aiming
for a possible netbsd-4 pullup.

fixes PR kern/37034
2007-09-28 19:48:42 +00:00
ad
2b42802f4e Repair the RAS check. 2007-09-28 17:02:39 +00:00