cpu-v6.h should only be used in the kernel, add an error to enforce this.

This commit is contained in:
andrew 2015-05-11 12:44:02 +00:00
parent 9f5ffddd44
commit 79d8402976

View File

@ -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 */