Main Page | Directories | File List | Globals

syscalls.c File Reference

#include <agnix/agnix.h>
#include <agnix/init.h>
#include <agnix/linkage.h>
#include <agnix/unistd.h>
#include <agnix/tasks.h>
#include <agnix/syscalls.h>
#include <agnix/console.h>

Include dependency graph for syscalls.c:

Go to the source code of this file.


asmlinkage void syscall_irq (struct regs_s regs)


tss_wrap_s init_tss [MAX_TASKS]
tss_s * syscall_tss
int(* syscall_table [0xFF])(struct regs_s *regs)

Function Documentation

asmlinkage void syscall_irq struct regs_s  regs  ) 

Definition at line 159 of file syscalls.c.

References syscall_table.

00160 {
00161     u32 function;
00162     int ret;
00164     function = regs.eax;
00166     if (syscall_table[function] != 0) {
00167         ret = syscall_table[function](&regs);
00168         regs.eax = (u32)ret;
00169     }
00170 }

Variable Documentation

struct tss_wrap_s init_tss[MAX_TASKS]

Referenced by task_kernel_create(), task_switch(), and tasks_init().

int(* syscall_table[0xFF])(struct regs_s *regs)

Definition at line 25 of file syscalls.c.

Referenced by syscall_irq().

struct tss_s* syscall_tss

Definition at line 29 of file init_task.c.

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix