mirror of
https://github.com/drasko/codezero.git
synced 2026-02-26 16:53:14 +01:00
Replaced kread and kmem_control syscalls with capability_control and container_control respectively.
This commit is contained in:
9
include/l4/api/capability.h
Normal file
9
include/l4/api/capability.h
Normal 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__ */
|
||||
@@ -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__ */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user