CVS commit: src/sys/arch/amd64/amd64

2018-01-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 08:30:53 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S trap.c Log Message: Fix the double-fault handler. We're executing on ist1 and must not jump out of it, so don't enable interrupts. And use the

CVS commit: src/sys/arch/amd64/amd64

2018-01-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 20 07:43:28 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Improve two comments and a KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.291 -r1.292 src/sys/arch/amd64/amd64/machdep.c

CVS commit: src/sys/arch/amd64/stand/prekern

2018-01-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jan 15 22:38:01 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.h Log Message: avoid typedef redefinitiones To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19

CVS commit: src/sys/arch/amd64/conf

2018-01-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jan 13 12:38:16 UTC 2018 Modified Files: src/sys/arch/amd64/conf: ALL GENERIC MODULAR XEN3_DOM0 XEN3_DOMU Log Message: added commented out AUTOFS pseudo-device entries To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/amd64/amd64

2018-01-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jan 12 09:12:02 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Split svs_page_add in two, one half will be used for other purposes, and update a comment. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/amd64

2018-01-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 11 09:00:04 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S machdep.c src/sys/arch/amd64/include: frameasm.h types.h Log Message: Declare new SVS_* variants: SVS_ENTER_NOSTACK and SVS_LEAVE_NOSTACK. Use

CVS commit: src/sys/arch/amd64/amd64

2018-01-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jan 10 20:51:11 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Restrict the check: SMAP faults are always protection violations, as the SDM points out, so make sure we have PGEX_P. This way NULL

CVS commit: src/sys/arch/amd64/conf

2018-01-10 Thread Kengo NAKAHARA
Module Name:src Committed By: knakahara Date: Wed Jan 10 11:11:20 UTC 2018 Modified Files: src/sys/arch/amd64/conf: ALL GENERIC Log Message: add ipsec(4) interface to amd64/GENERIC and amd64/ALL configs. To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77

CVS commit: src/sys/arch/amd64/conf

2018-01-07 Thread Martin Husemann
Module Name:src Committed By: martin Date: Mon Jan 8 06:29:19 UTC 2018 Modified Files: src/sys/arch/amd64/conf: files.amd64 Log Message: Now that SVS is defined in file.x86, do not repeat it here To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99

CVS commit: src/sys/arch/amd64/amd64

2018-01-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 7 16:47:22 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: genassym.cf Log Message: make this compile again To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/arch/amd64/amd64/genassym.cf

CVS commit: src/sys/arch/amd64/conf

2018-01-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 7 16:10:52 UTC 2018 Modified Files: src/sys/arch/amd64/conf: GENERIC Log Message: Don't enable SVS yet. To generate a diff of this commit: cvs rdiff -u -r1.477 -r1.478 src/sys/arch/amd64/conf/GENERIC Please note that

CVS commit: src/sys/arch/amd64/amd64

2018-01-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 6 08:44:01 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Mmh, I made a mistake in r1.10 - I forgot to update this function call. To generate a diff of this commit: cvs rdiff -u -r1.14

CVS commit: src/sys/arch/amd64/amd64

2018-01-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 2 18:54:26 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Stop sharing the double-fault stack. It is embedded in .data, and we won't want that in the future. This has always been wrong anyway,

CVS commit: src/sys/arch/amd64/amd64

2018-01-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 2 18:41:14 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Use decimal numbering - hex is just misleading -, use ZTRAP_NJ for NMIs, and declare intrspurious independently. To generate a diff

CVS commit: src/sys/arch/amd64/conf

2018-01-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 1 08:14:14 UTC 2018 Modified Files: src/sys/arch/amd64/conf: files.amd64 Log Message: Compile the prekern entry point only under KASLR. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97

CVS commit: src/sys/arch/amd64/include

2017-12-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 31 07:23:09 UTC 2017 Modified Files: src/sys/arch/amd64/include: pcb.h Log Message: gc unused To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/arch/amd64/include/pcb.h Please note that diffs are not

CVS commit: src/sys/arch/amd64/conf

2017-12-30 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 31 03:38:06 UTC 2017 Modified Files: src/sys/arch/amd64/conf: GENERIC Log Message: explain that a.out never shipped on x86_64 and put back compat_nomid To generate a diff of this commit: cvs rdiff -u -r1.475 -r1.476

CVS commit: src/sys/arch/amd64/stand/prekern

2017-12-22 Thread Ryo ONODERA
Module Name:src Committed By: ryoon Date: Sat Dec 23 06:48:30 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: Makefile Log Message: Use ldscript from src to fix build.sh build To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/arch/amd64/stand/prekern

2017-12-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Dec 22 07:37:27 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S trap.S Log Message: Sync comments with reality. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7

CVS commit: src/sys/arch/amd64/stand/prekern

2017-12-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 21 14:32:06 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Remove unused macros. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/stand/prekern/mm.c Please

CVS commit: src/sys/arch/amd64/amd64

2017-12-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 9 00:52:41 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: adjust for new hexdump signature To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/sys/arch/amd64/amd64/trap.c

CVS commit: src/sys/arch/amd64/amd64

2017-12-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Dec 8 21:52:21 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: make the TRAP_SIGDEBUG code less intrusive. To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108

CVS commit: src/sys/arch/amd64/amd64

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 23:13:17 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Put back the old syscall glue for netbsd32 binaries, and also TRAP_SIGDEBUG while I am at it. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/amd64

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 23:11:50 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c src/sys/arch/amd64/conf: files.amd64 Added Files: src/sys/arch/amd64/amd64: compat_13_machdep.c Log Message: Save maxv@

CVS commit: src/sys/arch/amd64/amd64

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 16:22:22 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Keep fs/gs the same for the signal context; otherwise calling things like __lwp_getprivate_fast() from a signal handler

CVS commit: src/sys/arch/amd64/amd64

2017-12-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Dec 7 03:25:51 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Attempt to clarify panic messages for null pointer access/execute. To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106

CVS commit: src/sys/arch/amd64/conf

2017-12-05 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Dec 5 21:00:27 UTC 2017 Modified Files: src/sys/arch/amd64/conf: GENERIC Log Message: Add missing wsbell, commented out with a note that it's apparently only a module by default. This way people making their own configs

CVS commit: src/sys/arch/amd64/conf

2017-12-05 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Dec 5 20:32:24 UTC 2017 Modified Files: src/sys/arch/amd64/conf: GENERIC Log Message: Sort the file system options by which fs they apply to. To generate a diff of this commit: cvs rdiff -u -r1.471 -r1.472

CVS commit: src/sys/arch/amd64/amd64

2017-12-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 2 15:36:24 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: Remove a piece of COMPAT_13, that I mistakenly didn't commit three hours ago (in my change to drop COMPAT_13 on amd64). To

CVS commit: src/sys/arch/amd64

2017-12-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 2 12:40:03 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c src/sys/arch/amd64/conf: ALL GENERIC Log Message: Drop COMPAT_10 on amd64. The support for it comes down to one ifdef in trap.c - code that is

CVS commit: src/sys/arch/amd64/conf

2017-12-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 2 09:59:02 UTC 2017 Modified Files: src/sys/arch/amd64/conf: ALL Log Message: Remove options that do not exist on amd64. To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/arch/amd64/conf/ALL Please

CVS commit: src/sys/arch/amd64/amd64

2017-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Dec 1 21:22:45 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c process_machdep.c Log Message: Don't even bother with the trap frame, and force the default values. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/amd64/amd64

2017-11-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 28 08:43:49 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: spl.S Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/arch/amd64/amd64/spl.S Please note that diffs are not public

CVS commit: src/sys/arch/amd64/amd64

2017-11-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 27 09:18:01 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c process_machdep.c Log Message: Inline _FRAME_GREG, and mask only 16 bits of the segment registers, otherwise the upper 48 bits may contain stack

CVS commit: src/sys/arch/amd64/amd64

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 15:00:16 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Update a comment, and use testw instead. To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.143

CVS commit: src/sys/arch/amd64/amd64

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 14:54:43 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S mptramp.S Log Message: Hide a bunch of raw symbols. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 14:29:48 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Oh, damn. Obviously I forgot one case here: an already-mapped region could be contained entirely in the region we're trying to create.

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 11:08:35 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: prng.c Log Message: I forgot to say in my previous commit that the PRNG is inspired from a conversation with Taylor and Thor on tech-kern@. (just add a

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 11:01:09 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: Makefile mm.c prekern.c prekern.h Added Files: src/sys/arch/amd64/stand/prekern: prng.c Log Message: Add a PRNG for the prekern, based on

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 10:21:20 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S prekern.h Log Message: Add rdrand. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/amd64/stand/prekern/locore.S cvs

CVS commit: src/sys/arch/amd64/conf

2017-11-25 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Nov 25 16:32:48 UTC 2017 Modified Files: src/sys/arch/amd64/conf: ALL GENERIC Log Message: Add qemufwcfg (QEMU Firmware Configuration device) To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72

CVS commit: src/sys/arch/amd64/amd64

2017-11-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 21 10:42:44 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Remove unused variables. To generate a diff of this commit: cvs rdiff -u -r1.276 -r1.277 src/sys/arch/amd64/amd64/machdep.c Please

CVS commit: src/sys/arch/amd64/amd64

2017-11-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 21 09:58:09 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Remove unused symbol - it is aligned to 4096 and this reduces the number of possible locations for .bss in KASLR kernels. To generate a

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 21 07:56:05 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c prekern.h Log Message: Clean up and add some ASSERTs. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 17 07:07:52 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: Makefile console.c elf.c pdir.h prekern.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 15 20:45:16 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c prekern.h Log Message: Small cleanup. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/amd64/stand/prekern/elf.c

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 15 20:25:29 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Mmh, should be <=. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/amd64/stand/prekern/mm.c Please note

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 15 18:44:34 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c prekern.h Log Message: Define MM_PROT_* locally. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 14 13:58:08 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S redef.h Log Message: Remove XXX: set FRAMESIZE to the kernel value. Verily I don't understand why we are doing that in the non-kaslr kernels,

CVS commit: src/sys/arch/amd64/conf

2017-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 14 10:15:40 UTC 2017 Modified Files: src/sys/arch/amd64/conf: Makefile.amd64 kern.ldscript.kaslr Log Message: Split each kernel section into sub-blocks of approximately 2MB. The newly created sections are named .origname.i,

CVS commit: src/sys/arch/amd64/conf

2017-11-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 14 09:56:26 UTC 2017 Modified Files: src/sys/arch/amd64/conf: Makefile.amd64 Log Message: Remove max-page-size on KASLR, it doesn't play any role. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 14 07:06:34 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: Makefile console.c elf.c mm.c prekern.c prekern.h Log Message: Add -Wstrict-prototypes, and fix each warning. To generate a diff of this

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 13 21:33:42 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: One more ASSERT, won't hurt. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/amd64/stand/prekern/elf.c

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 13 21:14:04 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c prekern.h Log Message: Change the mapping logic: don't group sections of the same type into segments, and rather map each section

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 13 20:03:26 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: Makefile prekern.h Log Message: Link libkern in the prekern, and remove redefined functions. To generate a diff of this commit: cvs rdiff -u -r1.1

CVS commit: src/sys/arch/amd64/conf

2017-11-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 13 20:01:48 UTC 2017 Modified Files: src/sys/arch/amd64/conf: kern.ldscript.kaslr Log Message: Use SUBALIGN, to force the alignment at the section level, and remove the inter-section ALIGN which doesn't do anything since

CVS commit: src/sys/arch/amd64/include

2017-11-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Nov 13 07:06:49 UTC 2017 Modified Files: src/sys/arch/amd64/include: vmparam.h Log Message: Remove superfluous word in comment. Noted by Geoff Wing. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45

CVS commit: src/sys/arch/amd64/include

2017-11-11 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Nov 11 20:23:49 UTC 2017 Modified Files: src/sys/arch/amd64/include: vmparam.h Log Message: bump PAGER_MAP_DEFAULT_SIZE to 512MB. this should allow more concurrent IOs to be possible, and i'm unable to see pager_map contention

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 11 13:50:57 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Detect collisions from bootspace directly. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 10 08:52:57 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.h Log Message: Implement memcpy, the builtin version does not work with variable sizes. To generate a diff of this commit: cvs rdiff -u -r1.7

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 10 08:05:38 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S prekern.h Log Message: Add cpuid and rdseed. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 9 15:56:56 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c prekern.h Log Message: Define utility functions as inlines in prekern.h. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9

CVS commit: src/sys/arch/amd64/conf

2017-11-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 9 15:46:48 UTC 2017 Modified Files: src/sys/arch/amd64/conf: Makefile.amd64 Added Files: src/sys/arch/amd64/conf: kern.ldscript.kaslr Log Message: Use another ld script for kaslr kernels, in which there are no

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 9 15:24:39 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c prekern.h Log Message: Fill in the page padding. Only .text is pre-filled by the ld script, but this will change in the future. To generate

CVS commit: src/sys/arch/amd64/amd64

2017-11-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 8 18:29:04 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Don't fall through. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/arch/amd64/amd64/vector.S Please note that

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 5 16:27:18 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: pdir.h Log Message: Remove unused. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/stand/prekern/pdir.h Please note

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 5 16:26:15 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c prekern.c prekern.h Log Message: Mprotect the segments in mm.c using bootspace, and remove the now unused fields of elfinfo. To generate a

CVS commit: src/sys/arch/amd64/stand/prekern

2017-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 1 17:00:18 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: Handle absolute symbols. Since my linux_sigcode.S::rev1.4 there are two Elf_Rela that point to the NULL symbol - which the prekern

CVS commit: src/sys/arch/amd64/acpi

2017-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 1 09:47:53 UTC 2017 Modified Files: src/sys/arch/amd64/acpi: acpi_wakeup_low.S Log Message: Use NENTRY -> END. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/acpi/acpi_wakeup_low.S Please

CVS commit: src/sys/arch/amd64/amd64

2017-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 1 09:38:43 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: linux32_sigcode.S linux_sigcode.S netbsd32_sigcode.S Log Message: More END(). In linux_sigcode.S we only provide symbols, not defined as functions.

CVS commit: src/sys/arch/amd64/conf

2017-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 1 09:31:24 UTC 2017 Modified Files: src/sys/arch/amd64/conf: Makefile.amd64 Log Message: Add linux_sigcode.o, otherwise it doesn't get rebuilt. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60

CVS commit: src/sys/arch/amd64/amd64

2017-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 1 09:17:28 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: copy.S cpufunc.S Log Message: Don't fall through functions, explicitly jump instead. While here don't call smap_enable twice (harmless), and add END() markers.

CVS commit: src/sys/arch/amd64/include

2017-11-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 1 07:14:29 UTC 2017 Modified Files: src/sys/arch/amd64/include: segments.h Log Message: Remove unused macros and LDT entries. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/sys/arch/amd64/amd64

2017-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 30 17:06:42 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: copy.S cpufunc.S linux32_sigcode.S linux_sigcode.S vector.S Log Message: Always use END() markers when declaring functions in assembly, so that ld

CVS commit: src/sys/arch/amd64/conf

2017-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 29 17:19:14 UTC 2017 Modified Files: src/sys/arch/amd64/conf: GENERIC_KASLR Log Message: Mmh, we don't map the CTF section on kaslr kernels, so disable KDTRACE_HOOKS for now. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 29 11:38:43 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c Log Message: Fix a few error messages, and be a little more verbose. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 29 11:28:30 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c locore.S mm.c prekern.c prekern.h Log Message: Randomize the kernel segments independently. That is to say, put text, rodata and data

CVS commit: src/sys/arch/amd64/amd64

2017-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 29 10:25:28 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Use bootspace.head.va instead of the direct map. Otherwise there's the assumption that the offsets contained in sh_offset in physical

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 29 10:07:08 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: Add three functions and start using them; will be more useful soon. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/sys/arch/amd64/amd64

2017-10-28 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Sat Oct 28 20:57:17 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: genassym.cf locore.S Log Message: Use FLAT_RING3_CS64 (defined in Xen public headers) instead of numeric value. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/amd64/amd64

2017-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 28 20:06:31 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: It appears that Xen remaps the userland %cs to 0xE033. So add it to the checklist. Otherwise we're going through Luexit32: %fs gets

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 28 19:28:11 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Fix a mistake I made in the very first revision. The calculation of the number of slots was incorrect in some cases, and it could

CVS commit: src/sys/arch/amd64/amd64

2017-10-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 21 08:08:26 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S trap.c Log Message: Use labels instead of disassembling *(%rip). intrfastexit is now the only place where the segregs can fault. To generate a diff

CVS commit: src/sys/arch/amd64/amd64

2017-10-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 21 07:23:22 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Handle by default. To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/arch/amd64/amd64/trap.c Please note that diffs

CVS commit: src/sys/arch/amd64/conf

2017-10-19 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Thu Oct 19 23:59:56 UTC 2017 Modified Files: src/sys/arch/amd64/conf: GENERIC Log Message: add bwfm To generate a diff of this commit: cvs rdiff -u -r1.466 -r1.467 src/sys/arch/amd64/conf/GENERIC Please note that diffs are

CVS commit: src/sys/arch/amd64/amd64

2017-10-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 19 20:27:12 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Use cmpw. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/sys/arch/amd64/amd64/locore.S Please note that diffs are

CVS commit: src/sys/arch/amd64

2017-10-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 19 18:36:31 UTC 2017 Modified Files: src/sys/arch/amd64/acpi: acpi_wakeup_low.S src/sys/arch/amd64/amd64: locore.S machdep.c Log Message: Improve our segregs model. Pass 1/3. Right now, we are saving and restoring

CVS commit: src/sys/arch/amd64/amd64

2017-10-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Oct 19 09:32:01 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: process_machdep.c Log Message: Make sure we don't go farther with 32bit LWPs. There appears to be some confusion in the code - in part introduced by myself -,

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 18 17:12:42 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: If a branch is already there, use it and don't create a new one. This way we can call mm_map_tree twice with neighboring regions. To

CVS commit: src/sys/arch/amd64/amd64

2017-10-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 17 07:48:10 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S machdep.c Log Message: Move %ds and %es into the GDT on 64bit LWPs. To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133

CVS commit: src/sys/arch/amd64/amd64

2017-10-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 17 07:02:50 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: copy.S Log Message: fix comment, rdx, not edx To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amd64/amd64/copy.S Please note that

CVS commit: src/sys/arch/amd64/amd64

2017-10-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 15 13:34:24 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Mmh, don't forget to clear the TLS gdt slots on Xen. Otherwise, when doing a lwp32->lwp64 context switch, the new lwp can use the slots

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 15 06:37:32 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Descend the page tree from L4 to L1, instead of allocating a separate branch and linking it at the end. This way we don't need to

CVS commit: src/sys/arch/amd64/amd64

2017-10-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 11 16:56:26 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Use bootspace. To generate a diff of this commit: cvs rdiff -u -r1.263 -r1.264 src/sys/arch/amd64/amd64/machdep.c Please note that

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 11 16:21:06 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: Make sure we're relocating a relocatable kernel. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 11 16:18:11 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S Log Message: Remove this #if, these options belong to the kernel and not the prekern. No real change since eblob is always here. And I was

CVS commit: src/sys/arch/amd64/stand/prekern

2017-10-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 11 16:13:16 UTC 2017 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.ldscript Log Message: Add an alignment to fill strictly all of the padding; does not increase the size of the prekern. To generate a diff of

CVS commit: src/sys/arch/amd64/stand

2017-10-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 10 09:29:14 UTC 2017 Added Files: src/sys/arch/amd64/stand: Makefile src/sys/arch/amd64/stand/prekern: Makefile console.c elf.c locore.S mm.c pdir.h prekern.c prekern.h prekern.ldscript redef.h trap.S

CVS commit: src/sys/arch/amd64

2017-10-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 8 08:26:01 UTC 2017 Modified Files: src/sys/arch/amd64/conf: files.amd64 Added Files: src/sys/arch/amd64/amd64: prekern.c Log Message: Add the prekern entry point in the kernel. To generate a diff of this commit:

CVS commit: src/sys/arch/amd64/conf

2017-10-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 7 10:16:47 UTC 2017 Modified Files: src/sys/arch/amd64/conf: Makefile.amd64 Added Files: src/sys/arch/amd64/conf: GENERIC_KASLR Log Message: Add GENERIC_KASLR, only toolchain parts for now. To generate a diff of

<    1   2   3   4   5   6   7   >