Commit Graph

260798 Commits

Author SHA1 Message Date
jmcneill cdd95abb51 Add support for RK3399 2018-08-12 19:10:14 +00:00
skrll 0d06839b32 Fix GEMINI build 2018-08-12 18:42:08 +00:00
jmcneill 8b9358a3ae Only attempt to set interrupt affinity if we have more than one IRQ. 2018-08-12 18:39:59 +00:00
maya 2ae43603e5 Try the more likely gfortran instead of g77.
g77 has likely not shipped as a binary in a long time.

No change for netbsd src as it has no fortran code, no change for pkgsrc
because it passes ${FC} for fortran packages.
2018-08-12 18:36:27 +00:00
jmcneill b005a4369f Add rk3399-rockpro64.dts 2018-08-12 18:01:22 +00:00
jmcneill a91411bd2d Add dts for ROCKPro64 2018-08-12 18:01:03 +00:00
jmcneill 5923de4ebf Fix USB2 on RK3399 2018-08-12 18:00:32 +00:00
sevan b2355a58bc Remove commented out BPFJIT & SLJIT options as they are provided as loadable
modules already.

Heads up by <leot> <christos>
2018-08-12 17:59:21 +00:00
jmcneill 8e3f2e9780 Remove a sneaky KASSERT 2018-08-12 17:46:49 +00:00
skrll 1bfb364cf8 Provide and use cpu_mpidr_aff_read in psci_fdt_bootstrap 2018-08-12 17:21:35 +00:00
skrll 14945881da Whitespace 2018-08-12 17:16:18 +00:00
jmcneill f00446168a Move rk3399 dtb files to the correct location 2018-08-12 17:15:56 +00:00
jmcneill 854d7d089c arm: Add support for Rockchip RK3399 SoC. 2018-08-12 17:14:42 +00:00
christos eec2e17cdb fix sets for new bind 2018-08-12 17:11:55 +00:00
jmcneill 8cf9446adf Enable support for GICv3 and Rockchip RK3399 2018-08-12 16:49:25 +00:00
jmcneill 8c7bec3054 Add support for Rockchip RK3399 SoC. 2018-08-12 16:48:04 +00:00
jmcneill e54cae7795 Use more generic rk3288 compatible string, and do clock assignments when present 2018-08-12 16:34:28 +00:00
jmcneill 69bb614b1d Register shutdown handlers 2018-08-12 16:33:58 +00:00
christos bb6b99b5bf handle variable kernel vm min address 2018-08-12 16:07:27 +00:00
christos 61bf19f212 i386 does not have a variable min address (yet) 2018-08-12 16:00:41 +00:00
christos 5ceff8e2e0 reorder 2018-08-12 15:55:26 +00:00
christos 7de69a40b6 Add libz for new libisc needing it. 2018-08-12 15:39:22 +00:00
christos 4cb865ca37 Add -lz 2018-08-12 15:37:06 +00:00
maxv dc70fdb733 mark two entries as done 2018-08-12 15:33:36 +00:00
maxv c33dcb1810 More ASLR: randomize the location of the PTE area. The PTE slot is not
created in locore anymore, but a little later; by using the already
entered L4 page, rather than the recursive slot itself (which doesn't
exist yet).

In the prekern we still map the slot - the prekern behaves as an external
locore -, because we need it as part of the randomization/relocation
work. The kernel then removes this slot, and regenerates a randomized
one.

Tested on GENERIC and GENERIC_KASLR, Xen doesn't have it and dom0 still
boots fine.
2018-08-12 15:31:01 +00:00
christos 5b4ae9b813 make things link again. 2018-08-12 15:05:13 +00:00
christos 85f3f7773a add libns 2018-08-12 14:32:39 +00:00
christos 640826affb undo the time warp 2018-08-12 13:51:58 +00:00
maxv afb643e127 Move the PCPU area from slot 384 to slot 510, to avoid creating too much
fragmentation in the slot space (384 is in the middle of the kernel half
of the VA).
2018-08-12 13:31:16 +00:00
christos dd37b37872 mention new bind 2018-08-12 13:07:41 +00:00
christos a8788563a2 hook bind 2018-08-12 13:03:08 +00:00
christos 319e934b21 merge conflicts, add build glue. 2018-08-12 13:02:42 +00:00
christos f30cf5e982 unhook bind 2018-08-12 13:02:41 +00:00
christos c892bd9c3b merge conflicts, add build glue. 2018-08-12 13:02:24 +00:00
christos 491e774596 switch to the new bind. 2018-08-12 13:01:55 +00:00
maxv d968ad5c7c Move the PTE area from slot 255 to slot 509. I've never understood why we
put it on 255; the "kernel" half of the VM space begins on slot 256, so
if anything, the PTE area should have been above it, not below.

Virtually extend the user slots in slotspace, because we don't want
(randomized) kernel mappings to land on slot 255.

The prekern is updated accordingly.

Tested on GENERIC, GENERIC_KASLR and XEN3_DOM0.
2018-08-12 12:42:53 +00:00
maxv c300f517f0 Introduce PDIR_SLOT_USERLIM, which indicates the limit of the user slots.
Use it instead of PDIR_SLOT_PTE when we just want to iterate over the
user slots. Also use it in SVS, I had hardcoded 255 because there was no
proper define (which there now is).
2018-08-12 12:23:33 +00:00
christos d68c78b834 Import bind-9.12.2-P2 since bind-9.10 (the last BSD version) is
now out of support.  The changes since our last version imported
(9.10.7) version are too big to include inline here; please consult
the CHANGES file in this directory.
2018-08-12 12:06:53 +00:00
maxv 4d79600f1c Reduce the minefield: zero out the pdir only once, at the beginning of
the function. This eliminates one assumption on the order of the VM
areas.
2018-08-12 11:51:42 +00:00
christos 9b2c7d6541 fix broken library variable definitions (inconsistencies between
bsd.README and bsd.prog.mk)
2018-08-12 11:50:51 +00:00
maxv 9c9be108fe Randomize the main memory on Xen, same as native. Tested on amd64-dom0. 2018-08-12 10:50:35 +00:00
maxv 0262a62fe4 Take the last area into account, there is a hole before it. 2018-08-12 10:45:27 +00:00
skrll 1031af72da Remove dependency of __BITS on MAX/MIN by providing __MAX/__MIN 2018-08-12 10:43:04 +00:00
skrll 40ee8ddd31 Fixup previous to not break ping protocol. My bad. 2018-08-12 09:59:30 +00:00
maxv 31cede677d Rename 'slotspace' -> 'slotarea' in UVM, to avoid (future) collision with
the x86 slotspace structure.
2018-08-12 09:29:16 +00:00
mrg c41e7280c4 conditionally set MACHINE_ARCH to arm, like other makefiles.
fixes epoc32 builds.
2018-08-12 09:27:02 +00:00
maxv ab2b15ae21 Add a new area, SLAREA_HYPV, which indicates the slots used by the
hypervisor, in our case Xen.
2018-08-12 09:05:52 +00:00
christos 05d8d1c80f Add WITHOUT_GZIP 2018-08-12 09:03:42 +00:00
christos 4685e01b74 add WITHOUT_GZIP for the tools build. 2018-08-12 09:03:21 +00:00
martin b054f36b91 Insert a .WAIT between building of the bootloaders and the CD images,
trying to avoid a build issue as seen on the build cluster:

copying image /home/builds/ab/HEAD/acorn32/201808111340Z-obj/home/source/ab/HEAD/src/distrib/acorn32/ramdisk/ramdisk.fs into netbsd-INSTALL.tmp (2355200 bytes)
done copying image
exiting
rm -f netbsd-INSTALL.gz
cp: /home/builds/ab/HEAD/acorn32/201808111340Z-dest/usr/mdec/boot32,ffa: No such file or directory
2018-08-12 09:02:02 +00:00