summaryrefslogtreecommitdiffstats
path: root/device/portio_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'device/portio_uart.c')
-rw-r--r--device/portio_uart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/device/portio_uart.c b/device/portio_uart.c
index 00800b5..58314d5 100644
--- a/device/portio_uart.c
+++ b/device/portio_uart.c
@@ -49,12 +49,10 @@ portio_uart_setup(void)
s_set_fcr(PORTIO_UART_COM1, 1 | 2 | 8);
s_set_mcr(PORTIO_UART_COM1, 1 | 2 | 4 | 8);
- uint64_t serial_i = _initDirectory.self.data++;
- _initDirectory.entries[serial_i] = (struct jove_ObjectDirectoryEntry) {
+ _initDirectory.entries[INIT_OBJECT_LOG] = (struct jove_ObjectDirectoryEntry) {
.type = KO_DEV_UART,
.data = PORTIO_UART_COM1
};
- _initData.log_object = serial_i;
}
void