Ignore:
Timestamp:
Sep 21, 2018, 10:22:02 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

TTY MUX 5/5 : Multiplex TTY character receiving

The multiplexing for receving chars is done by redirecting
the IRQs (when a char is received) to the right chdev (so the right
server DEV thread). When the user types an uppercase letter,
it is treated as a special char used to change the active tty
by redirecting the IRQs to the chdev corresponding to the appropriate
channel.

Add some documentation and example in the code.

Add mfences calls in spinlock_unlock_busy fix a bug on letty physical
hardware.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/spinlock.c

    r473 r540  
    9191#endif
    9292
     93    hal_fence();
    9394    lock->taken = 0;
    9495    this->local_locks--;
     
    181182list_unlink( &lock->list );
    182183#endif
    183 
     184    hal_fence();
    184185    lock->taken = 0;
    185186    this->local_locks--;
Note: See TracChangeset for help on using the changeset viewer.