2005-11-08 Till Straumann <strauman@slac.stanford.edu>

PR832/bsps
	* startup/ldsegs.S: move CPU segment descriptor tables from .text to
	.data; the CPU modifies the descriptor tables and this could be a
	problem: a) if text segment is ever write-protected b) rtems-gdb-stub
	checksums the text segment against the file gdb is using. A checksum
	mismatch results because of the CPU touching the accessed bit...
This commit is contained in:
Till Straumann
2005-11-08 18:52:00 +00:00
parent 7a7ddeb0af
commit 4d790ba43e
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
2005-11-08 Till Straumann <strauman@slac.stanford.edu>
PR832/bsps
* startup/ldsegs.S: move CPU segment descriptor tables from .text to
.data; the CPU modifies the descriptor tables and this could be a
problem: a) if text segment is ever write-protected b) rtems-gdb-stub
checksums the text segment against the file gdb is using. A checksum
mismatch results because of the CPU touching the accessed bit...
2005-08-23 Karel Gardas <kgardas@objectsecurity.com>>
* timer/timer.c: Enhance to use either interupt-based timer

View File

@@ -187,6 +187,7 @@ SYM (_return_to_monitor):
| GDT itself
+--------------------------------------------------------------------------*/
BEGIN_DATA
.p2align 4
PUBLIC (_Global_descriptor_table)
@@ -216,7 +217,6 @@ SYM (gdtdesc):
/*---------------------------------------------------------------------------+
| IDT itself
+---------------------------------------------------------------------------*/
BEGIN_DATA
.p2align 4
PUBLIC(Interrupt_descriptor_table)
@@ -224,18 +224,17 @@ SYM(Interrupt_descriptor_table):
.rept 256
.word 0,0,0,0
.endr
END_DATA
/*---------------------------------------------------------------------------+
| Descriptor of IDT
+--------------------------------------------------------------------------*/
BEGIN_CODE
.p2align 4
SYM(idtdesc):
.word (256*8 - 1)
.long SYM (Interrupt_descriptor_table)
END_CODE
END_DATA
.section .m_hdr
.long 0x1BADB002