Changeset 43114c5 in mainline for arch/ia32/src/drivers/i8254.c


Ignore:
Timestamp:
2005-04-09T18:22:53Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8262010
Parents:
e6ba9a3f
Message:

Introduce macros CPU, THREAD, TASK and use them to replace the→cpu, the→thread, the→task.
Later on, this will make it possible to reference *current* cpu, thread and/or task without the aid from virtual memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/drivers/i8254.c

    re6ba9a3f r43114c5  
    111111
    112112
    113         the->cpu->delay_loop_const = ((MAGIC_NUMBER*LOOPS)/1000) / ((t1-t2)-(o1-o2)) +
     113        CPU->delay_loop_const = ((MAGIC_NUMBER*LOOPS)/1000) / ((t1-t2)-(o1-o2)) +
    114114                                    (((MAGIC_NUMBER*LOOPS)/1000) % ((t1-t2)-(o1-o2)) ? 1 : 0);
    115115       
     
    119119        clk2 = rdtsc();
    120120       
    121         the->cpu->frequency_mhz = (clk2-clk1)>>SHIFT;
     121        CPU->frequency_mhz = (clk2-clk1)>>SHIFT;
    122122
    123123        return;
Note: See TracChangeset for help on using the changeset viewer.