Implement #include<sys/user.h> and #include<sys/procfs.h>

This patch implements sys/user.h file that works for both x86_64 as well
as aarch64. This include file is used by sys/procfs.h which is needed
dependency for binutils. There is bug in this patch in aarch64 implementation
which is the lack of f128 implementation in rust, thus we can't create cbinding
for long double.
This commit is contained in:
oddcoder
2020-04-24 15:39:08 +02:00
parent 763bb2488d
commit 3a923aa62d
8 changed files with 160 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
#ifndef _SYS_USER_H
#define _SYS_USER_H
#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_AMD64)
#include <arch/x64/user.h>
#elif defined(__aarch64__)
#include <arch/aarch64/user.h>
#else
#error "Unknown architecture"
#endif
#endif