Store device structs in a dynamic list
This commit is contained in:
@ -20,10 +20,10 @@ void tb_runinitscript(void) {
|
||||
string_memset(buf, 0, sizeof(buf));
|
||||
r = ipcpipe(tb, IPCPIPE_OUT, IPCPIPE_READ, (uint8_t *)buf, sizeof(buf)-1);
|
||||
if (r > 0) {
|
||||
devctl(&termdev, 0x00, (uint8_t *)buf, string_len(buf), 0);
|
||||
devctl(&termdev, DEV_TERMDEV_PUTCH, (uint8_t *)buf, string_len(buf), 0);
|
||||
}
|
||||
|
||||
r = devctl(&ps2kbdev, 0x00, NULL, 0, 0);
|
||||
r = devctl(&ps2kbdev, DEV_PS2KBDEV_READCH, NULL, 0, 0);
|
||||
if (r != E_NOTYET) {
|
||||
uint8_t b = r;
|
||||
ipcpipe(tb, IPCPIPE_IN, IPCPIPE_WRITE, &b, 1);
|
||||
|
Reference in New Issue
Block a user