From 55b3616f16711040c8996c0677416b8a8d23fd33 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 May 2002 16:05:29 +0000 Subject: 2002-05-01 Eric Norum * 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. --- c/src/lib/libbsp/i386/shared/ChangeLog | 6 ++++++ c/src/lib/libbsp/i386/shared/irq/idt.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'c') 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 + + * 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 * 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) ); -- cgit v1.2.3