Rev 990 | Rev 1705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 990 | Rev 1702 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | /** @addtogroup genericconsole Console |
|
- | 30 | * @ingroup kernel |
|
- | 31 | * @{ |
|
- | 32 | */ |
|
- | 33 | /** @file |
|
- | 34 | */ |
|
- | 35 | ||
29 | #include <console/chardev.h> |
36 | #include <console/chardev.h> |
30 | #include <putchar.h> |
37 | #include <putchar.h> |
31 | #include <synch/waitq.h> |
38 | #include <synch/waitq.h> |
32 | #include <synch/spinlock.h> |
39 | #include <synch/spinlock.h> |
33 | 40 | ||
Line 65... | Line 72... | ||
65 | chardev->buffer[chardev->index++] = ch; |
72 | chardev->buffer[chardev->index++] = ch; |
66 | chardev->index = chardev->index % CHARDEV_BUFLEN; /* index modulo size of buffer */ |
73 | chardev->index = chardev->index % CHARDEV_BUFLEN; /* index modulo size of buffer */ |
67 | waitq_wakeup(&chardev->wq, WAKEUP_FIRST); |
74 | waitq_wakeup(&chardev->wq, WAKEUP_FIRST); |
68 | spinlock_unlock(&chardev->lock); |
75 | spinlock_unlock(&chardev->lock); |
69 | } |
76 | } |
- | 77 | ||
- | 78 | /** @} |
|
- | 79 | */ |
|
- | 80 |