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


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

Location:
kernel/arch/ia64/src
Files:
3 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 */
  • kernel/arch/ia64/src/interrupt.c

    r7004747 r6da1013f  
    195195void disabled_fp_register(uint64_t vector, istate_t *istate)
    196196{
    197 #ifdef CONFIG_FPU_LAZY 
    198         scheduler_fpu_lazy_request();   
     197#ifdef CONFIG_FPU_LAZY
     198        scheduler_fpu_lazy_request();
    199199#else
    200200        fault_if_from_uspace(istate, "Interruption: %#hx (%s).",
     
    302302}
    303303
     304void trap_virtual_enable_irqs(uint16_t irqmask)
     305{
     306}
     307
    304308/** @}
    305309 */
  • kernel/arch/ia64/src/ski/ski.c

    r7004747 r6da1013f  
    4747#include <arch/drivers/kbd.h>
    4848
    49 #define SKI_KBD_INR     0
     49#define SKI_KBD_INR  0
    5050
    5151static irq_t ski_kbd_irq;
     
    115115{
    116116        int ch;
    117 
    118         while(!(ch = ski_getchar()))
    119                 ;
     117       
     118        while(!(ch = ski_getchar()));
     119       
    120120        if (ch == '\r')
    121121                ch = '\n';
     
    129129        static char last;
    130130        ipl_t ipl;
    131 
     131       
    132132        ipl = interrupts_disable();
    133 
     133       
    134134        if (kbd_disabled) {
    135135                interrupts_restore(ipl);
    136136                return;
    137137        }
    138                
     138       
    139139        spinlock_lock(&ski_kbd_irq.lock);
    140 
     140       
    141141        ch = ski_getchar();
    142142        if(ch == '\r')
     
    178178static void ski_kbd_disable(chardev_t *d)
    179179{
    180         kbd_disabled = true;   
     180        kbd_disabled = true;
    181181}
    182182
Note: See TracChangeset for help on using the changeset viewer.