X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ftimer.c;h=8578c94fd12960840600d32d891cdbbe362d2959;hb=e253f9a0cad14f636a51f6211308491ab19dfbe5;hp=937b56d59f9ff39ab2ff2d6b427af09c2b0e7466;hpb=a2f94f569a4c99204de02814a20098a71527e913;p=bootcensus diff --git a/src/timer.c b/src/timer.c index 937b56d..8578c94 100644 --- a/src/timer.c +++ b/src/timer.c @@ -1,3 +1,20 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY, without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ #include #include "intr.h" #include "asmops.h" @@ -38,8 +55,6 @@ #define CMD_MODE_BCD 1 -#define MSEC_TO_TICKS(ms) ((ms) * TICK_FREQ_HZ / 1000) - struct timer_event { int dt; /* remaining ticks delta from the previous event */ struct timer_event *next;