diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2005-11-08 18:52:00 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2005-11-08 18:52:00 +0000 |
commit | 4d790ba43ecbfc6bd9bc06ad8835d53b25fc08c1 (patch) | |
tree | 48c0a40407e586ba26468b59693dd05d330905cd /c/src/lib/libbsp/i386/pc386/startup/ldsegs.S | |
parent | 2005-11-07 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-4d790ba43ecbfc6bd9bc06ad8835d53b25fc08c1.tar.bz2 |
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...
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/startup/ldsegs.S | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S index e346d0975e..e25fd013c9 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S +++ b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S @@ -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 |