This file is indexed.

/usr/include/xenomai/asm-x86/hal.h is in libxenomai-dev 2.6.3-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**
 * @ingroup hal
 * @file
 *
 * Copyright (C) 2007 Philippe Gerum <rpm@xenomai.org>.
 *
 * Xenomai 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 2 of the License, or
 * (at your option) any later version.
 *
 * Xenomai 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 Xenomai; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 */

#ifndef _XENO_ASM_X86_HAL_H
#define _XENO_ASM_X86_HAL_H

#include <linux/ipipe.h>

#ifdef CONFIG_IPIPE_CORE
#define RTHAL_COMPAT_TIMERFREQ		__ipipe_hrtimer_freq
#else
#ifdef CONFIG_X86_LOCAL_APIC
#ifdef __IPIPE_FEATURE_APIC_TIMER_FREQ
#define RTHAL_COMPAT_TIMERFREQ		__ipipe_apic_timer_freq
#else
/* Fallback value: may be inaccurate. */
#define RTHAL_COMPAT_TIMERFREQ		(apic_read(APIC_TMICT) * HZ)
#endif
#else
#define RTHAL_COMPAT_TIMERFREQ		CLOCK_TICK_RATE
#endif
#endif

#if defined(CONFIG_GENERIC_CLOCKEVENTS) && !defined(__IPIPE_FEATURE_REQUEST_TICKDEV)

#include <linux/ipipe_tickdev.h>

/*
 * We handle the case of the I-pipe/x86 patch series which do provide
 * the early ipipe_request_tickdev() interface on top of the generic
 * clock event support, but prior to its refactoring. The most
 * significant changes involve an additional parameter to retrieve the
 * grabbed timer frequency passed to ipipe_request_tickdev(), and a
 * different prototype for mode and tick emulation callouts.
 *
 * This early support can be detected by testing
 * CONFIG_GENERIC_CLOCKEVENTS first, since all I-pipe patches
 * compatible with the generic clock event layer do define the
 * ipipe_request_tickdev() service, then by testing
 * __IPIPE_FEATURE_REQUEST_TICKDEV, which is only defined by I-pipe
 * patches exhibiting the refactored API.
 *
 * THIS COMPATIBILITY SUPPORT WILL BE DEPRECATED STARTING WITH Linux
 * 2.6.24. If you happen to run 2.6.22 or 2.6.23 kernels, you may want
 * to upgrade your I-pipe patch to the most recent I-pipe/2.6.23
 * release to date, which exhibits the refactored API.
 */

typedef void (*compat_emumode_t)(enum clock_event_mode,
				 struct ipipe_tick_device *tdev);
typedef int (*compat_emutick_t)(unsigned long evt,
				struct ipipe_tick_device *tdev);
#endif

extern enum rthal_ktimer_mode rthal_ktimer_saved_mode;

void rthal_latency_above_max(struct pt_regs *regs);

#ifdef __i386__
#include "hal_32.h"
#else
#include "hal_64.h"
#endif

#endif /* !_XENO_ASM_X86_HAL_H */