Changeset 0259524 in mainline for arch/ia32/include/asm.h


Ignore:
Timestamp:
2005-11-03T20:26:29Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
05d9dd89
Parents:
dbd1059
Message:

IA-64 work.
Add some asm functions for manipulation with PSR, AR and CR registers.

File:
1 edited

Legend:

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

    rdbd1059 r0259524  
    139139 * @return Old interrupt priority level.
    140140 */
    141 static inline ipl_t interrupts_enable(void) {
     141static inline ipl_t interrupts_enable(void)
     142{
    142143        ipl_t v;
    143144        __asm__ volatile (
     
    157158 * @return Old interrupt priority level.
    158159 */
    159 static inline ipl_t interrupts_disable(void) {
     160static inline ipl_t interrupts_disable(void)
     161{
    160162        ipl_t v;
    161163        __asm__ volatile (
     
    174176 * @param ipl Saved interrupt priority level.
    175177 */
    176 static inline void interrupts_restore(ipl_t ipl) {
     178static inline void interrupts_restore(ipl_t ipl)
     179{
    177180        __asm__ volatile (
    178181                "pushl %0\n\t"
     
    186189 * @return EFLAFS.
    187190 */
    188 static inline ipl_t interrupts_read(void) {
     191static inline ipl_t interrupts_read(void)
     192{
    189193        ipl_t v;
    190194        __asm__ volatile (
Note: See TracChangeset for help on using the changeset viewer.