Commit Graph

230750 Commits

Author SHA1 Message Date
apb
a6801ebc39 Use HAVE_LLVM, not MKLLVM, in tests related to the active compiler.
Fixes problems in a build with MKLLVM=yes HAVE_LLVM=no,
where this error interacted with settings in
src/external/gpl3/gcc/lib/libgcc/Makefile.inc to cause
some object files to be omitted from the libgcc_s library.
2014-10-05 17:08:46 +00:00
apb
f1dbec9add Safer definitions of DPRINTF and DPRINTF_VERBOSE.
In the PUFFSDEBUG case, wrap do { ... } while (/*CONSTCOND*/0)
around the definitions.  In the non-PUFFSDEBUG case, define them
as ((void)0) instead of as empty.
2014-10-05 14:13:14 +00:00
tsutsui
c82b34bdb0 Note about hp300 arcofi(4) audio driver pulled up to netbsd-7 recently. 2014-10-05 13:27:33 +00:00
riastradh
3e23190f1c Get arguments in the right order for copyout. (Oops!) 2014-10-05 10:00:03 +00:00
justin
bc648e4794 Use PRIx64 for printing offsets 2014-10-05 09:28:24 +00:00
manu
2a5ce25ed0 If we truncate the file, make sure we zero-fill the end of the last
page, otherwise if the file is later truncated to a larger size
(creating a hole), that area will not return zeroes as it should.
2014-10-05 07:53:22 +00:00
nonaka
1701c4859b regen 2014-10-05 03:47:17 +00:00
nonaka
8b47fa56c1 Add Realtek RTL8152, RTL8153. 2014-10-05 03:46:56 +00:00
martin
d702252680 Make early console work on big endian kernels 2014-10-04 19:38:17 +00:00
jmcneill
02a08a84bb vendor_transfer_data_dma callback takes a struct sdhc_softc now 2014-10-04 18:10:04 +00:00
jmcneill
3789ad4242 pass sdhc_softc instead of sdhc_host to sc_vendor_transfer_data_dma, since the vendor specific code has no visibility into struct sdhc_host and can easily do device_private(sdhc_softc->sc_dev) 2014-10-04 18:09:32 +00:00
tsutsui
25a2e495cb Pull LUNA's framebuffer improvements by Kenji Aoyama from OpenBSD/luna88k.
http://marc.info/?l=openbsd-cvs&m=141199909120631&w=2
>> Use raster(logic) operation, or ROP, function on LUNA frame buffer.
>> It makes 4bpp wscons putchar ~20% faster.

This Makes 4bpp wscons putchar ~30% on LUNA-II.

Also use the similar ROP in 1bpp putchar and cursor functions
and the 1bpp putchar is also ~5% faster.
While here, reduce diffs from OpenBSD a bit.

Tested on all 1bpp/4bpp/8bpp framebuffers.
2014-10-04 16:58:17 +00:00
christos
a58b812ff6 few more. 2014-10-04 15:54:53 +00:00
riastradh
3521230303 Canonicalize boolean result from test_and_set_bit.
Not actually semantically significant for any callers, but Linux
documentation insists it is important, so we'll follow suit.

Fixes last part of PR kern/48999.
2014-10-04 15:51:23 +00:00
christos
32afc653ae and a few more. 2014-10-04 15:29:13 +00:00
martin
bda71f8e48 Initialize all bits of the GMAC clock register, add comments. 2014-10-04 15:25:15 +00:00
tsutsui
4d52a6286a Fix unintended RCS Id substitution. 2014-10-04 14:42:41 +00:00
hannken
e716e7d8d6 Change filecore to vcache.
Compile-tested only, was not able to get my hands on a readable fs image.
2014-10-04 13:27:24 +00:00
mlelstv
1c5fb5d101 be verbose about sysmon error.
enable monitoring.
2014-10-04 13:18:34 +00:00
wiz
e5079a7b49 usage police 2014-10-04 13:15:50 +00:00
macallan
0461faf0f5 pay attention to copyin()'s return values 2014-10-04 13:05:57 +00:00
apb
692cf0085c zoneinfo: Import tzdata2014h. [apb 20141004]
Also delete a stray blank line.
2014-10-04 11:49:57 +00:00
apb
0411c3e79d tzdata2014h/tzcode2014h have been released. we have updated tzdata. 2014-10-04 11:49:02 +00:00
uebayasi
9f8f12e89e Remove '#line ...' lines to not confuse mkdep(1). 2014-10-04 11:45:19 +00:00
apb
10fb7dcce0 Import tzdata2014h from ftp://ftp.iana.org/tz/releases/tzdata2014h.tar.gz
Summary of changes in tzdata2014h (2014-09-25 18:59:03 -0700):
  * America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.
  * Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
    not 1920-01-06.
  * Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Blantyre, Africa/Bujumbura,
    Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
    Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.
  * Changes affecting documentation and commentary.
2014-10-04 11:42:09 +00:00
riastradh
c4ba54210e Paranoia: choke noisily on EOF from /dev/urandom. 2014-10-04 11:23:35 +00:00
riastradh
66f474049f Make uuidgen(2) generate v4 (random) uuids.
Rip out all the needless MAC address and date/time leakage.  No more
uuid_init necessary, nor contention over a global uuid state.

While here, simplify uuid_snprintf and fix a strict aliasing
violation.
2014-10-04 11:15:44 +00:00
riastradh
ba983c7779 Make gpt(8) generate v4 (random) uuids.
Don't needlessly leak your date/time and MAC address when you edit
the disk.

Read from /dev/urandom rather than calling arc4random or anything,
since this is a tool.  (Cygwin seems to have /dev/urandom, but yell
if this breaks the build on your exotic platform because it lacks
/dev/urandom.)

ok apb
2014-10-04 10:30:13 +00:00
wiz
ec23d78824 Remove trailing whitespace. 2014-10-04 07:15:54 +00:00
christos
279da39389 Allow specifying sector and media size on the command line. 2014-10-04 01:00:42 +00:00
christos
58f906ec2f correct error paths; still need to verify that the "didn't give us back..."
case is correct.
2014-10-03 20:56:24 +00:00
christos
194a5fe433 provide a copy of the kernel uuid generator (with portable API calls) for
tools.
2014-10-03 20:30:06 +00:00
skrll
a15ffa77b8 Better error handling. 2014-10-03 17:57:48 +00:00
hannken
b09a3a32e3 When creating a vnode with vcache_get() mark the vnode VI_CHANGING until
it is fully initialised.  It may be on the specnode list before it is
fully initialised and revoking it then would panic.

Should prevent the panic from PR kern/49171 (panic when closing a pty).
2014-10-03 14:45:38 +00:00
apb
db3976795f Add space before "]" in "if [ ... ]" to fix usage error
and test for existence of the correct file.
2014-10-03 12:41:41 +00:00
skrll
004440d498 Introduce RPI_HWCURSOR and default to off. The existing code causes
problems with vchiq at the moment.
2014-10-03 11:40:54 +00:00
jmcneill
b433307a8e Use SDn_CLK_REG instead of MMC_CLKCR to setup bus clock; gives a nearly 2x boost in performance in HS mode. Also, make sure to setup PLL6 before probing clocks. 2014-10-03 11:23:29 +00:00
jmcneill
94d1b463fa add some more bit definitions 2014-10-03 11:21:56 +00:00
skrll
aa371464d5 Convert to USB_HIST.
From Takahiro HAYASHI with tweaks from me.
2014-10-03 11:05:36 +00:00
skrll
7123045127 Remove unneeded #include 2014-10-03 06:46:02 +00:00
jnemeth
00433a3409 "0" is not guaranteed to be unique 2014-10-03 00:51:31 +00:00
justin
5fae769668 Use uint32_t for blocksize as per other uses and to fix warnings 2014-10-03 00:00:11 +00:00
justin
86efea3a92 Work around pedantic compiler 2014-10-02 23:07:30 +00:00
justin
0cf8ba0039 Use devmajor_t not int 2014-10-02 22:05:38 +00:00
justin
3507941446 dm_target_t reference count is modified with atomic_{inc,dec}_32 so should
be uint_32_t not int
2014-10-02 21:58:16 +00:00
jmcneill
cb216b0d9f debug ld_sdmmc with LD_SDMMC_DEBUG instead of SDMMC_DEBUG 2014-10-02 21:49:22 +00:00
ast
bfe1fbfe02 Imported and adapted from FreeBSD svn r272166 and r272207; this fixes
false positives for products of primes larger than 2^16. For example,
before this commit:

  $ /usr/games/primes 4295360521 4295360522
  4295360521
but
  $ /usr/games/factor 4295360521
  4295360521: 65539 65539

or
  $ /usr/games/primes 3825123056546413049 3825123056546413050
  3825123056546413049
yet
  $ /usr/games/factor 3825123056546413049
  3825123056546413049: 165479 23115459100831

or
  $ /usr/games/primes 18446744073709551577
  18446744073709551577
although
  $ /usr/games/factor 18446744073709551577
  18446744073709551577: 139646831 132095686967

Incidentally, the above examples show the smallest and largest cases that
were erroneously stated as prime in the range 2^32 .. 3825123056546413049
.. 2^64; the primes(6) program now stops at 3825123056546413050 as
primality tests on larger integers would be by brute force factorization.

In addition, special to the NetBSD version:
. for -d option, skip first difference when start is >65537 as it is incorrect
. corrected usage to mention both the existing -d as well as the new -h option

For original FreeBSD commit message by Colin Percival, see:
http://svnweb.freebsd.org/base?view=revision&revision=272166
2014-10-02 21:36:37 +00:00
justin
4460f134df Call prop_dictionary_get_uint32 with uint32_t 2014-10-02 21:29:44 +00:00
apb
1029f7d668 include <sys/endian.h> for both the non-tools build,
and the tools build on a host where the file exists.

Fixes a build problem on FreeBSD, reported by Herbert J. Skuhra, where
tools/compat's configure detected that be32dec() and friends were
available in the host's <sys/endian.h>, so tools/compat did not provide
its own versions.
2014-10-02 21:27:41 +00:00
justin
1d1c6d781a devmajor_t not int 2014-10-02 21:01:38 +00:00