New rewritten serial driver + dev interface
This commit is contained in:
@ -35,6 +35,11 @@ void main(void) {
|
||||
PID = (uint64_t)processctl(-1, PCTL_GETPID, 0, 0, 0);
|
||||
devctl(&ps2kbdev, DEVCTL_GET_HANDLE, (uint8_t *)"ps2kbdev", 0, 0);
|
||||
|
||||
Dev_t serialdev;
|
||||
int32_t err = devctl(&serialdev, DEVCTL_GET_HANDLE, (uint8_t *)"serialdev", 0, 0);
|
||||
uint8_t a = 'A';
|
||||
devctl(&serialdev, DEV_SERIALDEV_SENDB, &a, 1, 0);
|
||||
|
||||
tb_runinitscript();
|
||||
|
||||
uprintf("Shell exited! Please reboot the system.\n");
|
||||
|
Reference in New Issue
Block a user