Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / hal / term / term_io.c
index cb93c4e216bed9af54a91f93a7b6ad0c452db387..2c0fb66b3526a9a567ece59fe621c1f02cbffd63 100644 (file)
@@ -1,7 +1,7 @@
 #include <hal/term.h>
 
 #include <lunaix/clock.h>
 #include <hal/term.h>
 
 #include <lunaix/clock.h>
-#include <lunaix/sched.h>
+#include <lunaix/kpreempt.h>
 
 #include <usr/lunaix/term.h>
 
 
 #include <usr/lunaix/term.h>
 
@@ -26,7 +26,7 @@ do_read_raw(struct term* tdev)
     min = MIN(min, (size_t)line_in->sz_hlf);
     while (sz <= min && dt <= expr) {
         // XXX should we held the device lock while we are waiting?
     min = MIN(min, (size_t)line_in->sz_hlf);
     while (sz <= min && dt <= expr) {
         // XXX should we held the device lock while we are waiting?
-        sched_pass();
+        yield_current();
         dt = clock_systime() - t;
         t += dt;
 
         dt = clock_systime() - t;
         t += dt;