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:
Poul-Henning Kamp 1996-05-09 07:16:00 +00:00
parent fb59e630f6
commit 9f6eb8da71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15694
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

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