]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move sysinit and sysuninit linker sets in the data (writeable) section.
authorkib <kib@FreeBSD.org>
Wed, 21 Mar 2018 10:26:39 +0000 (10:26 +0000)
committerkib <kib@FreeBSD.org>
Wed, 21 Mar 2018 10:26:39 +0000 (10:26 +0000)
commit3225db018ae5ccf156735bcd603a090ee235b0c1
tree622104ec5d5a9aeb23839908bf2798aa4ee954d4
parentab14fe294877cc0776cf130fd2f4b62c75af98aa
Move sysinit and sysuninit linker sets in the data (writeable) section.

Both sets are sorted in place, and with the introduction of read-only
permissions on the amd64 kernel text, the sorting override depended on
CR0.WP turned off.  Make it correct by moving the sets into writeable
part of the KVA, also fixing boot on machines where hand-off from BIOS
to OS occurs with CR0.WP set.

Based on submission by: Peter Lei <peter.lei@ieee.org>
MFC after: 1 week
sys/sys/kernel.h
sys/sys/linker_set.h