mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 11:23:16 +01:00
Added a new irq_control system call
This is currently an empty call. It will be used for registering, receiving and releasing irqs.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
#define CODEZERO_VERSION 0
|
||||
#define CODEZERO_SUBVERSION 1
|
||||
#define CODEZERO_SUBVERSION 2
|
||||
#define KDESC_DATE_SIZE 12
|
||||
#define KDESC_TIME_SIZE 9
|
||||
|
||||
@@ -49,7 +49,7 @@ struct kip {
|
||||
u32 container_control;
|
||||
u32 time;
|
||||
|
||||
u32 space_control;
|
||||
u32 irq_control;
|
||||
u32 thread_control;
|
||||
u32 ipc_control;
|
||||
u32 map;
|
||||
@@ -71,9 +71,6 @@ struct kip {
|
||||
struct kernel_descriptor kdesc;
|
||||
} __attribute__((__packed__));
|
||||
|
||||
#define __PAGERNAME__ "mm0"
|
||||
#define __VFSNAME__ "fs0"
|
||||
#define __BLKDEVNAME__ "blkdev0"
|
||||
|
||||
#if defined (__KERNEL__)
|
||||
extern struct kip kip;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#define sys_exchange_registers_offset 0xC
|
||||
#define sys_schedule_offset 0x10
|
||||
#define sys_unmap_offset 0x14
|
||||
#define sys_space_control_offset 0x18
|
||||
#define sys_irq_control_offset 0x18
|
||||
#define sys_ipc_control_offset 0x1C
|
||||
#define sys_map_offset 0x20
|
||||
#define sys_getid_offset 0x24
|
||||
@@ -37,7 +37,7 @@ int sys_thread_control(unsigned int flags, struct task_ids *ids);
|
||||
int sys_exchange_registers(struct exregs_data *exregs, l4id_t tid);
|
||||
int sys_schedule(void);
|
||||
int sys_unmap(unsigned long virtual, unsigned long npages, unsigned int tid);
|
||||
int sys_space_control(void);
|
||||
int sys_irq_control(unsigned int req, unsigned int flags, l4id_t id);
|
||||
int sys_ipc_control(void);
|
||||
int sys_map(unsigned long phys, unsigned long virt, unsigned long npages,
|
||||
unsigned int flags, l4id_t tid);
|
||||
|
||||
Reference in New Issue
Block a user