Changeset b994a60 in mainline for arch/ia64/include/asm.h


Ignore:
Timestamp:
2006-03-09T12:44:27Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
901122b
Parents:
cd373bb
Message:

ia64 work.
Changes to make userspace work (kernel part).
Use ski.conf from contrib directory to run Ski.

There is actually no appropriate syscall handler yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/asm.h

    rcd373bb rb994a60  
    4949}
    5050
     51/** Return Processor State Register.
     52 *
     53 * @return PSR.
     54 */
     55static inline __u64 psr_read(void)
     56{
     57        __u64 v;
     58       
     59        __asm__ volatile ("mov %0 = psr\n" : "=r" (v));
     60       
     61        return v;
     62}
     63
    5164/** Read IVA (Interruption Vector Address).
    5265 *
     
    233246static inline ipl_t interrupts_read(void)
    234247{
    235         __u64 v;
    236        
    237         __asm__ volatile ("mov %0 = psr\n" : "=r" (v));
    238        
    239         return (ipl_t) v;
     248        return (ipl_t) psr_read();
    240249}
    241250
     
    250259extern void asm_delay_loop(__u32 t);
    251260
     261extern void switch_to_userspace(__address entry, __address sp, __address bsp, __u64 ipsr, __u64 rsc);
     262
    252263#endif
Note: See TracChangeset for help on using the changeset viewer.