mirror of
https://github.com/drasko/codezero.git
synced 2026-07-22 15:15:24 +02:00
Added a new system call sys_timer.
sys_timer accumulates timer ticks into seconds, minutes, hours and days. It's left to the user to calculate from days into a date. It is not yet known if the calculation is even roughly correct. Reduced 2 kmem_reclaim/grant calls into one kmem_control call.
This commit is contained in:
@@ -64,13 +64,14 @@ typedef int (*__l4_exchange_registers_t)(unsigned int pc, unsigned int sp,
|
||||
extern __l4_exchange_registers_t __l4_exchange_registers;
|
||||
int l4_exchange_registers(unsigned int pc, unsigned int sp, int pager, l4id_t tid);
|
||||
|
||||
typedef int (*__l4_kmem_reclaim_t)(unsigned long *pfn, int *npages);
|
||||
extern __l4_kmem_reclaim_t __l4_kmem_reclaim;
|
||||
int l4_kmem_reclaim(unsigned long *pfn, int *npages);
|
||||
typedef int (*__l4_kmem_control_t)(unsigned long pfn, int npages, int grant);
|
||||
extern __l4_kmem_control_t __l4_kmem_control;
|
||||
int l4_kmem_control(unsigned long pfn, int npages, int grant);
|
||||
|
||||
typedef int (*__l4_time_t)(void *time_info, int set);
|
||||
extern __l4_time_t __l4_time;
|
||||
int l4_time(void *time_info, int set);
|
||||
|
||||
typedef int (*__l4_kmem_grant_t)(unsigned long pfn, int npages);
|
||||
extern __l4_kmem_grant_t __l4_kmem_grant;
|
||||
int l4_kmem_grant(unsigned long pfn, int npages);
|
||||
|
||||
|
||||
/* To be supplied by server tasks. */
|
||||
|
||||
Reference in New Issue
Block a user