Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/include/vdso.h
/*- | /*- | ||||
* Copyright 2012 Konstantin Belousov <kib@FreeBSD.ORG>. | * Copyright 2012 Konstantin Belousov <kib@FreeBSD.ORG>. | ||||
* Copyright 2016 The FreeBSD Foundation. | |||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Portions of this software were developed by Konstantin Belousov | |||||
* under sponsorship from the FreeBSD Foundation. | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer. | * notice, this list of conditions and the following disclaimer. | ||||
* 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. | ||||
Show All 12 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _X86_VDSO_H | #ifndef _X86_VDSO_H | ||||
#define _X86_VDSO_H | #define _X86_VDSO_H | ||||
#define VDSO_TIMEHANDS_MD \ | #define VDSO_TIMEHANDS_MD \ | ||||
uint32_t th_x86_shift; \ | uint32_t th_x86_shift; \ | ||||
uint32_t th_res[7]; | uint32_t th_x86_hpet_idx; \ | ||||
uint32_t th_res[6]; | |||||
#define VDSO_TH_ALGO_X86_TSC VDSO_TH_ALGO_1 | |||||
#define VDSO_TH_ALGO_X86_HPET VDSO_TH_ALGO_2 | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#ifdef COMPAT_FREEBSD32 | #ifdef COMPAT_FREEBSD32 | ||||
#define VDSO_TIMEHANDS_MD32 VDSO_TIMEHANDS_MD | #define VDSO_TIMEHANDS_MD32 VDSO_TIMEHANDS_MD | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#endif | #endif |