#include <x86/seg.h>
#include <x86/pic.h>
#include <x86/base_irq.h>
#include <x86/irq_list.h>
#include <x86/proc_reg.h>
#include <keyhelp.h>
#include <interrupt.h>
#include <interrupts.h>
#include <list.h>
#include <register.h>
#include <syscall_int.h>
#include <vm.h>
#include <thread.h>
#include <scheduler.h>
#include <console.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | gc |
struct | rl |
struct | sc |
Defines | |
#define | KEYBOARD_INT INTERRUPT_VECTOR_INTERRUPTS+IRQ_KEYBOARD |
#define | KEYBOARD_BUFFER_SIZE 4096 |
Functions | |
int | io_initialize () |
Initialize the I/O interrupts. | |
void | keyboard_handler (InterruptVector vector, Registers *registers) |
Initializes the keyboard interrupt. | |
void | getchar_handler (InterruptVector vector, Registers *registers) |
Gets a new char from the queue. | |
void | readline_handler (InterruptVector vector, Registers *registers) |
Gets a newline from the queue. | |
void | termcolor_handler (InterruptVector vector, Registers *registers) |
Changes the color of the console. | |
void | getcursor_handler (InterruptVector vector, Registers *registers) |
Gets the cursor position on the console. | |
void | setcursor_handler (InterruptVector vector, Registers *registers) |
Sets the cursor position on the console. | |
void | print_handler (InterruptVector vector, Registers *registers) |
Prints a line to the console. | |
int | process_scode (void) |
Processess the scan from the character queue. | |
void | getchar_wake_handler (Thread *thread, void *data) |
The handler function for getchar. | |
void | readline_wake_handler (Thread *thread, void *data) |
The handler function for readline. | |
void | insert (int c) |
Inserts new character into the queue. |
This file provides the interface for i/o system calls. It handles the system calls pretaining the user interface.
|
Gets a new char from the queue. Its the getchar interrupt handler
|
|
The handler function for getchar. Handles the getchar syscall and thread waiting on a resourse that have been woken up
|
|
Gets the cursor position on the console. Its the get_cursor_pos interrupt handler
|
|
Inserts new character into the queue. Adds new characters to the back of the queue
|
|
Initialize the I/O interrupts. Installs the I/O interrups
|
|
Initializes the keyboard interrupt. Its the keyboard interrupt handler
|
|
Prints a line to the console. Its the print interrupt handler
|
|
Processess the scan from the character queue. Removes a character from the queue
|
|
Gets a newline from the queue. Its ths readline interrupt handler
|
|
The handler function for readline. Handles the readline syscall and thread waiting on a resourse that have been woken up
|
|
Sets the cursor position on the console. Its the get_cursor_pos interrupt handler
|
|
Changes the color of the console. Its the settermcolor interrupt handler
|