Commit Graph

251132 Commits

Author SHA1 Message Date
christos af94e2cae1 remove me. 2017-06-03 14:47:52 +00:00
christos 9457db07cd remove my copyright (and clauses 3/4) 2017-06-03 14:47:25 +00:00
christos b7db27c7e4 remove my copyright 2017-06-03 14:46:51 +00:00
christos 1a4bdd5296 remove my copyright. 2017-06-03 14:46:29 +00:00
kre a12c6cfae6 Complete the special request by quoting chapter & verse from POSIX
as to why ${011} is ${11} and not ${9} (that is, why we interpret it
that way, the "why could it not be the other way?" is just "because
that is not how it was ever implemented".
2017-06-03 14:45:59 +00:00
christos 823b06f593 remove my copyright. 2017-06-03 14:44:12 +00:00
skrll 5183b3d2d5 Adjust the output of {ldr,str}x instructions slightly and deal with the
writeback bit.
2017-06-03 11:51:59 +00:00
kre 25950655c8 By special request, add a check that ${011} is ${11} not ${9} (etc) and
that ${08} is not an error.
2017-06-03 11:23:01 +00:00
kre dd6b641408 Fixes to shell expand (that is, $ stuff) from FreeBSD (implemented
differently...)

In particular	${01} is now $1 not $0  (for ${0any-digits})

		${4294967297} is most probably now ""
			(unless you have a very large number of params)
		it is no longer an alias for $1  (4294967297 & 0xFFFFFFFF) == 1

		$(( expr $(( more )) stuff )) is no longer the same as
		$(( expr (( more )) stuff )) which was sometimes OK, as in:
			$(( 3 + $(( 2 - 1 )) * 3 ))
		but not always as in:
			$(( 1$((1 + 1))1 ))
		which should be 121, but was an arith syntax error as
			1((1 + 1))1
		is meaningless.

Probably some more.   This also sprinkles a little const, splits a big
func that had 2 (kind of unrelated) purposes into two simpler ones,
and avoids some (semi-dubious) modifications (and restores) in the input
string to insert \0's when they were needed.
2017-06-03 10:31:16 +00:00
kre 3806d6f4e4 Add some extra sub-tests checking splitting of ${#var} - just for my
piece of mind (to verify I was not breaking anything here.)

Also added some commentary better explaining why one of the tests of splitting
quoted variable expansions is almost certainly incorrect (both the tests,
and what sh does) ... though bash does the same as us, so all is not lost!
2017-06-03 10:27:05 +00:00
mrg ba9d16c754 there are no copyright/license statements from "Terrence R. Lambert"
requiring attribution any in our tree any more.

remove it from our list here.
2017-06-03 09:00:35 +00:00
abhinav 4b784bbbb4 Fix typo: s/DIANOSTIC/DIAGNOSTIC 2017-06-03 08:44:59 +00:00
abhinav 7fecf65cb1 Add `instantiate' 2017-06-03 07:30:50 +00:00
jmcneill 004b2fe30d Trigger a software interrupt if any packets were transmitted in
lan9118_start to workaround a possible issue where completion interrupts
are missed and the watchdog timer fires.
2017-06-02 23:39:08 +00:00
jmcneill 58a6ed319e Create /dev/openfirm device for ofctl(8). 2017-06-02 22:20:21 +00:00
macallan 6c298c65b4 enable font loading / screen resizing 2017-06-02 22:08:00 +00:00
jmcneill 254e5cd5bf Sleep before reboot/shutdown to let uart fifo flush 2017-06-02 21:26:20 +00:00
skrll 7e8ae6f74d Fix the fix by removing redundant lines. Thanks chuq. 2017-06-02 21:20:47 +00:00
jmcneill 704bbb2cea Add driver for ARM Motherboard Express uATX system control registers. Use
this to make "poweroff" DTRT in qemu (and hopefully on real hardware too).
2017-06-02 21:16:42 +00:00
jmcneill 08e7d9faf5 Add SMP support to VEXPRESS_A15 kernel. Enable with '-smp 2' on qemu
command line.
2017-06-02 20:16:05 +00:00
skrll 83a018d3cb Fix up some instructions. Prompted by chuq. 2017-06-02 19:58:31 +00:00
kamil e8043b0019 Convert EV_SET(2) back into macro again
This retains compatibility with other moder BSDs if someone uses:
"#ifdef EV_SET".

This code also casts the last parameter to intptr_t, as other BSDs keep
this argument with a different type void*.

This change renames function EV_SET to EV_SET_, and calls it from EV_SET().

Credit to <christos> and <kre> for feedback.

Sponsored by <The NetBSD Foundation>
2017-06-02 19:44:06 +00:00
macallan 1322169bda enable font loading and screen resizing, now that the glyph cache can be
reconfigured whenever needed
2017-06-02 19:35:54 +00:00
macallan 9dac688052 - add a cookie to show_screen_cb()
- call show_screen_cb() when loading a font into a visible screen, so this can
  be used to track parameters by drivers that use the glyph cache
2017-06-02 19:33:51 +00:00
macallan 6743ac6be4 make glyph caches reconfigurable 2017-06-02 19:30:10 +00:00
para 2c8d4f6106 pool_init does not copy its name argument
therefore don't pass in a stack allocated buffer

vmstat -mv shows pool(s) with broken name(s)

use the name argument passed into wqinput_create directly
which is a static string in all 4 callee cases

(workqueue_create/workqueue_init copies the name argument)
2017-06-02 19:10:19 +00:00
martin bdc5add69f Update to rawrite32 1.0.5 (new signatures to avoid scary windows
warnings)
2017-06-02 18:19:33 +00:00
abhinav e796b9d453 Fix typo 2017-06-02 17:42:51 +00:00
jmcneill ccba8120e3 Switch VEXPRESS_A15 kernel to use FDT and GENERIC.common. The dtb for this
kernel can be found in the sysutils/dtb-arm-vexpress package as
vexpress-v2p-ca15-tc1.dtb
2017-06-02 15:22:47 +00:00
jmcneill 636d239ab9 gpiokeys depends on sysmon_envsys and sysmon_power 2017-06-02 15:09:16 +00:00
jmcneill 1f383b3950 Add fdt glue for ARM PrimeCell UART (PL011). 2017-06-02 14:30:58 +00:00
jmcneill faf8273e90 Allow platform code to specify the UART frequency for consinit 2017-06-02 13:53:28 +00:00
jmcneill e9d9683705 Fix interrupt-map support on vexpress-a15 and try to avoid unnecessary
calls to kmem_alloc.
2017-06-02 13:12:33 +00:00
jmcneill 0bd802df72 Add fdt glue for ARM PrimeCell Multimedia Card Interface (MMCI). 2017-06-02 11:04:01 +00:00
jmcneill 4060e118b0 Separate clock frequency from maximum supported bus frequency. 2017-06-02 11:01:15 +00:00
jmcneill 5e4a054956 Add fdt glue for SMSC LAN9118 ethernet. 2017-06-02 10:46:07 +00:00
knakahara 6623cb2c35 rename crypto_mtx to cryptodev_mtx
It is used by cryptodev.c and ocryptodev.c only.
2017-06-02 09:46:57 +00:00
msaitoh 11e4957659 - Print NVM Image Version, PHY FW Revision, NVM Map version and OEM NVM
Image version
- s/TrackID/ETrackID/
2017-06-02 08:16:52 +00:00
ozaki-r 4ce45a7981 Assert inph_locked on ipsec_pcb_skip_ipsec (was IPSEC_PCB_SKIP_IPSEC)
The assertion confirms SP caches are accessed under inph lock (solock).
2017-06-02 03:41:20 +00:00
ozaki-r a11fe34388 Rename IPSEC_PCBHINT_MAYBE to IPSEC_PCBHINT_UNKNOWN
MAYBE is maybe unclear.
2017-06-02 03:39:28 +00:00
ozaki-r e808b63b2d Get rid of redundant NULL check (NFC) 2017-06-02 03:34:10 +00:00
ozaki-r 401fa112b3 Tweak header file inclusions 2017-06-02 03:32:51 +00:00
kre f0acc68ec6 Add a new test case "nested_arith" (that is, things like $(( 1 + $(( 2 )) ))
which will currently fail (some of the sub-tests, but this one stops on
first failure, so the test simply fails.)  This will be corrected later today.
2017-06-02 01:50:48 +00:00
kre 3782bd48c9 Add 3 new subtests to the shell_params test case. These test currently
broken behaviour (so for now, 3 of 15 subtests will fail).   This will
be corrected later today.
2017-06-02 01:48:13 +00:00
kre 06627d31e7 One more weird test of parsing (and correctly understanding) words
whose meaning is defined entirely by context.

For those who read commit messages, and want a (small) challenge,
work out where (and what) to insert as punctuation/operator chars
in the following to produce 3 ines of output, and what those will be:

	for in in in do in do case in in in echo do do echo in esac done

(There are no comments, quotes of any kind, or any kind of sub-shell,
including cmd substitutions)  With correct non alpha-numeric chars added,
it works.
2017-06-02 01:45:06 +00:00
kre bdbf3d66ba Guard against EVN being set, and possibly referencing an unset
variable, when we are running tests with sh -u
2017-06-02 01:38:44 +00:00
ozaki-r 243e38c0a1 Change the prefix of function names of SADB API handlers to key_api_
By doing so we can easily distinguish them from other utility functions.
And so we can easily know that they are all called from key_parse and
applied assumptions that the arguments are always non-NULL and they
are always called from userland, i.e., never called from interrupt
context (softint). As a result, we can omit some tedious assertions
in the functions.
2017-06-02 01:22:50 +00:00
ozaki-r 56383415f1 Add IPSEC_KEY_DEBUG
Enable the debugging feature of IPsec key (sysctl net.key.debug)
on rump kernels if the ATF test is run with IPSEC_KEY_DEBUG=true.
2017-06-02 01:18:51 +00:00
jmcneill 1fe21ada46 The "ranges" property provides a means of translating between the
address space of a bus and the address space of the bus node's parent.
Translate addresses using these rules in fdtbus_get_reg{,64}.
2017-06-02 01:07:53 +00:00
jmcneill 35bef7bd3d Rewrite interrupt-map support based on ePAPR spec. 2017-06-02 00:55:26 +00:00