Commit Graph

229645 Commits

Author SHA1 Message Date
joerg 64bc057870 Drop stray } 2014-08-20 22:02:20 +00:00
matt 9e2fe0aaa3 i386 doesn't use subint fast{8,16} 2014-08-20 20:15:55 +00:00
tsutsui c07d3ea4e7 Sync with sparc/dev/fd.c rev 1.155.
> Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().

Note sun3 still uses gcc 4.5.4 but also panicked by this old bug,
so probably this problem was triggered by not gcc 4.8 but struct disk
changes (struct disk_geom was added in <sys/disk.h> rev 1.58),
which increased sizeof(struct fd_softc) from 248 bytes to 296 bytes.
(i.e. now struct fd_softc could be allocated in a different pool block,
 probably near the wrong pointer of the struct disklabel)

Anyway, this fix should be pullued up to netbsd-7.
(probably I'm the only user of floppy on sun3 though)
2014-08-20 17:48:57 +00:00
ginsbach b0f0dbfd65 Add one more RAS 2014-08-20 16:05:03 +00:00
matt 3ff6416ad7 Fix netbsd-stdint.h to allow char and short for int_fast8_t and int_fast16_t
and their corresponding unsigned variants.
2014-08-20 16:00:15 +00:00
riastradh f7a0cd6406 Add some Linux list routines. 2014-08-20 15:26:52 +00:00
joerg 1e46ecab88 Since GCC 4.5 doesn't support noexcept, don't pretend to support it by
using -std=c++0x. Just use the correct value for x.
2014-08-20 15:19:39 +00:00
riastradh f40a74cd43 Drop take the {ttm,gem} vmobjlock in the fault handler.
- We don't need this lock.
- uvm does nothing between taking it and calling the fault handler.
- Now that the uvm_aobj shares vmobjlock with the {ttm,gem} uvm
  object, we must not hold the lock when we call uvm_obj_wirepages on
  the uvm_aobj.

XXX pullup to netbsd-7
2014-08-20 13:48:08 +00:00
christos 233c59f4d5 PR/45716: Anthony Mallet: emacs (various versions) dies on unwind stuff in gcc 4.8
Apply fix that got missed as this file got moved from dist/gcc to dist/libgcc:

Somehow emacs tries to unregister frame info for a symbol it did not register.
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.

XXX: pullup 7
2014-08-20 13:29:07 +00:00
justin aaf730d309 Add missing include 2014-08-20 12:09:15 +00:00
apb 9dba8e3973 Add tests for VAR != command. 2014-08-20 08:39:14 +00:00
apb 21c7c4bccf It should not be an error to have VAR != command that prints no output 2014-08-20 08:37:25 +00:00
msaitoh 07fcf9a40c Regen. 2014-08-20 08:00:39 +00:00
msaitoh 9eeedb9728 BCM5714 and BCM5780 are used for both copper and fiber. 2014-08-20 08:00:18 +00:00
macallan f190e8714e don't blindly assume that PAGE_SIZE == 4kB
Now X works again.
2014-08-20 00:40:33 +00:00
jnemeth 0e7c8bd031 Sync with sparc/dev/fd.c:1.155.
Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().

I'm not sure why this 18 year old bug didn't cause problem before
(at least my old 5.99.23 kernel worked), but probably it's triggered
by new gcc 4.8 which might do more aggressive memory allocation.
The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4).

Should be pulled up to netbsd-7.
2014-08-19 18:20:51 +00:00
reinoud 5d42d105e8 Implement i2c using gpio for Exynos5 and Odroid-XU 2014-08-19 16:18:15 +00:00
matt ef1ba863e5 Compute u<type>_max by doing 2u<x>*type_max+1u<x>. 2014-08-19 15:46:46 +00:00
manu fb724fffd1 Remove usless warning that happens often with direct IO 2014-08-19 15:29:14 +00:00
tsutsui 09d162f919 Fix panic() on opening fd(4), caused by a wrong pointer passed to memset().
I'm not sure why this 18 year old bug didn't cause problem before
(at least my old 5.99.23 kernel worked), but probably it's triggered
by new gcc 4.8 which might do more aggressive memory allocation.
The problem is found by Nobuyoshi Sato on trying eject(1) against fd(4).

Should be pulled up to netbsd-7.
2014-08-19 14:43:41 +00:00
christos eceaff9abc cleanup properly on error. 2014-08-19 14:43:28 +00:00
martin 551f6cb995 Make sure to not dereference a NULL pointer. 2014-08-19 13:44:31 +00:00
martin 7a7d59f635 Cosmetic changes trying to appease coverity scan. 2014-08-19 13:41:08 +00:00
martin 722a22e445 Check return values from stat before comparing contents of the result
structures. Pointed out by coverity scan.
2014-08-19 13:36:04 +00:00
martin 3221cb6f7f if chdir() fails, try chdir / 2014-08-19 13:30:32 +00:00
martin ffc1983074 Make an invariant more clear to avoid fals positives from coverity scan 2014-08-19 13:26:27 +00:00
martin fe0740f823 Check return value from getenv() before using the value. Pointed out by
coverity scan.
2014-08-19 13:04:45 +00:00
martin 14d42b6c1e Make sure the interface name is 0 terminated, pointed out by coverity scan. 2014-08-19 13:01:48 +00:00
christos 7de48e21c0 PR/49125: Havard Eidnes: /bin/sh does not support redirecting to or from FDs > 9
According to:
http://pubs.opengroup.org/onlinepubs/009604599/utilities/xcu_chap02.html#tag_02_07

Redirection support for fds > 9 is optional but allowed.
2014-08-19 12:36:58 +00:00
matt b191cce33b Add ./usr/include/sys/common_{ansi,limits}.h 2014-08-19 07:28:45 +00:00
matt 4ae77e2dce More "common" includes which use the preprocessor defined macros. 2014-08-19 07:27:31 +00:00
matt 48ea0054a1 EM_OPENRISC is now EM_OR1K but keep a define of EM_OPENRISC to EM_OR1K around. 2014-08-19 07:26:45 +00:00
martin 36f4a5867f Remove (accidently) duplicated code - pointed out by coverity scan. 2014-08-19 06:49:21 +00:00
martin eee31b641f Remove duplicate fclose(), pointed out by coverity scan. 2014-08-19 06:47:15 +00:00
matt 4264da7fa4 Install common_wchar_limits.h and update set list. 2014-08-18 22:33:25 +00:00
matt a115e74120 Add common_wchar_limits.h for those compilers that emit
__W{CHAR,INT}_{MIN,MAX}__
2014-08-18 22:21:39 +00:00
agc f37d41b3ae Avoid a memory leak - from maxv 2014-08-18 17:16:19 +00:00
riastradh 0d847ab144 Restore Intel opregion stuff. 2014-08-18 16:55:34 +00:00
pooka 65016d742c Might as well byteswap when we assign to local variables instead of when
we use said variables.
2014-08-18 14:40:17 +00:00
pooka c0fd8e41a5 quasi-cosmetic nit to previous: limit variable scope 2014-08-18 14:35:29 +00:00
pooka 6dd8e526f0 Add compat for bus version 2.
Fixes tests, but, XXX, should add tests for bus version 3.
2014-08-18 14:33:23 +00:00
pooka c31e06706c make name more descriptive: SWAPME -> FIXENDIAN
no functional change
2014-08-18 14:23:24 +00:00
pooka 756b0ff491 fix tyop in error message 2014-08-18 14:21:44 +00:00
pooka 3b9faec799 support endian-independent operation on all platforms 2014-08-18 14:21:18 +00:00
apb 922995f705 Use FSTYPE_DEFN from <sys/disklabel.h> to generate case branches for
conversions from all known disklabel fstypes to strings.  This replaces
the hand-coded list of conversions for only a few of the known types.
2014-08-18 14:18:59 +00:00
apb 1ed52851f5 Don't ignore unrecognised partition types in BSD disklabels;
instead, add them with wedge partition type "unknown#%u", where
%u is the underlying numeric partition type from the BSD disklabel.
2014-08-18 13:46:07 +00:00
christos 5e59f268f4 mention that -x is the default. 2014-08-18 09:45:52 +00:00
christos f3fb7b3c54 remove XXX, fix error message 2014-08-18 09:16:35 +00:00
christos 519e6f9271 make this behave like linux; make -x the default 2014-08-18 09:14:03 +00:00
joerg 6616828fd2 Restore explicit rule for swap*.o. 2014-08-18 08:07:02 +00:00