diff options
Diffstat (limited to 'src/cpu/amd')
-rw-r--r-- | src/cpu/amd/model_10xxx/fidvid.c | 6 | ||||
-rw-r--r-- | src/cpu/amd/model_10xxx/processor_name.c | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/cpu/amd/model_10xxx/fidvid.c b/src/cpu/amd/model_10xxx/fidvid.c index b1d6bae7a6..fb8e7da76f 100644 --- a/src/cpu/amd/model_10xxx/fidvid.c +++ b/src/cpu/amd/model_10xxx/fidvid.c @@ -25,21 +25,21 @@ // if we are tight of CAR stack, disable it #define FAM10_SET_FIDVID_STORE_AP_APICID_AT_FIRST 1 -static void print_debug_fv(const char *str, u32 val) +static inline void print_debug_fv(const char *str, u32 val) { #if FAM10_SET_FIDVID_DEBUG == 1 printk(BIOS_DEBUG, "%s%x\n", str, val); #endif } -static void print_debug_fv_8(const char *str, u8 val) +static inline void print_debug_fv_8(const char *str, u8 val) { #if FAM10_SET_FIDVID_DEBUG == 1 printk(BIOS_DEBUG, "%s%02x\n", str, val); #endif } -static void print_debug_fv_64(const char *str, u32 val, u32 val2) +static inline void print_debug_fv_64(const char *str, u32 val, u32 val2) { #if FAM10_SET_FIDVID_DEBUG == 1 printk(BIOS_DEBUG, "%s%x%x\n", str, val, val2); diff --git a/src/cpu/amd/model_10xxx/processor_name.c b/src/cpu/amd/model_10xxx/processor_name.c index 29bc50802d..15604de536 100644 --- a/src/cpu/amd/model_10xxx/processor_name.c +++ b/src/cpu/amd/model_10xxx/processor_name.c @@ -120,13 +120,14 @@ static const struct str_s String2_socket_AM2[] = { }; -char const *unknown = "AMD Processor model unknown"; -char const *unknown2 = " type unknown"; -char const *sample = "AMD Engineering Sample"; -char const *thermal = "AMD Thermal Test Kit"; +const char const *unknown = "AMD Processor model unknown"; +const char const *unknown2 = " type unknown"; +const char const *sample = "AMD Engineering Sample"; +const char const *thermal = "AMD Thermal Test Kit"; -int strcpymax(char *dst, const char *src, int buflen) { +static int strcpymax(char *dst, const char *src, int buflen) +{ int i; for (i = 0; i < buflen && src[i]; i++) dst[i] = src[i]; |