Added whitelisting to MSR read/write code
[akaros.git] / kern / arch / x86 / devarch.h
1 /* Copyright (c) 2015 Google Inc
2  * Davide Libenzi <dlibenzi@google.com>
3  * See LICENSE for details.
4  */
5
6 #pragma once
7
8 #include <sys/types.h>
9 #include <stdio.h>
10 #include <core_set.h>
11
12 uint64_t *coreset_read_msr(const struct core_set *cset, uint32_t addr,
13                                                    size_t *nvalues);
14 int coreset_write_msr(const struct core_set *cset, uint32_t addr,
15                                           uint64_t value);