2007-04-02 15:41:56 +02:00
|
|
|
#include "idt.h"
|
|
|
|
#include "types.h"
|
|
|
|
#include "asm.h"
|
|
|
|
#include "memory.h"
|
|
|
|
#include "timer.h"
|
|
|
|
#include "vga.h"
|
|
|
|
|
|
|
|
|
|
|
|
static u8 curs[4]={"-\\|/"};
|
|
|
|
|
|
|
|
static u8 curspos=0;
|
|
|
|
|
|
|
|
|
|
|
|
void timer()
|
|
|
|
{
|
2018-08-17 11:17:24 +02:00
|
|
|
cli();
|
|
|
|
pushf();
|
|
|
|
pushad();
|
2007-04-02 15:41:56 +02:00
|
|
|
showchar(0,0,curs[curspos],7);
|
|
|
|
curspos=(curspos+1)&0x3;
|
2018-08-17 11:17:24 +02:00
|
|
|
irqendmaster();
|
|
|
|
popad();
|
|
|
|
popf();
|
2007-04-02 15:41:56 +02:00
|
|
|
sti();
|
2018-08-17 11:17:24 +02:00
|
|
|
asm("addl $0x0C, %esp;");
|
|
|
|
iret();
|
2007-04-02 15:41:56 +02:00
|
|
|
}
|