Friedrich-Alexander-Universität UnivisSuche FAU-Logo
Techn. Fakultät Willkommen am Department Informatik FAU-Logo
Logo I4
Lehrstuhl für Informatik 4
Betriebssysteme
 
  Vorlesung
    - UnivIS-Infos
    - Inhalt
    - Folien
 
  Übungen
    - UnivIS-Infos
    - Inhalt
    - Ergänzendes Material
    - Terminübersicht
    - Aufgaben
       * Umgebung
       * Typische Fehler
       * Aufgabe 1
          Dokumentation
       * Aufgabe 2
          Dokumentation
       * Aufgabe 3
          Dokumentation
       * Aufgabe 4
          Dokumentation
       * Aufgabe 5
          Dokumentation
       * Aufgabe 6
          Dokumentation
       * Aufgabe 7
          Dokumentation
 
  Evaluation
Department Informatik  >  Informatik 4  >  Lehre  >  WS 2009/10  >  Betriebssysteme  >  Übungen  >  Aufgaben  >  Aufgabe 7

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 "syscall/guarded_organizer.h"
#include "syscall/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, 25)
CGA_Stream dout_CPU3 (40, 79, 21, 25)
Plugbox plugbox
IOAPIC ioapic
CPU cpu
Guarded_Keyboard keyboard
Guard guard
Guarded_Organizer organizer
Watch watch (16666)
Assassin assassin
Bellringer bellringer
APICSystem system
const unsigned long IDLE_STACK_SIZE = 4096
IdleThread idle_thread [CPU_MAX]
WakeUp wakeup
char buffer_1 [1280 *1024 *4]
char buffer_2 [1280 *1024 *4]
Guarded_VESAGraphics vesa (buffer_1, buffer_2)

AusfĂŒhrliche Beschreibung

EnthĂ€lt mit den main() und main_ap() Funktionen den Startpunkt fĂŒr das System.


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])
        }

  Impressum   Datenschutz Stand: 2010-07-19 12:37   BO, DL