Replaced kread and kmem_control syscalls with capability_control and container_control respectively.

This commit is contained in:
Bahadir Balban
2009-08-06 16:22:55 +03:00
parent f7ade97906
commit 961b255257
9 changed files with 88 additions and 116 deletions

View File

@@ -0,0 +1,9 @@
/*
* Syscall API for capability manipulation
*
* Copyright (C) 2009 Bahadir Balban
*/
#ifndef __API_CAPABILITY_H__
#define __API_CAPABILITY_H__
#endif /* __API_CAPABILITY_H__ */

View File

@@ -46,7 +46,7 @@ struct kip {
u8 api_version;
u32 api_flags;
u32 kmem_control;
u32 container_control;
u32 time;
u32 space_control;
@@ -54,7 +54,7 @@ struct kip {
u32 ipc_control;
u32 map;
u32 ipc;
u32 kread;
u32 capability_control;
u32 unmap;
u32 exchange_registers;
u32 thread_switch;
@@ -83,10 +83,6 @@ struct kip {
#define __VFSNAME__ "fs0"
#define __BLKDEVNAME__ "blkdev0"
#define KDATA_PAGE_MAP 0
#define KDATA_BOOTDESC 1
#define KDATA_BOOTDESC_SIZE 2
#if defined (__KERNEL__)
extern struct kip kip;
#endif /* __KERNEL__ */

View File

@@ -22,8 +22,8 @@
#define sys_ipc_control_offset 0x1C
#define sys_map_offset 0x20
#define sys_getid_offset 0x24
#define sys_kread_offset 0x28
#define sys_kmem_control_offset 0x2C
#define sys_capability_control_offset 0x28
#define sys_container_control_offset 0x2C
#define sys_time_offset 0x30
#define sys_mutex_control_offset 0x34
#define syscalls_end_offset sys_mutex_control_offset
@@ -42,8 +42,8 @@ int sys_ipc_control(void);
int sys_map(unsigned long phys, unsigned long virt, unsigned long npages,
unsigned long flags, unsigned int tid);
int sys_getid(struct task_ids *ids);
int sys_kread(int rd, void *addr);
int sys_kmem_control(unsigned long pfn, int npages, int grant);
int sys_capability_control(unsigned int req, unsigned int flags, void *addr);
int sys_container_control(unsigned int req, unsigned int flags, void *addr);
int sys_time(struct timeval *tv, int set);
int sys_mutex_control(unsigned long mutex_address, int mutex_op);