diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-11 19:04:26 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-11 19:04:26 -0400 |
commit | f466364b8a3858e7b3f19258d142851cb4a7e6d6 (patch) | |
tree | a22819dc585c44a6dd0cdd5c6856420443a031eb /device/portio_uart.c | |
parent | c4f8ef91f18d854a4ede7a94e95b2eab898d6963 (diff) | |
download | jove-kernel-f466364b8a3858e7b3f19258d142851cb4a7e6d6.tar.gz jove-kernel-f466364b8a3858e7b3f19258d142851cb4a7e6d6.tar.bz2 jove-kernel-f466364b8a3858e7b3f19258d142851cb4a7e6d6.zip |
remove _initData, replace with enum indexesmain
Diffstat (limited to 'device/portio_uart.c')
-rw-r--r-- | device/portio_uart.c | 4 |
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 |