EnthĂ€lt mit den main() und main_ap() Funktionen den Startpunkt fĂŒr das System. Mehr ...
#include "machine/apicsystem.h"#include "machine/lapic.h"#include "device/cgastr.h"#include "object/debug.h"#include "user/app1/appl.h"#include "user/app2/kappl.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_semaphore.h"
Funktionen | |
| void | setupIdleThread (int cpuid) |
| int | main () |
| Einsprungpunkt ins System. Mehr ... | |
| int | main_ap () |
| Einsprungpunkt fĂŒr Applikationsprozessoren. Mehr ... | |
Variablen | |
| CGA_Stream | kout (0, 79, 0, 15, true) |
| CGA_Stream | dout_CPU0 (0, 39, 16, 20) |
| CGA_Stream | dout_CPU1 (40, 79, 16, 20) |
| CGA_Stream | dout_CPU2 (0, 39, 21, 23) |
| CGA_Stream | dout_CPU3 (40, 79, 21, 23) |
| Plugbox | plugbox |
| IOAPIC | ioapic |
| Guarded_Keyboard | keyboard |
| Guard | guard |
| Watch | watch |
| Assassin | assassin |
| Bellringer | bellringer |
| APICSystem | system |
| WakeUp | wakeup |
| const unsigned long | IDLE_STACK_SIZE = 4096 |
| IdleThread | idle_thread [CPU_MAX] |
| Guarded_Semaphore | koutsem (1) |
| int main | ( | ) |
Einsprungpunkt ins System.
Dieser Code wird nur auf der Boot-CPU (diejenige mit der ID 0) ausgefĂŒhrt.
| int main_ap | ( | ) |
Einsprungpunkt fĂŒr Applikationsprozessoren.
Code in dieser Funktion wird auf allen Applikationsprozessoren ausgefĂŒhrt (entspricht allen CPUs auĂer derjenigen mit der ID 0).
| IdleThread idle_thread[CPU_MAX] |