Changeset c92e30f in mainline
- Timestamp:
- 2012-08-14T20:06:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a987832
- Parents:
- 4c73361
- Location:
- uspace/drv/char/ns8250
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/cyclic_buffer.h
r4c73361 rc92e30f 36 36 #define CYCLIC_BUFFER_H_ 37 37 38 #define BUF_LEN 25638 #define BUF_LEN 4096 39 39 40 40 typedef struct cyclic_buffer { -
uspace/drv/char/ns8250/ns8250.c
r4c73361 rc92e30f 745 745 bool cont = true; 746 746 747 fibril_mutex_lock(&ns->mutex); 747 748 while (cont) { 748 fibril_mutex_lock(&ns->mutex);749 750 749 cont = ns8250_received(regs); 751 750 if (cont) { … … 757 756 ddf_msg(LVL_WARN, "Buffer overflow on " 758 757 "%s.", ns->dev->name); 758 break; 759 759 } else { 760 760 ddf_msg(LVL_DEBUG2, "Character %c saved " … … 766 766 } 767 767 } 768 769 fibril_mutex_unlock(&ns->mutex); 770 fibril_yield(); 771 } 768 } 769 fibril_mutex_unlock(&ns->mutex); 770 fibril_yield(); 772 771 } 773 772
Note:
See TracChangeset
for help on using the changeset viewer.