mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 04:54:07 +01:00
Fix brino on my part. _etext doesn't include the padding to a page
boundary, which means that it doesn't mark the start of the data section (which is then inaccessible to the programmer ??). Hopefully fixes recent locore reboot problems.
This commit is contained in:
parent
fb59e630f6
commit
9f6eb8da71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15694
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||
* $Id: locore.s,v 1.69 1996/05/02 14:19:43 phk Exp $
|
||||
* $Id: locore.s,v 1.70 1996/05/02 22:24:55 phk Exp $
|
||||
*
|
||||
* originally from: locore.s, by William F. Jolitz
|
||||
*
|
||||
@ -740,6 +740,8 @@ over_symalloc:
|
||||
|
||||
/* Map read-write, data, bss and symbols */
|
||||
movl $R(_etext),%eax
|
||||
addl $PAGE_MASK, %eax
|
||||
andl $~PAGE_MASK, %eax
|
||||
map_read_write:
|
||||
movl R(_KERNend),%ecx
|
||||
subl %eax,%ecx
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||
* $Id: locore.s,v 1.69 1996/05/02 14:19:43 phk Exp $
|
||||
* $Id: locore.s,v 1.70 1996/05/02 22:24:55 phk Exp $
|
||||
*
|
||||
* originally from: locore.s, by William F. Jolitz
|
||||
*
|
||||
@ -740,6 +740,8 @@ over_symalloc:
|
||||
|
||||
/* Map read-write, data, bss and symbols */
|
||||
movl $R(_etext),%eax
|
||||
addl $PAGE_MASK, %eax
|
||||
andl $~PAGE_MASK, %eax
|
||||
map_read_write:
|
||||
movl R(_KERNend),%ecx
|
||||
subl %eax,%ecx
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||
* $Id: locore.s,v 1.69 1996/05/02 14:19:43 phk Exp $
|
||||
* $Id: locore.s,v 1.70 1996/05/02 22:24:55 phk Exp $
|
||||
*
|
||||
* originally from: locore.s, by William F. Jolitz
|
||||
*
|
||||
@ -740,6 +740,8 @@ over_symalloc:
|
||||
|
||||
/* Map read-write, data, bss and symbols */
|
||||
movl $R(_etext),%eax
|
||||
addl $PAGE_MASK, %eax
|
||||
andl $~PAGE_MASK, %eax
|
||||
map_read_write:
|
||||
movl R(_KERNend),%ecx
|
||||
subl %eax,%ecx
|
||||
|
Loading…
Reference in New Issue
Block a user