From fa827b37fc5d6ecda89b879d5ee5933975c0de2e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 3 Jun 2008 05:02:59 +0000 Subject: [PATCH] took the liberty to add this to the buiild and fix compilation :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25774 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/arch/x86/arch_hpet.h | 29 ++++++++++++--------- src/system/kernel/arch/x86/Jamfile | 2 +- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/headers/private/kernel/arch/x86/arch_hpet.h b/headers/private/kernel/arch/x86/arch_hpet.h index 4956e15e76..e9dd692aa1 100644 --- a/headers/private/kernel/arch/x86/arch_hpet.h +++ b/headers/private/kernel/arch/x86/arch_hpet.h @@ -5,6 +5,8 @@ #ifndef _KERNEL_ARCH_x86_HPET_H #define _KERNEL_ARCH_x86_HPET_H +#include + /* All masks are 64 bits wide to represent bit locations; the HPET registers are 64 bits wide. */ @@ -25,22 +27,23 @@ #define HPET_GET_PERIOD(regs) (((regs)->caps & HPET_CAP_MASK_PERIOD) >> 32) struct hpet_timer { - uint64 config, /* Timer configuration and capabilities */ - uint64 comparator, /* Comparator value */ - uint64 introute, /* FSB Interrupt Routing */ - uint64 reserved + uint64 config; /* Timer configuration and capabilities */ + uint64 comparator; /* Comparator value */ + uint64 introute; /* FSB Interrupt Routing */ + uint64 reserved; }; + struct hpet_regs { - uint64 caps, /* HPET Capabilities and ID */ - uint64 reserved1, - uint64 config, /* General Configuration */ - uint64 reserved2, - uint64 intstatus, /* General Interrupt Status */ - uint8 reserved3[200], - uint64 mainvalue, /* Main Counter Value */ - uint64 reserved3, - struct hpet_timer timers[1] /* Timers */ + uint64 caps; /* HPET Capabilities and ID */ + uint64 reserved1; + uint64 config; /* General Configuration */ + uint64 reserved2; + uint64 intstatus; /* General Interrupt Status */ + uint8 reserved3[200]; + uint64 mainvalue; /* Main Counter Value */ + uint64 reserved4; + struct hpet_timer timers[1]; /* Timers */ }; #endif diff --git a/src/system/kernel/arch/x86/Jamfile b/src/system/kernel/arch/x86/Jamfile index 3d6090a223..570ad2cf4c 100644 --- a/src/system/kernel/arch/x86/Jamfile +++ b/src/system/kernel/arch/x86/Jamfile @@ -15,7 +15,7 @@ KernelMergeObject kernel_arch_x86.o : arch_debug.cpp arch_debug_console.c arch_elf.c -# arch_hpet.c + arch_hpet.c arch_int.c arch_platform.c # arch_selector.c