mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
* go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
This commit is contained in:
parent
07700ae600
commit
1f5dc6706d
@ -1,3 +1,7 @@
|
|||||||
|
2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
|
* go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
|
||||||
|
|
||||||
2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
|
2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
Christopher Faylor <cgf@redhat.com>
|
Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
@ -90,16 +90,16 @@ static void load_npx (void); /* Restore the FPU of the debugged program */
|
|||||||
static void
|
static void
|
||||||
save_npx (void)
|
save_npx (void)
|
||||||
{
|
{
|
||||||
asm ("inb $0xa0, %%al
|
asm ("inb $0xa0, %%al \n\
|
||||||
testb $0x20, %%al
|
testb $0x20, %%al \n\
|
||||||
jz 1f
|
jz 1f \n\
|
||||||
xorb %% al, %%al
|
xorb %% al, %%al \n\
|
||||||
outb %% al, $0xf0
|
outb %% al, $0xf0 \n\
|
||||||
movb $0x20, %%al
|
movb $0x20, %%al \n\
|
||||||
outb %% al, $0xa0
|
outb %% al, $0xa0 \n\
|
||||||
outb %% al, $0x20
|
outb %% al, $0x20 \n\
|
||||||
1:
|
1: \n\
|
||||||
fnsave % 0
|
fnsave % 0 \n\
|
||||||
fwait "
|
fwait "
|
||||||
: "=m" (npx)
|
: "=m" (npx)
|
||||||
: /* No input */
|
: /* No input */
|
||||||
@ -493,8 +493,7 @@ static void
|
|||||||
store_register (int regno)
|
store_register (int regno)
|
||||||
{
|
{
|
||||||
void *rp;
|
void *rp;
|
||||||
void *v = alloca (MAX_REGISTER_RAW_SIZE);
|
void *v = (void *) register_buffer (regno);
|
||||||
regcache_collect (regno, v);
|
|
||||||
|
|
||||||
if (regno < FP0_REGNUM)
|
if (regno < FP0_REGNUM)
|
||||||
memcpy ((char *) &a_tss + regno_mapping[regno].tss_ofs,
|
memcpy ((char *) &a_tss + regno_mapping[regno].tss_ofs,
|
||||||
@ -1701,7 +1700,7 @@ get_cr3 (void)
|
|||||||
cr3 = _farnspeekl (taskbase + 0x1c) & ~0xfff;
|
cr3 = _farnspeekl (taskbase + 0x1c) & ~0xfff;
|
||||||
if (cr3 > 0xfffff)
|
if (cr3 > 0xfffff)
|
||||||
{
|
{
|
||||||
#if 0 /* not fully supported yet */
|
#if 0 /* not fullly supported yet */
|
||||||
/* The Page Directory is in UMBs. In that case, CWSDPMI puts
|
/* The Page Directory is in UMBs. In that case, CWSDPMI puts
|
||||||
the first Page Table right below the Page Directory. Thus,
|
the first Page Table right below the Page Directory. Thus,
|
||||||
the first Page Table's entry for its own address and the Page
|
the first Page Table's entry for its own address and the Page
|
||||||
|
Loading…
Reference in New Issue
Block a user