262872 Commits

Author SHA1 Message Date
skrll
106bb42a11 Don't forget EXTRA_LINKFLAGS+= --be8 for BE kernels 2018-10-30 08:59:09 +00:00
skrll
2743beddbb Merge SUNXI completely into GENERIC 2018-10-30 07:51:09 +00:00
skrll
a59fe308df Merge EXYNOS into GENERIC completely. GENERIC nows boots on ODROID-XU4 2018-10-30 06:55:07 +00:00
ozaki-r
cb8a413a5e Use rt_update framework on updating a rtentry 2018-10-30 05:56:02 +00:00
ozaki-r
973496ef18 Avoid double rt_replace_ifa on rtrequest1(RTM_ADD)
Some callers of rtrequest1(RTM_ADD) adjust rt_ifa of an rtentry created by
rtrequest1 that may change rt_ifa (in ifa_rtrequest) with another ifa that is
different from requested one.  It's wasteful and even worse introduces a race
condition.  rtrequest1 should just use a passed ifa as is if a caller hopes so.
2018-10-30 05:54:41 +00:00
ozaki-r
954d82d49e Avoid a dangling pointer during rt_replace_ifa 2018-10-30 05:30:31 +00:00
ozaki-r
334ceb81c9 Use atomic operations for ifa_refcnt 2018-10-30 05:29:21 +00:00
ozaki-r
9b83640c45 Remove a wrong assertion in ifaref
Doing ifref on an ifa with IFA_DESTROYING is not a problem; the reference should
be dropped during the destruction of the ifa.
2018-10-30 05:27:51 +00:00
christos
d6cba4abc7 Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.
2018-10-29 22:02:25 +00:00
wiz
c23b16b56b Add comma in enumeration. 2018-10-29 21:06:13 +00:00
jmcneill
932d2dbd41 If a /chosen/framebuffer node is found, reserve physical memory claimed
by it.
2018-10-29 21:05:58 +00:00
wiz
bd01c08b37 Remove unnecessary Pp before Bl/Bd. 2018-10-29 21:04:18 +00:00
wiz
cd3f51adac New sentence, new line 2018-10-29 21:02:15 +00:00
maya
d3aa915675 Make VM_MIN_KERNEL_ADDRESS and others available in the _KMEMUSER case
as well. This affects ddb. Tested by htodd.
2018-10-29 19:43:16 +00:00
christos
28e6c3de1b Back to using _NPF_TESTING now that it does not change the semantics of
the calls, but only adds extra functionality.
2018-10-29 15:37:45 +00:00
christos
2a18a80d51 We need to have rump tests work in two modes:
1. npf unit tests. In this case only the npf subsystem is created
   and dictionaries are passed directly.
2. kernel system tests (like the ipsec natt test). In this case, npf is
   instantiated regularly as part of the kernel and dictionaries are
   passed via ioctl.

We differentiate between the two cases by checking the "mbufops" member
which is NULL, regularly and non-NULL in the npf unit tests. Previously
this was done using an ifdef which obviously can't work for both cases.
2018-10-29 15:37:06 +00:00
martin
5cc5ab64b4 If no BOARDTYPE is defined, avoid the space to separate it from the OS
release.
2018-10-29 13:53:23 +00:00
martin
cd54eb5ef0 VAX does not fully populate the register move costs table, so do not
access it w/o checks.
Hack to work around PR toolchain/53176.
2018-10-29 10:22:56 +00:00
mrg
30b672631b avoid sign/unsigned issue and for NUMNAMES to an integer when it is
compared against a value that may be -1.

fixes autoboot when boot-file is set.  (serves me right for removing
code that looked odd when it was tested :-)
2018-10-29 05:15:21 +00:00
uwe
4c629b7589 Fix indentation. 2018-10-29 01:27:39 +00:00
uwe
29dacce45c waddch - instead of enclosing every statement in #ifdef HAVE_WCHAR
just provide two separate definitions.

Same object code is generated for all four combinations of debug/wchar.
2018-10-29 01:19:54 +00:00
uwe
9635311de9 Fix operator precedence for !HAVE_WCHAR 2018-10-29 01:02:16 +00:00
uwe
8c2d3cb78d __CTRACE - don't call gettimeofday() twice. 2018-10-29 00:31:57 +00:00
uwe
d05568e5ff Make __CTRACE_init() static and ANSIfy its definition. 2018-10-29 00:25:20 +00:00
christos
3e167e7237 fix typo. 2018-10-29 00:14:37 +00:00
mrg
693d228f2b use xhci_polling_p(). this might miss when bus2 is active.
XXX: pullup-7, pullup-8.
2018-10-28 21:36:34 +00:00
aymeric
77f3631c2c Enable the global timer at attach time, it ensures that delay() works. 2018-10-28 21:08:13 +00:00
kre
33a05de6b0 Switch from using two printsignals() functions, one in trap.c
and one in (the included from bin/kill) kill.c and use just
the one in kill.c (which is amended slightly so it can work
the way that trap.c needs it to work).    This one is chosen as
it was a much nicer implementation, and because while kill is
always built into the shell, kill also exists without the shell.

Leave the old implementation #if 0'd in trap.c (but updated to
match the calling convention of the one in kill.c) - for now.

Delete references of sys_signame[] from sh/trap.c and along with
that several uses of NSIG (unfortunately, there are still more)
and replace them with the newer libc functional interfaces.
2018-10-28 18:26:52 +00:00
kre
185226c2be Use strsignal() rather than direct reference to sys_siglist[]
(apart from being cleaner, it also simplifies the code, as
strsignal() never fails ... it also removes one reference to NSIG).
2018-10-28 18:16:01 +00:00
kre
7800af09a4 Change the (commented out) setting of -DDEBUG to the form that
is most likely to be useful if someone other than me wants to
build a DEBUG shell.   NFC (it is a comment in a Makefile!)
2018-10-28 18:13:47 +00:00
aymeric
e63eecd71b Deactivate the watchdog timer during attach.
Recent u-boot starts up the watchdog timer, and we don't detect this so
e.g. my DE0 nanosoc reboots after about 20 seconds. Applying a reset to
the watchdog circuit is the only way to stop it according to the
documentation.
2018-10-28 15:06:10 +00:00
aymeric
b0bf3847e8 Define __HAVE_GENERIC_START now that it works; former startup files were
removed anyway...
2018-10-28 15:00:19 +00:00
skrll
9875238034 Fix the comment near pmap_bootstrap itself as well 2018-10-28 14:59:17 +00:00
aymeric
37deb03f7c Use virtual addresses where virtual addresses are expected. 2018-10-28 14:58:20 +00:00
skrll
9a90e0097f Consistency - NFC 2018-10-28 14:46:59 +00:00
skrll
7ff3cf3f85 Remove magic number 2018-10-28 14:45:02 +00:00
skrll
1a10dff6b6 Fix a commit 2018-10-28 14:30:30 +00:00
maxv
2c044026a6 Add #ifdef _KERNEL, vaddr_t does not exist in userland, and we don't want
externs anyway.
2018-10-28 14:12:16 +00:00
skrll
856432f7cc Restore pre-generic arm commit bootstrap behaviour.
Always call arm_fdt_cpu_bootstrap, i.e. don't depend on "/chosen" existing
in the FDT
2018-10-28 13:56:21 +00:00
jmcneill
5694907940 Add support for EFI runtime services on aarch64. 2018-10-28 10:21:42 +00:00
jmcneill
c452ed84a7 Document the VA range reserved for EFI runtime services. 2018-10-28 10:18:34 +00:00
jmcneill
24519eb71b Make EFI runtime services available to the kernel. Bump version to 1.5. 2018-10-28 10:17:47 +00:00
uwe
16e2d6b317 Repair after 1.2234 - restore obsoleted cat pages, I must have been
very confused about how we do it now.
2018-10-28 00:44:37 +00:00
christos
bc30e841a8 handle stdin with header partially read. 2018-10-27 23:40:04 +00:00
christos
0350faa728 new tzcode 2018-10-27 22:32:54 +00:00
christos
273e6379f5 Welcome tzcode-2018g
Changes to code

    When generating TZif files with leap seconds, zic no longer uses a
    format that trips up older 32-bit clients, fixing a bug introduced
    in 2018f.  (Reported by Daniel Fischer.)  Also, the zic workaround
    for QTBUG-53071 now also works for TZif files with leap seconds.

    The translator to rearguard format now rewrites the line
    "Rule Japan 1948 1951 - Sep Sat>=8 25:00 0 S" to
    "Rule Japan 1948 1951 - Sep Sun>=9  1:00 0 S".
    This caters to zic before 2007 and to Oracle TZUpdater 2.2.0
    and earlier.  (Reported by Christos Zoulas.)

  Changes to documentation

    tzfile.5 has new sections on interoperability issues.
2018-10-27 22:29:24 +00:00
kre
7bf3a2c146 tzdata 2018g 2018-10-27 20:29:09 +00:00
kre
b51d173ea9 Merge tzdata2018g 2018-10-27 20:27:17 +00:00
kre
81ac8e1937 Import tzdata2018g from ftp://ftp.iana.org/tz/releases/tzdata2018g.tar.gz
Summary of changes in tzdata2018g (2018-10-26 22:22:45 -0700):

    Morocco switches to permanent +01 on 2018-10-27.
2018-10-27 20:26:38 +00:00
skrll
4b1b3fbdce Trailing whitespace 2018-10-27 13:26:23 +00:00