Changeset 60133d0 in mainline for kernel/arch/ia32/include/asm.h


Ignore:
Timestamp:
2007-05-31T23:30:32Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff3a34b
Parents:
1e847fb
Message:

First fixes for suncc support.
It is going to be a long way…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/asm.h

    r1e847fb r60133d0  
    6161{
    6262        asm volatile ("hlt\n");
    63 };
     63}
    6464
    6565static inline void cpu_sleep(void)
    6666{
    6767        asm volatile ("hlt\n");
    68 };
     68}
    6969
    7070#define GEN_READ_REG(reg) static inline unative_t read_ ##reg (void) \
     
    8080    }
    8181
    82 GEN_READ_REG(cr0);
    83 GEN_READ_REG(cr2);
    84 GEN_READ_REG(cr3);
    85 GEN_WRITE_REG(cr3);
    86 
    87 GEN_READ_REG(dr0);
    88 GEN_READ_REG(dr1);
    89 GEN_READ_REG(dr2);
    90 GEN_READ_REG(dr3);
    91 GEN_READ_REG(dr6);
    92 GEN_READ_REG(dr7);
    93 
    94 GEN_WRITE_REG(dr0);
    95 GEN_WRITE_REG(dr1);
    96 GEN_WRITE_REG(dr2);
    97 GEN_WRITE_REG(dr3);
    98 GEN_WRITE_REG(dr6);
    99 GEN_WRITE_REG(dr7);
     82GEN_READ_REG(cr0)
     83GEN_READ_REG(cr2)
     84GEN_READ_REG(cr3)
     85GEN_WRITE_REG(cr3)
     86
     87GEN_READ_REG(dr0)
     88GEN_READ_REG(dr1)
     89GEN_READ_REG(dr2)
     90GEN_READ_REG(dr3)
     91GEN_READ_REG(dr6)
     92GEN_READ_REG(dr7)
     93
     94GEN_WRITE_REG(dr0)
     95GEN_WRITE_REG(dr1)
     96GEN_WRITE_REG(dr2)
     97GEN_WRITE_REG(dr3)
     98GEN_WRITE_REG(dr6)
     99GEN_WRITE_REG(dr7)
    100100
    101101/** Byte to port
Note: See TracChangeset for help on using the changeset viewer.