Commit Graph

237091 Commits

Author SHA1 Message Date
hannken cc0ff39f8b Remove bogus "mutex_enter(&mntvnode_lock)". 2015-07-26 08:33:53 +00:00
hannken 0d4b7ea93d lfs_flush_pchain: replace vget() with vcache_get(). 2015-07-26 08:13:23 +00:00
skrll e9327279d7 Whitespace 2015-07-26 07:23:10 +00:00
kamil dc83c1546e Add license header (the NetBSD 2-clause version) with (C) TNF 2015-07-26 02:29:44 +00:00
kamil ec6de4df8b reallocarray(3) cleanup
Add missing NetBSD CVS Id
Don't define twice _OPENBSD_SOURCE
2015-07-26 02:22:33 +00:00
kamil 2cf5f6af2b Add ereallocarr(3) to libutil
ereallocarr(3) wraps reallocarr(3) and embeds return status validation.

Older version reviewed by <riastradh> and <christos>
2015-07-26 02:20:30 +00:00
matt a9f3026e70 KASSERT->KASSERTMSG 2015-07-26 00:15:53 +00:00
sevan bf748072f6 Drop the case '?' which is defined after case 'default'.
case 'default' statement introduced in the last commit to cat.c in the CSRG archive.
Obtained from OpenBSD bin/cat/cat.c r1.3.
2015-07-25 16:17:01 +00:00
jmcneill 2b9ac15191 remove debug printfs, dont force hdmi mode 2015-07-25 15:55:31 +00:00
jmcneill 0397e14b90 Add HDMI audio support 2015-07-25 15:50:42 +00:00
jmcneill d080cb0210 Fix block offsets for ddc_read_edid_block. 2015-07-25 15:20:49 +00:00
jmcneill f57dc65f83 For DDC, we don't have a real I2C bus, but instead read an EDID block at
a time. Read the blocks ourselves instead of pulling in ddc_read_edid.
2015-07-25 15:19:54 +00:00
hannken 0df0ac5339 Another lfs superblock accessor (inside #ifdef 0). 2015-07-25 13:01:06 +00:00
martin 7f29db77f4 Use accessors in DEBUG and DIAGNOSTIC code as well 2015-07-25 10:40:35 +00:00
mlelstv 1cd8415fdc Handle getfsspecname errors. 2015-07-25 10:37:22 +00:00
skrll 76e78fa82e IPIs should be IPL_HIGH according to rmind@
Fix bcm2836mp_pic_{un,}block_irqs to handle timer AND mailbox interrupts
if they're both passed.  Thanks to nat@ for finding this.

Sprinkle some KASSERTs
2015-07-25 08:43:41 +00:00
maxv bf3d892cef Memory leak. Same as r1.93. I don't know why Brainy didn't detect it
earlier; or perhaps I forgot to report it.

Found by Brainy.
2015-07-25 08:36:44 +00:00
isaki bbeaff6281 indent and some KNF. 2015-07-25 07:12:30 +00:00
isaki b0705370de white space -> tab. 2015-07-25 07:06:11 +00:00
isaki 3d092e0f6e sysinst is 15*2 sect/cyl (fdXc), not 8*2 sect/cyl (it's fdXa,
DOS compatible).  It makes the loading of sysinst a bit faster.
Pointed out by Yosuke Sugahara.
2015-07-25 06:58:37 +00:00
isaki 8f16a95caf Add a comment on mnemonic that assembler cannot recognize. 2015-07-25 06:24:53 +00:00
matt 4ce48948b8 Remove unofficial AVR32 2015-07-24 21:27:03 +00:00
matt 86bf45f4e0 Add a few more EM_* 2015-07-24 21:09:25 +00:00
christos 2703f4af80 Use absolute paths for RCS commands (Martin Natano) 2015-07-24 18:56:44 +00:00
christos 8bfaa68572 From Martin Natano @bitrig: Use execve(2) instead of system to apply patches
that require rcs command execution instead system(3) to avoid malicious
filenames in patches causing bad things to happen. In the process, lose SCCS
support. It is not like we are shipping sccs commands for that to work.
2015-07-24 18:56:00 +00:00
nonaka 22b9180f78 Use pci_intr_alloc(). 2015-07-24 15:43:38 +00:00
hannken bc85f6dde2 Operation pmap_tlb_processpacket() uses x86_ipi(.., LAPIC_DEST_ALLEXCL, ...)
when cpuset "target" equals "kcpuset_running".  During boot, while some CPUs
are not running yet, this will result in more IPI interrupts than expected
and "pmap_tlb_pendcount" related KASSERTs fire.

Compare the cpuset "target" against "kcpuset_attached", as this set represents
the CPUs LAPIC_DEST_ALLEXCL will notify.

Should fix PR port-amd64/47437
2015-07-24 15:20:37 +00:00
pooka 5ede295be8 Since the rump kernel does not know when the container it's running in
actually halts, print "halted" in the hypercall.
2015-07-24 14:11:11 +00:00
maxv 6647020bbc Unused inits (harmless).
Found by Brainy.
2015-07-24 13:02:52 +00:00
maxv 7ad874c499 typo (comment) 2015-07-24 12:29:55 +00:00
knakahara 63ee2a18ca fix typo. reported by nonaka@n.o 2015-07-24 07:40:58 +00:00
ozaki-r 0e93629237 Fix rtfree-ing wrong rtentry 2015-07-24 07:36:29 +00:00
mrg d4842dda23 un-obsolete xf86-video-intel-old components that were being installed
but deleted by postinstall.
2015-07-24 07:13:34 +00:00
dholland adca8af59e More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.
2015-07-24 06:59:31 +00:00
dholland f59b8f4b3a Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.
2015-07-24 06:56:41 +00:00
dholland 656ac806f0 Rearrange the structures in the lfs bootbollocks slightly.
This generates the same output (at least on amd64) but will be more
robust until we're ready to deploy lfs64 bootblocks too.

XXX: I don't think these actually work right now, and the logic for
picking between v1 and v2 lfs formats (which is not related to ffsv1
vs. ffsv2) is definitely broken. But I haven't made it any worse.
2015-07-24 06:53:24 +00:00
dholland c63e51c9e7 ulfs2_dinode, having never actually been used with lfs, doesn't have a
di_inumber field. Fix that. First preliminary step on PR 50000.
2015-07-24 06:51:46 +00:00
knakahara b9b0fe1ae3 fix pci_intr_alloc(..., NULL, 0). reported nonaka@n.o 2015-07-24 06:49:58 +00:00
martin c626bf992a Pass the device, not the struct softc to config_found().
Avoids a crash at attach time, PR port-i386/50076.
2015-07-24 06:17:10 +00:00
ryo 3cc9aab310 KNF 2015-07-24 05:20:01 +00:00
ryo ae00560ff5 - fix sc_ev_missing_ticks over-counting.
- don't use 64bit division, because it has expensive cost on gcc/arm
  whether it is a constant or not.

'delta' is usually taken a value around sc_autoinc depending on timing
of read. therefore 'delta / sc->sc_autoinc' would be count too much.
2015-07-24 05:19:13 +00:00
matt 49cb8763aa If we are sending a window probe and there's unacked data in the socket, make
sure at least the persist timer is running.
2015-07-24 04:33:50 +00:00
matt 6de0fc0ff8 Make sure that snd_win doesn't go negative. 2015-07-24 04:31:20 +00:00
mrg 1f8bf413af libdri2.a is still installed. 2015-07-24 04:29:27 +00:00
jmcneill f74c15ad09 use SDHC_FLAG_NO_TIMEOUT 2015-07-23 23:53:14 +00:00
jmcneill 3cc75aa740 Add a SDHC_FLAG_NO_TIMEOUT quirk to handle spurious timeouts on Tegra K1
during data transfers. While here, increase the soft timeout for DMA
transfers from 1s to 3s.
2015-07-23 23:52:54 +00:00
jmcneill a0ed8809cc Support fractional dividers. This lets us use 48MHz for SDMMC HS mode
instead of 45.333MHz.
2015-07-23 18:22:05 +00:00
riz e3d8d886ce Implement "status" command for postfix - makes tools like ansible
happier.
2015-07-23 17:12:16 +00:00
jmcneill 80bbdecc5c no need for exact match on tmds mode, just use the closest match 2015-07-23 15:43:06 +00:00
skrll 46b3ff0205 More defines 2015-07-23 15:08:19 +00:00