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

2021-05-04 Thread Pierre Pronchery
Module Name:src Committed By: khorben Date: Tue May 4 21:13:38 UTC 2021 Modified Files: src/sys/arch/amd64/stand/prekern: prng.c Log Message: prekern: add warnings upon problems collecting entropy As submitted on port-amd64@ (part 3/3) Tested on NetBSD/amd64. To

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

2021-05-04 Thread Pierre Pronchery
Module Name:src Committed By: khorben Date: Tue May 4 21:10:25 UTC 2021 Modified Files: src/sys/arch/amd64/stand/prekern: prng.c Log Message: prekern: do not choke on bad entropy files As submitted on port-amd64@ (part 2/3) Tested on NetBSD/amd64. To generate a diff

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

2021-05-04 Thread Pierre Pronchery
Module Name:src Committed By: khorben Date: Tue May 4 21:09:16 UTC 2021 Modified Files: src/sys/arch/amd64/stand/prekern: console.c elf.c mm.c prekern.c prekern.h Log Message: prekern: add support for warning messages As submitted on port-amd64@ (part 1/3)

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

2020-05-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat May 23 08:25:32 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: console.c pdir.h prekern.c prekern.h redef.h trap.S Log Message: Bump copyrights. To generate a diff of this commit: cvs rdiff -u -r1.5

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

2020-05-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat May 23 08:23:29 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: console.c Log Message: Extract putc(). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amd64/stand/prekern/console.c Please

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

2020-05-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat May 23 08:10:50 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.c Log Message: Hum, forgot to include this file in my "Clarify." commit on mm.c:rev1.27 and elf.c:rev1.21. To generate a diff of this commit:

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

2020-05-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 21 08:20:25 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: prng.c Log Message: Mmh, should check cpuid_level first. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

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

2020-05-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 7 21:05:37 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.h Log Message: Forgot to commit this file as part of elf.c::rev1.21 mm.c::rev1.27. To generate a diff of this commit: cvs rdiff -u -r1.21

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

2020-05-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 7 17:58:26 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c mm.c Log Message: Clarify. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/stand/prekern/elf.c cvs rdiff -u

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

2020-05-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 7 17:10:02 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Explain more. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amd64/stand/prekern/mm.c Please note that

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

2020-05-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 7 16:49:59 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: If we encounter relocations from a section that the bootloader dropped, AND if the section is a note, then skip the relocations.

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

2020-05-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 5 19:26:47 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c prekern.h Log Message: Gather the section filtering in a single function, and add a sanity check when relocating, to make sure the section we're

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

2020-02-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 15 10:41:25 UTC 2020 Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Explain more. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/amd64/stand/prekern/mm.c Please note that

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

2019-04-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Apr 3 19:14:25 UTC 2019 Modified Files: src/sys/arch/amd64/stand/prekern: console.c Log Message: When scrolling the screen don't forget to update the last line. Whatever, there is no case where the screen scrolls actually.

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

2019-03-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 19 19:15:57 UTC 2019 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S prekern.c trap.S Log Message: Fix/remove some half-baked stuff I left in the prekern: - Page-align the idt store, to be extra sure. - Remove

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

2019-01-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jan 5 22:11:07 UTC 2019 Modified Files: src/sys/arch/amd64/stand/prekern: elf.c Log Message: Apply amd64/kobj_machdep.c::rev1.7 to the prekern too, to fix the relocation with updated binutils. To generate a diff of this

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

2018-11-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 3 08:27:16 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: pdir.h Log Message: Remove VA_SIGN_POS from the computation of the indexes, it is not needed. To generate a diff of this commit: cvs rdiff -u -r1.5

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

2018-06-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jun 2 14:31:40 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: Makefile Log Message: Disable MKSANITIZER To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/amd64/stand/prekern/Makefile

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

2018-05-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 25 16:01:31 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S Log Message: Hide a bunch of local symbols. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8

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

2018-05-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 25 15:52:11 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.c trap.S Log Message: Rename the entry points of the prekern, rename the array and move it into .rodata. To generate a diff of this commit:

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/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/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/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/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/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/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/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/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/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/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/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/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/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