Changeset 26eff5c in rtems


Ignore:
Timestamp:
Aug 2, 1999, 8:26:57 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
783e8322
Parents:
60ee6da
Message:

Fix By Joel based on suggestion from Ian Lance Taylor <ian@…>
to fix problem reported by Ralf Corsepius <corsepiu@…>.

Date: Fri, 30 Jul 1999 14:53:20 -0500 (CDT)
From: <joel@…>

it is used like this in i386ex/start/start.S

/* set up same values in cache */

start.S: movw $0xFFFB, SYM(i8259s_cache)

I am heading out the door. Any other ideas what could have tripped this?

This instruction appears in a .code16 section. In a .code16 section,
current versions of gas assume that all addresses are 16 bits unless
told otherwise.

If you change the line to

addr32 movw $0xFFFB, SYM(i8259s_cache)

then you will get a 32 bit address reference.

You may want to use addr32 only when NEW_GAS is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/i386ex/start/start.S

    r60ee6da r26eff5c  
    325325        SetExRegByte(INTCFG , 0x00 )
    326326       
    327         movw    $0xFFFB, SYM(i8259s_cache) /* set up same values in cache */
     327        /*
     328         *  The addr32 override should ensure that the address for
     329         *  i8259s_cache is put in 32-bit address space.
     330         */
     331
     332#if defined(NEW_GAS)
     333        addr32 movw $0xFFFB, SYM(i8259s_cache) # set up same values in cache
     334#else
     335        movw    $0xFFFB, SYM(i8259s_cache)     # set up same values in cache
     336#endif
    328337       
    329338SYM(SetCS4):   
Note: See TracChangeset for help on using the changeset viewer.