Changeset 63e27ef in mainline for kernel/genarch/src/drivers/pl011/pl011.c
- Timestamp:
- 2017-06-19T21:47:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/pl011/pl011.c
r7354b5e r63e27ef 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <genarch/drivers/pl011/pl011.h> 38 39 #include <console/chardev.h> … … 98 99 bool pl011_uart_init(pl011_uart_t *uart, inr_t interrupt, uintptr_t addr) 99 100 { 100 ASSERT(uart);101 assert(uart); 101 102 uart->regs = (void*)km_map(addr, sizeof(pl011_uart_regs_t), 102 103 PAGE_NOT_CACHEABLE); 103 ASSERT(uart->regs);104 assert(uart->regs); 104 105 105 106 /* Disable UART */ … … 137 138 void pl011_uart_input_wire(pl011_uart_t *uart, indev_t *indev) 138 139 { 139 ASSERT(uart);140 ASSERT(indev);140 assert(uart); 141 assert(indev); 141 142 142 143 uart->indev = indev;
Note:
See TracChangeset
for help on using the changeset viewer.