mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 21:40:12 +00:00
Clean up asm statements a bit.
This commit is contained in:
parent
17cf8c5c98
commit
02af0aee5e
@ -311,11 +311,11 @@ static inline void set_segment(
|
||||
|
||||
/* 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"
|
||||
"movw %%es,%0 ; movw %0,%%es\n"
|
||||
"movw %%fs,%0 ; movw %0,%%fs\n"
|
||||
"movw %%gs,%0 ; movw %0,%%gs\n"
|
||||
"movw %%ss,%0 ; movw %0,%%ss"
|
||||
: "=r" (tmp_segment)
|
||||
: "0" (tmp_segment)
|
||||
);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1996 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
|
||||
On-Line Applications Research Corporation.
|
||||
@ -157,10 +157,10 @@ struct i80960ca_ctltbl {
|
||||
|
||||
#define clear_intr( xint ) \
|
||||
{ register unsigned32 _xint=(xint); \
|
||||
asm volatile( "loop_til_cleared:
|
||||
clrbit %0,sf0,sf0 ; \
|
||||
bbs %0,sf0,loop_til_cleared" \
|
||||
: "=d" (_xint) : "0" (_xint) ); \
|
||||
asm volatile( "loop_til_cleared:" \
|
||||
" clrbit %0,sf0,sf0 ;" \
|
||||
" bbs %0,sf0,loop_til_cleared" \
|
||||
: "=d" (_xint) : "0" (_xint) ); \
|
||||
}
|
||||
|
||||
#define reload_ctl_group( group ) \
|
||||
|
Loading…
Reference in New Issue
Block a user