Commit Graph

177118 Commits

Author SHA1 Message Date
cegger
d5fc4888bc Bracket IRQ masking around nfe_intr() in nfe_init() rather inside nfe_intr().
Proposed by dyoung@ in PR 40345. Should fix PR 40345.
2009-01-18 11:21:06 +00:00
drochner
fb535ac77e Make mktime(3) work with 64-bit time_t.
The problem is that the tm_year field of "struct tm" is just an "int"
(per POSIX), and thus time_t values >  2^31*60*60*24*365 cannot
be converted. This made mktime(3) fail even if no such large time values
were passed in by user code because the algorithm does a binary search
over the time_t range which fails if a probe value cannot be converted.
To fix this, limit the time_t range to be scanned to 55 bits (which
is a bit on the safe side, but still good until y570855533).
This is more a stopgap fix, the overflow should be checked for
at other places as well (eg localtime(3)), and there are some more
limitations in timezone parsing code.
2009-01-18 10:57:15 +00:00
mrg
5be383f77e Do not erroneously leave a truncated 16-bit sector
count on "large" (>=32MB) file systems when fetching the geometry from
the medium.  This confuses some software (which is to say Windows)
when a device newfs(8)ed under NetBSD is transported to another
system.  (Note: The rest of the code uses 'bsec', and DTRT for smaller
file systems.)

contributed anonymously.
2009-01-18 10:50:56 +00:00
cegger
94a79c95d5 Use aprint_error_dev. Eliminates XNAME macro. 2009-01-18 10:40:40 +00:00
lukem
b118202501 fix -Wsign-compare issues 2009-01-18 10:39:17 +00:00
mrg
71e27a6efb The PCI revision numbers are unique to a PCI vendor/product
ID pair.  Misuse of the revision numbers was causing some of the chip
features to be disabled on some integrated Intel chips.  So, move the
determination of the features into the bus frontend, where the
vendor/product ID is known.  (Note: sc_rev should be removed.  The
microcode patch stuff is also busted and needs to be fixed.)  Also,
poll the actual flow control status in inphy, rather than making
assumptions.

contributed anonymously.
2009-01-18 10:37:03 +00:00
lukem
7e0b2295e7 fix -Wsign-compare issues 2009-01-18 10:35:26 +00:00
mrg
c30587badd Fix multiple problems:
* A sign extension error creating the bridge ID corrupted the
    priority (always making it the maximum).
    * Do not catch STP packets on an interface for which STP is not
    enabled -- it's a violation of the spec, and causes STP to fail on
    neighboring bridges.
    * An optimization to bstp_input() -- some information is already
    known when we call it.

contributed anonymously.
2009-01-18 10:28:55 +00:00
lukem
3cafe960ea fix -Wsign-compare issues 2009-01-18 10:10:47 +00:00
mrg
94ed4b4374 Don't attempt to unload a DRM device that's in use. (Note:
Unloading doesn't work right in any case -- it doesn't clean up the
sysctl tree, among other things.  This code needs Work, but at least
this prevents it crashing randomly due to autounload while X is
running.)  Also, fix the dependency list for radeondrm.

contributed anonymously.
2009-01-18 10:04:35 +00:00
lukem
29f2e1ce01 fix -Wsign-compare issues 2009-01-18 10:01:34 +00:00
mrg
dff35a2418 Enable flow control and poll the status appropriately.
contributed anonymously.
2009-01-18 10:00:51 +00:00
lukem
f5a433a737 fix -Wsign-compare issues 2009-01-18 09:57:26 +00:00
lukem
e7dd2c7514 fix -Wsign-compare issues 2009-01-18 09:46:59 +00:00
mrg
f41b56aff5 Actually enforce the maximum timeout (60s by default) rather
than backing off to 256*SRTT.  This is why it sometimes could take
hours for a NFS mount to come back when the server returned.

contributed anonymously.
2009-01-18 09:45:05 +00:00
taca
6619b4d1ca Fix a typo with /etc/rc.d/lvm. 2009-01-18 08:24:46 +00:00
lukem
c493aef500 fix -Wsign-compare issues 2009-01-18 07:11:45 +00:00
lukem
7e973711c3 fix -Wsign-compare issues. minor knf 2009-01-18 07:08:30 +00:00
lukem
af17a5d8f3 fix -Wsign-compare issues 2009-01-18 07:05:53 +00:00
isaki
d81422fa96 struct device * -> device_t 2009-01-18 05:23:34 +00:00
rmind
d1efa8f729 - Avoid calling sched_catchlwp() if CPUs have different processor-sets.
- sched_takecpu: check for psid earlier (be more strict).

PR/40419.
2009-01-18 05:07:51 +00:00
isaki
34b7dffc11 - malloc() + memset(0) -> malloc(M_ZERO).
- remove temporary variable.
2009-01-18 05:00:39 +00:00
isaki
0a5ccf5143 Delete 10 years old #if 0'd comments in intio.c, locore.s.
According to the old comment, the interrupt handler via intiotrap
should set his interrupt level again, but it's not right.  And
don't set it again by interrupt hander.
2009-01-18 04:48:53 +00:00
tsutsui
45c7e466ca wscons(4) support for cgthree and cgsix have been pulled up to netbsd-5.
XXX1: We have to check all pulled up changes and update CHANGES.prev.
XXX2: We should also check all visible changes that are worth to pullup?
2009-01-18 04:11:38 +00:00
tsutsui
af4a212938 - add more visible changes
- tweak some entries (sort, periods etc.)
2009-01-18 04:02:59 +00:00
lukem
cadac39416 fix -Wsign-compare issues 2009-01-18 03:43:45 +00:00
tsutsui
4459b5fdab I really hate silly hacks inside #ifndef _STANDALONE in libsa sources... 2009-01-18 02:59:02 +00:00
isaki
8ca78cfb4e Clean up header files. 2009-01-18 02:40:05 +00:00
christos
f5c11c0781 Fix struct passwd time fields. From Shin'ichiro TAYA 2009-01-18 01:44:09 +00:00
lukem
a09351730c fix -Wsign-compare issues 2009-01-18 01:34:30 +00:00
bjh21
37ed0e6257 Need <arm/cpu.h> for GET_CURPCB.
Also, while it's true that at the moment struct user only contains
struct pcb, we probably shouldn't rely on that.
2009-01-18 01:31:58 +00:00
lukem
ab93b4bc61 fix -Wsign-compare issues 2009-01-18 01:31:12 +00:00
bjh21
554b5f62a3 Need <arm/cpu.h> for GET_CURPCB. 2009-01-18 01:30:44 +00:00
lukem
c172e3b989 fix -Wsign-compare issues 2009-01-18 01:29:57 +00:00
bjh21
9c8add5aef Now that GET_CURPCB and GET_CURCPU are generally available, use them
unconditionally rather than rolling our own (often badly) all over the
place.
2009-01-18 01:19:32 +00:00
bjh21
1175501ea1 Let the assembler generate my literal pools for me, since that makes things
more readable.
2009-01-18 01:17:07 +00:00
lukem
0449f26fed fix -Wsign-compare issues 2009-01-18 01:02:41 +00:00
lukem
aadf5fe187 Fix -Wsign-compare issues:
* Provide our own TOKEOF enum, rather than using stdio's EOF (which is signed)
* Use tokid_t instead of int where appropriate
2009-01-18 01:02:31 +00:00
agc
4d23086ab7 Bump shared lib versions for libdevmapper following the 64bit time_t/dev_t bumps 2009-01-18 00:44:33 +00:00
lukem
fb103c5334 fix -Wsign-compare issues 2009-01-18 00:37:53 +00:00
bjh21
c5c9311d80 Define a version of GET_CURCPU, GET_CURLWP, and GET_CURPCB for use on
old uniprocessor ARMs, and re-arrange the ifdefs so that it gets
used on 26-bit systems as well.  This allows us to uniformly use these
macros everywhere.
2009-01-18 00:36:29 +00:00
lukem
70d3d32311 fix -Wsign-compare issues 2009-01-18 00:36:20 +00:00
lukem
c6144e484f fix -Wsign-compare issues 2009-01-18 00:24:29 +00:00
lukem
0fdc53711f Use KiB MiB GiB instead of Kb Mb Gb 2009-01-18 00:21:09 +00:00
lukem
1881cc846a * Fix -Wsign-compare issues.
* Add some XXXs noting where we might want to check for 16bit overflow.
* Use uintNN_t instead of int if the values is read from or written to
  using udf_rwNN().
2009-01-18 00:18:41 +00:00
hans
ec644bbf21 Use ll instead of non-standard q as length modifier in format strings.
Makes this work on Solaris. OK by apb.
2009-01-17 23:24:30 +00:00
bjh21
85608d883e Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
2009-01-17 22:56:34 +00:00
njoly
77237e1c08 Regen for wait4 update. 2009-01-17 22:34:02 +00:00
njoly
25a76c08aa Convert linux/linux32 wait(4) to use a compat50 rusage structure. 2009-01-17 22:28:52 +00:00
he
38068400a9 Avoid casting an uisigned to a signed value, thereby invoking formally
undefined behaviour.  Instead go via u_int and print with %u.
2009-01-17 22:01:32 +00:00