summaryrefslogtreecommitdiff
path: root/com32/lib
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-05 15:43:09 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-05 15:43:09 -0700
commita393bcdefd525c43fce16a9f50a03402533b55f4 (patch)
tree5ed60b96b18bd4112f099b5eef958cfa9d101c31 /com32/lib
parent4a770eb97fc40ec8d9f394337614ac3c2074ee01 (diff)
downloadsyslinux-a393bcdefd525c43fce16a9f50a03402533b55f4.tar.gz
com32: change clock_t to 32 bits, and in milliseconds
Previously, clock_t was 16 bits and counted timer ticks, now make it 32 bits and count milliseconds. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/sys/times.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/com32/lib/sys/times.c b/com32/lib/sys/times.c
index 12ed671c..dd063f37 100644
--- a/com32/lib/sys/times.c
+++ b/com32/lib/sys/times.c
@@ -32,13 +32,11 @@
*/
#include <sys/times.h>
-#include <inttypes.h>
+#include <syslinux/pmapi.h>
#include <com32.h>
clock_t times(struct tms * buf)
{
- (void)buf; /* Ignored */
-
- /* Should we get this via INT 1Ah? */
- return *(uint16_t *) 0x46c;
+ (void)buf;
+ return *__com32.cs_pm->ms_timer;
}