we don't use atomic_get64 to read a read-only area, not authorized and throw a VM fault
this fix #83 partially git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15845 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -25,6 +25,7 @@ __arch_init_time(struct real_time_data *data, bool setDefaults)
|
|||||||
bigtime_t
|
bigtime_t
|
||||||
__arch_get_system_time_offset(struct real_time_data *data)
|
__arch_get_system_time_offset(struct real_time_data *data)
|
||||||
{
|
{
|
||||||
return atomic_get64(&data->arch_data.system_time_offset);
|
//we don't use atomic_get64 because memory is read-only, maybe find another way to lock
|
||||||
|
return data->arch_data.system_time_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user