Files
mop3/libmsl/m/proc.h
kamkow1 ebd9f0cac6
All checks were successful
Build documentation / build-and-deploy (push) Successful in 22s
Let the user application decide upon the resource ID (RID)
2026-01-14 23:19:39 +01:00

30 lines
767 B
C

#ifndef _LIBMSL_M_PROC_H
#define _LIBMSL_M_PROC_H
#if defined(__x86_64__)
#define PROC_MAP_BASE 0x0000700000000000
#define PAGE_SIZE 4096
#endif
#define PM_PRESENT (1 << 0)
#define PM_RW (1 << 1)
#define PM_USER (1 << 2)
#define RV_PRIVATE 0
#define RV_PUBLIC 1
#include <stddef.h>
#include <stdint.h>
int proc_quit (void);
int proc_test (char c);
int proc_map (uintptr_t paddr, uintptr_t vaddr, size_t pages, uint32_t flags);
int proc_unmap (uintptr_t vaddr, size_t pages);
int proc_create_resource_mem (int rid, size_t pages, int vis, uintptr_t* out_paddr);
int proc_drop_resource (int rid);
int proc_create_resource_mutex (int rid, int vis);
int proc_mutex_lock (int mutex_rid);
int proc_mutex_unlock (int mutex_rid);
#endif // _LIBMSL_M_PROC_H