Changeset b9e97fb in mainline for arch/amd64/include/asm.h


Ignore:
Timestamp:
2005-08-31T10:53:34Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8f91729
Parents:
9756131
Message:

Better types for ia32 drivers, so that they can be reused in amd64.
Build script cleanup amd64.
New code / not working yet / in amd64.

File:
1 edited

Legend:

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

    r9756131 rb9e97fb  
    3535
    3636void asm_delay_loop(__u32 t);
     37void asm_fake_loop(__u32 t);
     38
    3739
    3840/* TODO: implement the real stuff */
     
    5557                :"=m"(out)
    5658                :"m"(port)
    57                 :"dx","al"
     59                :"%dx","%al"
    5860                );
    5961        return out;
     
    6870                :
    6971                :"m"( port), "m" (b)
    70                 :"dx","al"
     72                :"%dx","%al"
    7173                );
    7274}
     
    116118}
    117119
     120/** Return raw priority level
     121 *
     122 * Return EFLAFS.
     123 */
     124static inline pri_t cpu_priority_read(void) {
     125        pri_t v;
     126        __asm__ volatile (
     127                "pushfq\n"
     128                "popq %0\n"
     129                : "=r" (v)
     130        );
     131        return v;
     132}
     133
     134extern size_t interrupt_handler_size;
     135extern void interrupt_handlers(void);
    118136
    119137#endif
Note: See TracChangeset for help on using the changeset viewer.