TacOS
0.2
|
#include <gdt.h>
#include <interrupts.h>
#include <ksyscall.h>
#include <klog.h>
#include <klibc/string.h>
#include <scheduler.h>
#include <ksignal.h>
Fonctions | |
void | syscall_entry (int interrupt_id) |
Point d'entrée des appels systèmes C'est cette fonction qui est lancée à la réception de l'IRQ_SYSCALL Sont rôle est de récupérer l'identifiant de l'appel système, et d'exécuter en conséquence le handler correspondant. Plus de détails... | |
int | syscall_set_handler (uint32_t syscall_id, syscall_handler_t handler) |
Associe un identifiant d'appel système à une handler. Plus de détails... | |
void | init_syscall () |
Initialisation des appels systemes. Plus de détails... | |
SYSCALL_HANDLER3 (sys_dummy, uint32_t a, uint32_t b, uint32_t c) | |
Variables | |
syscall_handler_t | syscall_handler_table [MAX_SYSCALL_NB] |
Copyright (C) 2010-2014 TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Description de ce que fait le fichier
void init_syscall | ( | ) |
Initialise le système pour pouvoir exécuter correctement les appels systèmes
void syscall_entry | ( | int | interrupt_id | ) |
unused |
int syscall_set_handler | ( | uint32_t | syscall_id, |
syscall_handler_t | handler | ||
) |
syscall_id | Identifian de l'appel système. |
handler | Adresse du handler |
syscall_handler_t syscall_handler_table[MAX_SYSCALL_NB] |
Table des syscall handlers.