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.
This commit is contained in:
Joel Sherrill
2002-05-14 16:05:29 +00:00
parent eec76f3c38
commit 55b3616f16
2 changed files with 11 additions and 5 deletions

View File

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

View File

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