diff options
Diffstat (limited to 'payloads/libpayload/i386')
-rw-r--r-- | payloads/libpayload/i386/coreboot.c | 2 | ||||
-rw-r--r-- | payloads/libpayload/i386/main.c | 2 | ||||
-rw-r--r-- | payloads/libpayload/i386/timer.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/payloads/libpayload/i386/coreboot.c b/payloads/libpayload/i386/coreboot.c index 0eb76dcf4b..8e4a19a5ee 100644 --- a/payloads/libpayload/i386/coreboot.c +++ b/payloads/libpayload/i386/coreboot.c @@ -83,7 +83,7 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info) for (i = 0; i < len; i += 16, ptr += 16) { header = (struct cb_header *)ptr; - if (!strncmp(header->signature, "LBIO", 4)) + if (!strncmp((const char *)header->signature, "LBIO", 4)) break; } diff --git a/payloads/libpayload/i386/main.c b/payloads/libpayload/i386/main.c index ed5c1b9e9c..c880937e98 100644 --- a/payloads/libpayload/i386/main.c +++ b/payloads/libpayload/i386/main.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. */ -#include <arch/types.h> +#include <libpayload.h> /* * This structure seeds the stack. We provide the return address of our main diff --git a/payloads/libpayload/i386/timer.c b/payloads/libpayload/i386/timer.c index a787646073..e11973f2fa 100644 --- a/payloads/libpayload/i386/timer.c +++ b/payloads/libpayload/i386/timer.c @@ -62,6 +62,8 @@ unsigned int get_cpu_speed(void) * Multiply that by the number of measured clocks to get the kHz value. */ cpu_khz = (unsigned int)((end - start) * 1193180U / (1000 * 0xffff)); + + return cpu_khz; } static inline void _delay(unsigned int delta) |