239036 Commits

Author SHA1 Message Date
pooka
d5e7c6e861 Fix bug in readdir loop condition.
Reading all dirents using a small buffer and multiple calls now works.

Bug found by "Shamar" on #rumpkernel
2015-11-13 13:36:54 +00:00
tron
25c8e9abea Remove now unnecessary cast. 2015-11-13 11:43:26 +00:00
tron
7655e3065e Don't try to use listen(2) on a UDP socket which will always fail.
Previously this was not a problem because the return value of listen(2)
was ignored. With this fix amd(8) no longer fails to start with the
error message "cannot create rpc/udp service".

TL;DR: Make amd(8) work again
2015-11-13 11:23:08 +00:00
tron
65a6071730 Avoid broken state if realloc(3) fails. 2015-11-13 10:43:32 +00:00
wiz
455c3673bc Family is singular, so use singular form of verb. 2015-11-13 09:56:27 +00:00
wiz
3baeca6f8b Bump date for previous, remove empty line. 2015-11-13 09:51:16 +00:00
wiz
594b3ba9a8 Remove trailing whitespace. 2015-11-13 09:50:31 +00:00
skrll
c5325a8d39 Tweak the KASSERTs in pmap_update in the ARM_MMU_EXTENDED case - Lazy
updating is not done on the kernel pmap.

PR port-arm/50420: curcpu()->ci_pmap_cur != pm || pm->pm_pai[0].pai_asid == curcpu()->ci_pmap_asid_cur" failed
2015-11-13 08:04:21 +00:00
skrll
60c5270f27 Wrap long lines. 2015-11-13 07:55:18 +00:00
msaitoh
9ec2b1dc37 Fix register offset to print HyperTransport registers correctly. 2015-11-13 03:56:44 +00:00
christos
cce9b2f24e remove extra semicolons. 2015-11-13 01:37:19 +00:00
christos
d78e1b84d7 regen 2015-11-12 23:11:21 +00:00
riz
d39dd3ba38 Declare variables under the same conditions as their use. 2015-11-12 22:10:48 +00:00
christos
529d2b9702 put back the old ones until the rest is generated 2015-11-12 20:14:55 +00:00
christos
39fec168ea Regen; it's been a *long* while. 2015-11-12 18:28:34 +00:00
christos
3296beefcd PR/50422: Robert Elz: df -G prints the wrong value for fragsize (+FIX)
For df -G, print the block and fragment size instead of the iosize
and the blocksize. If we need to print the iosize, it should be done
in a different field. Nevertheless printing the blocksize in the fragment
size field is just wrong.
XXX: pullup-6, pullup-7
2015-11-12 17:59:21 +00:00
christos
05dbf82446 consistency fixes. 2015-11-12 17:51:05 +00:00
phx
d656580485 Add sandpoint ddb-entry method. 2015-11-12 17:45:12 +00:00
christos
5e9bf06a78 Recognize binary constants 2015-11-12 17:34:01 +00:00
christos
fd6ed0e3f6 Fix capitalization 2015-11-12 17:31:43 +00:00
christos
6ea48155ff Now that our source tree has binary constants, recognize them. 2015-11-12 17:30:03 +00:00
christos
557b696a7a Recognize 0[bB] as binary (base 2) 2015-11-12 17:23:51 +00:00
christos
6c340bb484 Add usage function, various cosmetics; no functional change. 2015-11-12 16:51:18 +00:00
christos
2a5df0a68f Use the new DK_DEV_BSIZE_OK() macro. 2015-11-12 15:28:07 +00:00
christos
ce52e80579 Add DK_DEV_BSIZE_OK() 2015-11-12 15:25:22 +00:00
phx
f8fe085c49 Amiga Xorg support. 2015-11-12 15:13:03 +00:00
joerg
a3e166507d Ensure that the callout of the multicast address is valid before
hooking it up.
2015-11-12 15:01:06 +00:00
pooka
d0f0cf2fcb In ioconfname mode, #define IOCONF as the ioconf token.
Avoids having to retype the name to call config_init/fini_component().
2015-11-12 14:38:21 +00:00
phx
599bbc23d0 Use the MD_BTOP() macro as replacement for m68k_btop() in all device
drivers which are shared with amigappc.
2015-11-12 12:19:49 +00:00
msaitoh
d40faa45fb - Restore pci_subr.c rev. 1.135's change in pci_conf_print_caplist().
As wrote in the comment, HyperTransport capability appears multiple times.
  pci_conf_cap() reruns only the first entry, so it can't be used here.
- Try to decode HyperTransport capability. Currently, the capability type
  of each HyperTransport capability is printed and only the MSI Mapping
  capability is decoded.
- Style change.
2015-11-12 12:17:59 +00:00
msaitoh
e2a104e557 PCI_HT_CAP() is right shifted value, so PCI_HT_CAP_* should not use
__SHIFTIN(). This change fixes a bug that HyperTransport system misunderstand
whether MSI/MSI-X can be used or not.
2015-11-12 12:08:13 +00:00
phx
656c43404f Xorg for amiga via wsfb. Currently available on CV64 and CV64/3D. More
graphics cards will follow, when adding wscons support to them.

I didn't manage to make the "wskbd" protocol the default in the X server,
so you have to provide a small xorg.conf with Option "Protocol" "wskbd".
The standard protocol will not work as the Amiga wskbd cannot be switched
into raw mode and has no AT-scancode translation in the kernel.

On the positive side, wskbd also works with national keymaps under X.

The graphics modes can still be defined via grfconfig(8). Xorg's wsfb
driver uses the current grf video mode, which is usually mode #1.
All resolutions and depths seem to work (tested on CV64).
2015-11-12 12:01:53 +00:00
hannken
fa45966e6d Take the vnode lock before the vnode is marked VI_CHANGING and fed
to vclean().  Prevents a deadlock with two null mounts on the same
physical mount where one thread tries to vclean() a layer node and
another thread tries to vget() a layer node pointing to the same
physical node.

Fixes PR kern/50375 layerfs (nullfs) locking problem leading to livelock
2015-11-12 11:35:42 +00:00
jmcneill
7017cd79aa change some register dumps from aprint_verbose to aprint_debug 2015-11-12 10:49:35 +00:00
jmcneill
f96884bf2d enable NFSSERVER (mostly to silence module warning) 2015-11-12 10:48:30 +00:00
skrll
dea60533fa Drop to spl0 after the pmap_activate call. Should address
PR port-arm/50420: curcpu()->ci_pmap_cur != pm || pm->pm_pai[0].pai_asid == curcpu()->ci_pmap_asid_cur" failed

Discussed with matt@ and rmind@
2015-11-12 10:47:30 +00:00
jmcneill
d01d2885b0 Standard mode for I2C needs a source divider of 20, not 2. 2015-11-12 10:31:29 +00:00
ozaki-r
3b8b75374e Add tests of IPv6 link local address
From s-yamaguchi@IIJ
2015-11-12 05:05:24 +00:00
ozaki-r
9b59cf7aa1 Fix up the header
Remove unnecessary shebang and add missing keyword expansion,
copyright and license.
2015-11-12 05:01:28 +00:00
christos
799fe5d0c9 fix incorrect memset. 2015-11-12 02:06:36 +00:00
jmcneill
8f23c6b18a Use GEM for memory management. Fixes a couple issues while here:
- No longer needs to allocate 35MB (!) for framebuffer console.
 - Allows xrandr to switch to modes larger than the framebuffer console.
 - Removes hack that redirected mmap calls to wsdisplay0
2015-11-12 00:43:52 +00:00
pooka
4ff6638b3d Make it easier to create rump kernel components, part 1.
Reduce copypasteware for the component constructors.  If a constructor
calls only config_init_component(), handle it from a common source file
instead of copying the same(ish) file around to every component.
2015-11-11 21:52:45 +00:00
skrll
3c7b72e03f Support pmap_pv_track and friends 2015-11-11 17:54:17 +00:00
jmcneill
623e6e8f00 not used by tegradrm 2015-11-11 16:41:52 +00:00
jakllsch
22439287a1 Add tty2 tty3 devices to evbarm MAKEDEV; JETSONTK1 has console on com3. 2015-11-11 16:20:43 +00:00
phx
f7fdbac6c0 Update loadbsd to 2.17, which can load ELF kernels.
Remove obsolete loadbsd binaries from installation/misc as they
have become useless (and can only load a.out kernels).
2015-11-11 16:13:55 +00:00
phx
272a1c3817 Build instructions and Makefile for loadbsd 3.0.
Submitted by Gunther Nikl.
2015-11-11 16:08:52 +00:00
jmcneill
36039cde22 fix RB_POWERDOWN test 2015-11-11 14:50:08 +00:00
jakllsch
5886266433 enable cd(4) in JETSONTK1 2015-11-11 14:04:12 +00:00
jmcneill
317868fba7 make VDD_CPU programming a bit easier to understand, and while here, actually program it to 1.4V as intended instead of 1.39V 2015-11-11 12:49:10 +00:00