diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/coreboot-start.c | 3 | ||||
| -rw-r--r-- | src/ppc64/ppc64-uart.c | 3 | ||||
| -rw-r--r-- | src/rv64/rv64-uart.c | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/coreboot-start.c b/src/coreboot-start.c index eeeaabc..38aa760 100644 --- a/src/coreboot-start.c +++ b/src/coreboot-start.c @@ -113,8 +113,7 @@ void cb_start_exec(void) { } else { cb_put_string("CB> Trying EPM partition...\r\n"); - part_block_t* blk = - cb_parse_partition_block_at((voidptr_t) CB_BOOT_ADDR, EPM_PART_BLK_SZ, 0); + part_block_t* blk = cb_parse_partition_block_at((voidptr_t) CB_BOOT_ADDR, EPM_PART_BLK_SZ, 0); if (blk) { cb_pci_append_tree("@stage2-epm", (cb_pci_num_t) blk, sizeof(part_block_t) * blk->num_blocks); diff --git a/src/ppc64/ppc64-uart.c b/src/ppc64/ppc64-uart.c index c16657d..b3b5717 100644 --- a/src/ppc64/ppc64-uart.c +++ b/src/ppc64/ppc64-uart.c @@ -20,7 +20,8 @@ volatile ascii_char_t* const UART0DR = (ascii_char_t*) CB_NS16550_COM1; /// @param
/// @return
utf_char_t cb_get_char(void) {
- while (!(*(((volatile uint8_t*) UART0DR) + 0x05) & 0x01));
+ while (!(*(((volatile uint8_t*) UART0DR) + 0x05) & 0x01))
+ ;
return (utf_char_t) *UART0DR;
}
diff --git a/src/rv64/rv64-uart.c b/src/rv64/rv64-uart.c index a859add..3f604fe 100644 --- a/src/rv64/rv64-uart.c +++ b/src/rv64/rv64-uart.c @@ -16,7 +16,8 @@ static uint8_t* cb_uart_ptr = (uint8_t*) CB_UART_BASE; utf_char_t cb_get_char(void) { uintptr_t ptr = CB_UART_BASE; - while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01)); + while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01)) + ; return (utf_char_t) *cb_uart_ptr; } |
