Übungen zu BS - Aufgaben (WS 2013/14)
main.cc-Dateireferenz
Enthält mit den main() und main_ap() Funktionen den Startpunkt für das System. Mehr ...
#include "machine/apicsystem.h"
#include "device/cgastr.h"
#include "object/debug.h"
#include "user/appl.h"
#include "machine/ioapic.h"
#include "machine/cpu.h"
#include "machine/plugbox.h"
#include "syscall/guarded_keyboard.h"
#include "guard/guard.h"
#include "thread/scheduler.h"
#include "thread/thread.h"
#include "device/watch.h"
#include "thread/assassin.h"
#include "meeting/bellringer.h"
#include "thread/idlethread.h"
#include "thread/wakeup.h"
#include "syscall/guarded_vesagraphics.h"
#include "user/santas_house.h"
Include-Abhängigkeitsdiagramm für main.cc:

Funktionen | |
void | setupIdleThread (int cpuid) |
Santas_House | application (appl_stack+APPL_STACK_SIZE) |
int | main () |
Einsprungpunkt ins System. | |
int | main_ap () |
Einsprungpunkt für Applikationsprozessoren. |
Variablen | |
CGA_Stream | kout (0, 79, 0, 25, true) |
CGA_Stream | dout_CPU0 (0, 39, 16, 20) |
CGA_Stream | dout_CPU1 (40, 79, 16, 20) |
CGA_Stream | dout_CPU2 (0, 39, 21, 24) |
CGA_Stream | dout_CPU3 (40, 79, 21, 24) |
Plugbox | plugbox |
IOAPIC | ioapic |
Guarded_Keyboard | keyboard |
Guard | guard |
Watch | watch (16666) |
Assassin | assassin |
Bellringer | bellringer |
APICSystem | system |
const unsigned long | IDLE_STACK_SIZE = 4096 |
WakeUp | wakeup |
IdleThread | idle_thread [CPU_MAX] |
char | buffer_1 [1280 *1024 *4] |
char | buffer_2 [1280 *1024 *4] |
Guarded_VESAGraphics | vesa (buffer_1, buffer_2) |
Ausführliche Beschreibung
Variablen-Dokumentation
IdleThread idle_thread[CPU_MAX] |
Initialisierung:
{
IdleThread(&idle_stack[1 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[2 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[3 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[4 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[5 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[6 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[7 * IDLE_STACK_SIZE]),
IdleThread(&idle_stack[8 * IDLE_STACK_SIZE])
}