mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
cpu-v6.h should only be used in the kernel, add an error to enforce this.
This commit is contained in:
parent
defce67748
commit
6bd9126da9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282767
@ -29,6 +29,11 @@
|
||||
#ifndef MACHINE_CPU_V6_H
|
||||
#define MACHINE_CPU_V6_H
|
||||
|
||||
/* There are no user serviceable parts here, they may change without notice */
|
||||
#ifndef _KERNEL
|
||||
#error Only include this file in the kernel
|
||||
#else
|
||||
|
||||
#include "machine/atomic.h"
|
||||
#include "machine/cpufunc.h"
|
||||
#include "machine/cpuinfo.h"
|
||||
@ -499,4 +504,6 @@ cp15_ttbr_set(uint32_t reg)
|
||||
tlb_flush_all_ng_local();
|
||||
}
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !MACHINE_CPU_V6_H */
|
||||
|
Loading…
Reference in New Issue
Block a user