diff options
author | Martin Roth <martinroth@google.com> | 2017-07-23 21:05:24 -0600 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-08-01 23:04:15 +0000 |
commit | 7a4c02145d2bfd3779eb56f0a09f03e799f1dc33 (patch) | |
tree | fec257b628b576700c15b352d34daf1545b1ac47 /src/include/cpu/amd | |
parent | 284409fd8cec208b2c3af039a024f7ddb69576b2 (diff) |
src/include: Add guards on all header files
Change-Id: I2d7d4e0b25f2cf3eef2040f89d5ebc711909cdd7
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20734
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/include/cpu/amd')
-rw-r--r-- | src/include/cpu/amd/model_10xxx_rev.h | 5 | ||||
-rw-r--r-- | src/include/cpu/amd/model_fxx_rev.h | 4 | ||||
-rw-r--r-- | src/include/cpu/amd/sc520.h | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/src/include/cpu/amd/model_10xxx_rev.h b/src/include/cpu/amd/model_10xxx_rev.h index 7f07e9843b..c6fa8f66bb 100644 --- a/src/include/cpu/amd/model_10xxx_rev.h +++ b/src/include/cpu/amd/model_10xxx_rev.h @@ -13,8 +13,13 @@ * GNU General Public License for more details. */ +#ifndef __CPU_AMD_MODEL_10XXX_REV_H__ +#define __CPU_AMD_MODEL_10XXX_REV_H__ + #include <arch/cpu.h> int init_processor_name(void); /* place holder for Family 10 revision code */ + +#endif /* __CPU_AMD_MODEL_10XXX_REV_H__ */ diff --git a/src/include/cpu/amd/model_fxx_rev.h b/src/include/cpu/amd/model_fxx_rev.h index 828e51a529..6fb6194137 100644 --- a/src/include/cpu/amd/model_fxx_rev.h +++ b/src/include/cpu/amd/model_fxx_rev.h @@ -1,3 +1,6 @@ +#ifndef __CPU_AMD_MODEL_FXX_REV_H__ +#define __CPU_AMD_MODEL_FXX_REV_H__ + #include <arch/cpu.h> #include <arch/io.h> @@ -125,3 +128,4 @@ int is_e0_later_in_bsp(int nodeid); int is_cpu_f0_in_bsp(int nodeid); #endif +#endif /* __CPU_AMD_MODEL_FXX_REV_H__ */ diff --git a/src/include/cpu/amd/sc520.h b/src/include/cpu/amd/sc520.h index 4e748be530..a0390adc04 100644 --- a/src/include/cpu/amd/sc520.h +++ b/src/include/cpu/amd/sc520.h @@ -1,4 +1,8 @@ +#ifndef __CPU_AMD_SC520_H__ +#define __CPU_AMD_SC520_H__ + /* handy dandy stuff for the sc520 MMCR */ + /* default location of the MMCR */ #define MMCR 0xfffef000 @@ -309,3 +313,5 @@ struct mmcr { #define MMCRDEFAULT ((struct mmcr *) 0xfffef000) + +#endif /* __CPU_AMD_SC520_H__ */ |