summaryrefslogtreecommitdiff
path: root/kernel/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/task.c')
-rw-r--r--kernel/task.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/kernel/task.c b/kernel/task.c
index b1c2657..b94d5e4 100644
--- a/kernel/task.c
+++ b/kernel/task.c
@@ -10,31 +10,25 @@ int started;
void task_test1()
{
- uint16_t c1;
+ uint32_t c;
while(1)
{
- c1++;
- asm("cli");
-
- PutString("cpu1 / task1: %03d", 0,560,0xffffff, c1/100);
-
- asm("sti");
+ c++;
+ while(1)PutString("task0: %d", 00,500,0b1111100000000000, (c++));
}
}
void task_test2()
{
- uint16_t c2;
+ uint32_t c;
while(1)
{
- c2++;
- asm("cli");
- PutString("cpu1 / task2: %03d", 0,580,0xffffff, c2/100);
+ c++;
+ while(1)PutString("task1: %d", 200,500,0b1111100000000000, (c++));
- asm("sti");
}
}