Changeset 7ce9284 in mainline for arch/ia32/include/asm.h


Ignore:
Timestamp:
2005-08-30T17:41:19Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b45aa23
Parents:
10caad0
Message:

Dump implementation of THREAD, TASK and CPU.
Implement preemption-safe versions of THREAD, TASK and CPU using THE.
Get rid of CPU_ID_ARCH on all architectures.
Get rid of write_dr0() and read_dr0() on IA-32.
Get rid of cpu_private_data and cpu_private_data_t.

File:
1 edited

Legend:

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

    r10caad0 r7ce9284  
    8484static inline __u32 read_cr3(void) { __u32 v; __asm__ volatile ("movl %%cr3,%0" : "=r" (v)); return v; }
    8585
    86 /** Write DR0
    87  *
    88  * Write value to DR0.
    89  *
    90  * @param v Value to be written.
    91  */
    92 static inline void write_dr0(__u32 v) { __asm__ volatile ("movl %0,%%dr0\n" : : "r" (v)); }
    93 
    94 /** Read DR0
    95  *
    96  * Return value in DR0
    97  *
    98  * @return Value read.
    99  */
    100 static inline __u32 read_dr0(void) { __u32 v; __asm__ volatile ("movl %%dr0,%0" : "=r" (v)); return v; }
    101 
    10286/** Set priority level low
    10387 *
Note: See TracChangeset for help on using the changeset viewer.