db9b70ee54
* x86 uses a commpage with 32-bit addresses, incompatible with the one used for x86_64. For this reason, a compatibility commpage is needed to support a 32-bit userland on x86_64. * define ADDRESS_TYPE as a macro for addr_t (default) or uint32 (for the 32-bit commpage). * team_create_thread_start_internal() will use clone_commpage_area() with KERNEL_USER_DATA_BASE or clone_commpage_compat_area() with KERNEL_USER32_DATA_BASE, to setup the correct commpage. * real_time_clock (in compatibility mode) also updates the compatibility commpage with real time data. Change-Id: I61605077ce0beabab4439ef54edd1eae26f26fd2
20 lines
485 B
C
20 lines
485 B
C
/*
|
|
* Copyright 2018 Haiku Inc. All Rights Reserved.
|
|
* Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_REAL_TIME_DATA_H
|
|
#define _KERNEL_ARCH_REAL_TIME_DATA_H
|
|
|
|
#include <StorageDefs.h>
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
struct arch_real_time_data {
|
|
bigtime_t system_time_offset;
|
|
uint32 system_time_conversion_factor;
|
|
uint32 _padding;
|
|
};
|
|
|
|
#endif /* _KERNEL_ARCH_REAL_TIME_DATA_H */
|