Commit Graph

251112 Commits

Author SHA1 Message Date
jmcneill
8f0ac4644e Rename armv7fdt to armfdt now that bus space + dma tags are filled in by
platform code.
2017-05-29 23:21:12 +00:00
jmcneill
73b64c76e1 Move console initialization out of platform code into the console drivers
themselves.
2017-05-29 23:13:03 +00:00
kre
44443aa011 Add DEBUG tracing to arithmetic $(( )) parsing & evaluation.
NFC for non-DEBUG shells.
2017-05-29 22:54:07 +00:00
kre
6768e34b73 Add a new test case wrap_strip based upon strip (ie: cut&paste.. to start)
but with \ newline line continuations inserted at strange places.

For the shell as it is today, since strip passes, wrap_strip should
automaticallty pass as well (and does), as the \ newline combination
is simply removed, producing identical input to that of strip.

However, for accurate line counting ($LINENO: coming soon) newlines (no
matter the context) cannot simply "go away" - we have to know where they
occur(ed) (perhaps long after the text was read)  so we know what line
number we are actually processing.   This new test case is (perhaps just
part) of future-proofing that the modified code does not break anything.
2017-05-29 22:27:47 +00:00
kre
374c12e6d0 Now that the shell is protecting its internal fds properly, moving
them whenever the user tries to step on one, we can change our behaviour
back to what the kernel considers to be that of a well behaved shell
(wrt file descriptor usage).  If our user causes problems, we will soon
move into recalcitrant process territory, but that should normally be
rare.  This should reduce kernel overheads a little.
2017-05-29 22:21:00 +00:00
kre
8ffd1099d3 More DEBUG mode changes. As usual, read the source if you care. 2017-05-29 14:03:23 +00:00
kre
9167dc7b19 NFC (normal builds): DEBUG only change - convert parser to newer trace method.
parser tracing is useful when debugging the parser (which admittedly is
fairly often...) but there is a lot of it, and it gets in the way when
looking at something else.   Now we can turn it off when not wanted.
2017-05-29 10:43:27 +00:00
ozaki-r
63d0263345 Don't make isr->sav NULL
We assume it's always non-NULL.
2017-05-29 10:11:10 +00:00
knakahara
a3f2d30d8e strictly use crypto_checkdriver(i) instead of using crypto_drivers[i] directly. 2017-05-29 09:02:46 +00:00
wiz
53988e4234 New sentence, new line. Fix typos. More consistent grammar.
Comment out empty EXAMPLES section. Remove unnecessary macros.
2017-05-29 08:46:23 +00:00
wiz
a198f14b52 New sentence, new line. 2017-05-29 08:42:33 +00:00
wiz
a35802ce9a New sentence, new line. Remove trailing whitespace.
Fix typos. Use more markup. Sort sections. Sort SEE ALSO.
2017-05-29 08:41:57 +00:00
wiz
bd404f8f85 Bump date for previous. 2017-05-29 08:03:13 +00:00
msaitoh
64b17b2a86 Print MSI Message data in 32bits when the Extended Message Data Capable bit
is set.
2017-05-29 07:09:20 +00:00
pgoyette
ab0ef58f9d Add TU/Tango-Uniform --> "tits up" 2017-05-29 06:54:01 +00:00
christos
703982a7f9 remove ugly profiling hack now that the compiler is fixed. 2017-05-29 03:52:43 +00:00
christos
dd61a7a6c2 remove bogus indirect call for profiling (mcount) 2017-05-29 03:51:24 +00:00
ozaki-r
ce18feac4c Remove unmaintained (and probably unmaintainable) driver list
ok msaitoh@
2017-05-29 03:41:53 +00:00
ozaki-r
cff9bd3422 Call in6_ifdetach only if in6_present (for rump)
Otherwise ifconfig -vlanif causes a panic on a rump_server without
the netinet6 library.

Reported by s-yamaguchi@IIJ
2017-05-29 02:55:49 +00:00
nonaka
b204e19293 nvme(4): Don't set prp1 for DEL_IOCQ
> NVM_ADMIN_DEL_IOCQ does not need prp1 (just as NVM_ADMIN_DEL_IOSQ).
> Remove what is likely a cut'n'paste error from the *_ADD_* code.

from OpenBSD nvme.c r1.56.
2017-05-29 02:25:37 +00:00
nonaka
0fb17da218 nvme(4): Do not use bus_space_{read,write}_8() even on LP64 archs.
> some (broken) controllers require ordered split transfers.
> From linux a310acd7a7ea53533886c11bb7edd11ffd61a036

from OpenBSD nvme.c r1.53.
2017-05-29 02:24:00 +00:00
nonaka
74b492829e nvme(4): Mask non relevant bits when pritting version number.
from OpenBSD nvme.c r1.52.
2017-05-29 02:20:34 +00:00
riastradh
8aa6b6b474 Omit description of fstrans_mount/unmount too. 2017-05-29 01:51:55 +00:00
riastradh
84ba7395ce No more need to call fstrans_mount: vfs does for us now. 2017-05-29 01:49:42 +00:00
jmcneill
81bc83c155 Add a facility for platform-specific callbacks and use it to remove most
of the Tegra-specific code from tegra_machdep.c.

Platform code matches on the compatible property of the root ("/") DT node
and allows for chip-specific implementations of the following:

 - devmap: Return a 0-terminated list of static device map entries.
 - bootstrap: Early initialization of platform-specific facilities.
 - early_putchar: Provides an implementation of putchar for use in early
     debug messages.
 - device_register: Platform-specific device register callback.
 - reset: Platform-specific CPU reset implementation.
 - consinit: Platform-specific console init implementation.
2017-05-28 23:39:30 +00:00
jmcneill
52da870ca3 Remove unused tegra_dma_tag 2017-05-28 23:32:14 +00:00
jmcneill
43e0601b00 Add a few bootconfig helpers:
- get_bootconf_string: returns a copy of the "value" part of a k=v pair
     as a string.
 - match_bootconf_option: returns true if the "value" part of a k=v pair
     exists and the supplied val param is present in the beginning of the
     k=v pair's value.
2017-05-28 23:31:41 +00:00
alnsn
9a921db489 Cosmetic changes to Lua binding in bozohttpd.
- Don't use negative indicies to read arguments of Lua functions.
- On error, return nil, "error string".
- Use ssize_t for return values from bozo_read() and bozo_write().
- Prefer lstring especially when if saves you from appending NUL and
  doing len + 1 which can potentially wraparound.
- Don't mix C allocations with Lua functions marked with "m" in the Lua
  manual. Those functions may throw (longjump) and leak data allocated
  by C function. In one case, I use luaL_Buffer, in the other case,
  I rearranged calls a bit.
2017-05-28 22:37:36 +00:00
nat
a606fd2d43 Now that the scope of setting the gain is limited, the hack for /dev/sound
no longer applies.
2017-05-28 21:36:18 +00:00
nat
f754162ddf Set the gain of play back, rather than altering the generated wave by a
factor of volume.
2017-05-28 21:15:58 +00:00
nat
9cd68355c2 The scope of setting the gain for playback or recording is now limited to
operating on the volume of its virtual channel.
2017-05-28 21:12:59 +00:00
martin
f115750a3f Revert previous, the needed signals are not easily accessible on
CUBIETRUCK
2017-05-28 18:39:58 +00:00
wiz
7db2a5730e New sentence, new line. Punctuation fixes.
Get rid of unnecessary \*[Lt], \*[Gt].
2017-05-28 18:23:22 +00:00
hannken
e4e82d96c7 Restrict vgone() to suspended file systems only.
Welcome to 7.99.75, old file system modules would cause a diagnostic
assertion with new kernel.
2017-05-28 16:39:41 +00:00
hannken
56074bee21 Change ext2fs to use vcache_new like we did for ffs:
- Change ext2fs_valloc to return an inode number.
- Make ext2fs_makeinode private to ext2fs_vnops.c and
  pass vattr instead of mode.
2017-05-28 16:38:55 +00:00
hannken
f8f707e163 No need to call vgone() on the just created in file system log vnode,
vput() is sufficient.
2017-05-28 16:37:55 +00:00
hannken
1ed4b9f274 Suspend file system for vgone(). 2017-05-28 16:37:16 +00:00
hannken
5dc331fb8e When a vnode has an invalid type because the type changed on the
server replace vgone() with new operation smbfs_uncache() that
removes the vnode from the name cache and changes the vcache key
to an unique and illegal key to prevent further lookups.
2017-05-28 16:36:37 +00:00
hannken
a8045334ce Add a helper to propagate file system suspension for vrevoke().
Take care to retry suspension on interrupt as vrevoke must succeed.
2017-05-28 16:35:47 +00:00
jmcneill
6ba64aa73d Add facility for fdt devices to register reset and poweroff handlers.
Use this to remove as3722-specific code in tegra_machdep.c
2017-05-28 15:55:11 +00:00
christos
1e8894c3ea undo previous; we don't have any archs where socklen_t != uint32_t. 2017-05-28 14:53:13 +00:00
christos
35f2dad6cc fix format. 2017-05-28 14:49:00 +00:00
mlelstv
48439a854c release key_mtx on return path. 2017-05-28 14:16:05 +00:00
kre
d6a4153fe2 Redo mkoptions.sh .. much better this way, now fully automated
option sorting (no longer required option.list to be manually
sorted by long option name) and properly handles conditional
options.   Cleaner output format as well.

This allows option.list to be reordered to group related options
together ... also added more comments to it.
2017-05-28 14:14:22 +00:00
kre
a5e8ad6bb0 Needs %zu fix for sizeof as well. 2017-05-28 13:55:07 +00:00
martin
98ff51a40d Add (commented out) can bus options, CUBIETRUCK is also A20 based. 2017-05-28 11:15:59 +00:00
martin
bb62327044 Fix size_t format strings 2017-05-28 09:35:01 +00:00
macallan
8e9e89c07f g/c some unused / #if 0-ed goop, support firmware-provided EDID, get rid of
private list of video modes
tested on macppc, should Just Work(tm) on sparc64
2017-05-28 05:27:13 +00:00
nat
e1c6c0762d bt_lock is now used as the audio interrupt lock. This is more appropriate
as the interrupt lock deals with the hardware.

btsco audio works again with the new audio changes.
2017-05-28 04:12:13 +00:00
jmcneill
5ec28b3732 Enumerate CPUs, GIC, and generic timer using FDT data instead of relying
on hard-coded tables in mainbus.
2017-05-28 00:40:20 +00:00