summaryrefslogtreecommitdiffstats
path: root/device/portio_uart.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-11 19:04:26 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-11 19:04:26 -0400
commitf466364b8a3858e7b3f19258d142851cb4a7e6d6 (patch)
treea22819dc585c44a6dd0cdd5c6856420443a031eb /device/portio_uart.c
parentc4f8ef91f18d854a4ede7a94e95b2eab898d6963 (diff)
downloadjove-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.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