summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-05-14 16:05:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-05-14 16:05:29 +0000
commit55b3616f16711040c8996c0677416b8a8d23fd33 (patch)
treee1aa06fedb3796ee675320051fb2ebefe833cb66 /c
parent2002-05-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-55b3616f16711040c8996c0677416b8a8d23fd33.tar.bz2
2002-05-01 Eric Norum <eric.norum@usask.ca>
* console/console.c, fatal/bspfatal.c, startup/bspclean.c, startup/page_table.c: Per PR200 fix multi-line inline assembly to satisfy gcc 3.1 and newer.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/i386/shared/ChangeLog6
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/idt.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/i386/shared/ChangeLog b/c/src/lib/libbsp/i386/shared/ChangeLog
index 2279576e0b..08ec421f62 100644
--- a/c/src/lib/libbsp/i386/shared/ChangeLog
+++ b/c/src/lib/libbsp/i386/shared/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-01 Eric Norum <eric.norum@usask.ca>
+
+ * console/console.c, fatal/bspfatal.c, startup/bspclean.c,
+ startup/page_table.c: Per PR200 fix multi-line inline assembly
+ to satisfy gcc 3.1 and newer.
+
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* comm/Makefile.am: Remove AUTOMAKE_OPTIONS.
diff --git a/c/src/lib/libbsp/i386/shared/irq/idt.c b/c/src/lib/libbsp/i386/shared/irq/idt.c
index 96eb0ba97f..882a2288aa 100644
--- a/c/src/lib/libbsp/i386/shared/irq/idt.c
+++ b/c/src/lib/libbsp/i386/shared/irq/idt.c
@@ -275,11 +275,11 @@ int i386_set_gdt_entry (unsigned short segment_selector, unsigned base,
* Now, reload all segment registers so the limit takes effect.
*/
- asm volatile( "movw %%ds,%0 ; movw %0,%%ds
- movw %%es,%0 ; movw %0,%%es
- movw %%fs,%0 ; movw %0,%%fs
- movw %%gs,%0 ; movw %0,%%gs
- movw %%ss,%0 ; movw %0,%%ss"
+ asm volatile( "movw %%ds,%0 ; movw %0,%%ds\n\t"
+ "movw %%es,%0 ; movw %0,%%es\n\t"
+ "movw %%fs,%0 ; movw %0,%%fs\n\t"
+ "movw %%gs,%0 ; movw %0,%%gs\n\t"
+ "movw %%ss,%0 ; movw %0,%%ss"
: "=r" (tmp_segment)
: "0" (tmp_segment)
);