Changeset 6da1013f in mainline for kernel/arch/ia64/src/ia64.c


Ignore:
Timestamp:
2009-02-12T20:09:19Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84266669
Parents:
7004747
Message:

simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ia64.c

    r7004747 r6da1013f  
    133133#ifdef SKI
    134134                ski_init_console();
    135 #else   
     135#else
    136136                ega_init(EGA_BASE, EGA_VIDEORAM);
    137 #endif 
     137#endif
    138138        }
    139139        it_init();
     
    266266#ifdef SKI
    267267        ski_kbd_release();
    268 #else   
     268#else
    269269#ifdef CONFIG_NS16550
    270270        ns16550_release();
    271 #else   
     271#else
    272272        i8042_release();
    273 #endif 
     273#endif
    274274#endif
    275275}
     
    282282}
    283283
     284/** Construct function pointer
     285 *
     286 * @param fptr   function pointer structure
     287 * @param addr   function address
     288 * @param caller calling function address
     289 *
     290 * @return address of the function pointer
     291 *
     292 */
     293void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
     294{
     295        fptr->fnc = (unative_t) addr;
     296        fptr->gp = ((unative_t *) caller)[1];
     297       
     298        return (void *) fptr;
     299}
     300
    284301/** @}
    285302 */
Note: See TracChangeset for help on using the changeset viewer.