diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-11 11:39:21 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-11 11:39:21 -0400 |
| commit | feba4522d1ac41cd04083fe05410b6e90b54bda2 (patch) | |
| tree | 867c58ba68c705bdb77ca4283ad21ce74cd3ec51 /arch/x86_64/hal | |
| parent | bb08472a04127c994d3ea5a2cbc195f7116a03b8 (diff) | |
| download | jove-kernel-feba4522d1ac41cd04083fe05410b6e90b54bda2.tar.gz jove-kernel-feba4522d1ac41cd04083fe05410b6e90b54bda2.tar.bz2 jove-kernel-feba4522d1ac41cd04083fe05410b6e90b54bda2.zip | |
begin adding uacpi - working build target
Diffstat (limited to 'arch/x86_64/hal')
| -rw-r--r-- | arch/x86_64/hal/obj.h | 2 | ||||
| -rw-r--r-- | arch/x86_64/hal/serial_com.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/hal/obj.h b/arch/x86_64/hal/obj.h index fcb7506..51f2d6a 100644 --- a/arch/x86_64/hal/obj.h +++ b/arch/x86_64/hal/obj.h @@ -7,7 +7,7 @@ enum { - JOVE_OBJ_SERIAL_COM = 0x40, + JOVE_OBJ_SERIAL_COM = 0x80, }; /*Represents a locked kernel object pointer inside of a object directory.*/ diff --git a/arch/x86_64/hal/serial_com.c b/arch/x86_64/hal/serial_com.c index 22682fd..5d7de24 100644 --- a/arch/x86_64/hal/serial_com.c +++ b/arch/x86_64/hal/serial_com.c @@ -82,11 +82,11 @@ serial_com_write( jove_owned_obj_t *obj, const char *s, size_t len) { - if(obj->type != JOVE_OBJ_SERIAL_COM) { + if(obj_gettype(obj) != JOVE_OBJ_SERIAL_COM) { reterr(EBADOBJ); } for(size_t i = 0; i < len; i++) { - serial_com_putc((uint16_t)obj->value, s[i]); + serial_com_putc((uint16_t)obj_getvalue(obj), s[i]); } return len; } |
