diff options
-rw-r--r-- | src/security/intel/stm/StmPlatformSmm.c | 8 | ||||
-rw-r--r-- | src/security/tpm/tss/tcg-1.2/tss.c | 2 | ||||
-rw-r--r-- | src/security/tpm/tss/tcg-1.2/tss_structures.h | 12 | ||||
-rw-r--r-- | src/security/vboot/vbnv.c | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/security/intel/stm/StmPlatformSmm.c b/src/security/intel/stm/StmPlatformSmm.c index bcf935cb11..e5b3cf1d74 100644 --- a/src/security/intel/stm/StmPlatformSmm.c +++ b/src/security/intel/stm/StmPlatformSmm.c @@ -85,7 +85,7 @@ void setup_smm_descriptor(void *smbase, int32_t apic_id, int32_t entry32_off) TXT_PROCESSOR_SMM_DESCRIPTOR *psd; - smbase_processor = (void *) SMM_DEFAULT_BASE;//we are here + smbase_processor = (void *)SMM_DEFAULT_BASE;//we are here psd = smbase + SMM_PSD_OFFSET; printk(BIOS_DEBUG, @@ -121,8 +121,8 @@ void setup_smm_descriptor(void *smbase, int32_t apic_id, int32_t entry32_off) read_gdtr(&gdtr); - gdtr.base -= (uintptr_t) smbase_processor; - gdtr.base += (uintptr_t) smbase; + gdtr.base -= (uintptr_t)smbase_processor; + gdtr.base += (uintptr_t)smbase; psd->smm_gdt_ptr = gdtr.base; psd->smm_gdt_size = gdtr.limit + 1; // the stm will subtract, so add @@ -159,7 +159,7 @@ void stm_setup(uintptr_t mseg, int cpu, uintptr_t smbase, // some processor to receive a bad value // calculate the location in SMRAM addr_calc = mseg - CONFIG_BIOS_RESOURCE_LIST_SIZE; - stm_resource_heap = (uint8_t *) addr_calc; + stm_resource_heap = (uint8_t *)addr_calc; if (cpu == 0) { diff --git a/src/security/tpm/tss/tcg-1.2/tss.c b/src/security/tpm/tss/tcg-1.2/tss.c index 6b79aabe87..39c44eca9f 100644 --- a/src/security/tpm/tss/tcg-1.2/tss.c +++ b/src/security/tpm/tss/tcg-1.2/tss.c @@ -51,7 +51,7 @@ static inline int tpm_command_size(const uint8_t *buffer) { uint32_t size; from_tpm_uint32(buffer + sizeof(uint16_t), &size); - return (int) size; + return (int)size; } /* Gets the code field of a TPM command. */ diff --git a/src/security/tpm/tss/tcg-1.2/tss_structures.h b/src/security/tpm/tss/tcg-1.2/tss_structures.h index 4a976c810d..689bb4bbf9 100644 --- a/src/security/tpm/tss/tcg-1.2/tss_structures.h +++ b/src/security/tpm/tss/tcg-1.2/tss_structures.h @@ -21,13 +21,13 @@ #define TPM_NV_PER_READ_STCLEAR (((uint32_t)1)<<31) #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14) -#define TPM_TAG_RQU_COMMAND ((uint16_t) 0xc1) -#define TPM_TAG_RQU_AUTH1_COMMAND ((uint16_t) 0xc2) -#define TPM_TAG_RQU_AUTH2_COMMAND ((uint16_t) 0xc3) +#define TPM_TAG_RQU_COMMAND ((uint16_t)0xc1) +#define TPM_TAG_RQU_AUTH1_COMMAND ((uint16_t)0xc2) +#define TPM_TAG_RQU_AUTH2_COMMAND ((uint16_t)0xc3) -#define TPM_TAG_RSP_COMMAND ((uint16_t) 0xc4) -#define TPM_TAG_RSP_AUTH1_COMMAND ((uint16_t) 0xc5) -#define TPM_TAG_RSP_AUTH2_COMMAND ((uint16_t) 0xc6) +#define TPM_TAG_RSP_COMMAND ((uint16_t)0xc4) +#define TPM_TAG_RSP_AUTH1_COMMAND ((uint16_t)0xc5) +#define TPM_TAG_RSP_AUTH2_COMMAND ((uint16_t)0xc6) typedef uint8_t TSS_BOOL; typedef uint16_t TPM_STRUCTURE_TAG; diff --git a/src/security/vboot/vbnv.c b/src/security/vboot/vbnv.c index 26946fd335..e9223c08ae 100644 --- a/src/security/vboot/vbnv.c +++ b/src/security/vboot/vbnv.c @@ -24,7 +24,7 @@ static uint8_t crc8_vbnv(const uint8_t *data, int len) } } - return (uint8_t) (crc >> 8); + return (uint8_t)(crc >> 8); } void vbnv_reset(uint8_t *vbnv_copy) |