Commit Graph
1268 Commits
Author SHA1 Message Date
Chia-Che Tsai 501976f938 Add code of conduct to the project 2020-02-16 14:17:51 -06:00
borysp f2b1d194a1 [Make] Remove std=gnu99 from tests 2020-02-14 05:16:50 +01:00
borysp 6c0c0c526a [Make] Fix LibOS tests build errors 2020-02-14 05:16:50 +01:00
Dmitrii Kuvaiskii ff8457f54e [Pal/Linux-SGX] Remove support for Intel SGX drivers version 1.8- 2020-02-13 17:37:23 -08:00
Isaku Yamahata b25bd2aed5 [Make] List object files in plain manner
The current Makefiles are unnecessarily too smart in avoiding
duplication (which is small, I think). As a result, it's hard to
understand what files are listed. Use plain, explicit listing instead.

Also, append .o to objs variables. Usually obj means .o file, not the
base name of file. It was confusing.
2020-02-12 17:09:24 +01:00
Isaku Yamahata 4bcf3a6287 [Pal/Linux-SGX] Save/restore callee-saved regs on sgx_{ecall,raise}
The EEXIT instruction does not restore registers of untrusted part of
the program. Thus, sgx_ecall() and sgx_raise() functions must save
callee-saved regs before EENTER and restore them after EEXIT. This
fixes the bug of a build with DEBUG=0 when the untrusted part of the
program uses RBP and other regs (in contrast to undefined DEBUG when
these registers are optimized away from the untrusted part).
2020-02-11 20:33:46 -08:00
Isaku Yamahata 4182c29476 [LibOS] Eliminate unnecessary nested functions
BEGIN_MIGRATION_DEF() is used to define nested functions unnecessarily.
Make them normal (non-nested) functions.
2020-02-12 02:11:58 +01:00
Isaku Yamahata 8ca30edbfa [Make] Remove the use of wildcards
The use of wildcards in Makefiles for targets is undesirable for tests.
For example, if a file is deleted accidentally, Make doesn't detect it.
What needs to be build should be explicit.

This patch replaces the use of wildcards in tests' Makefiles with
explicitly listed executables.
2020-02-12 01:17:22 +01:00
Isaku Yamahata df358b8ba8 [Make] Consistently use $(RM) instead of rm -f 2020-02-12 01:09:21 +01:00
Thomas Knauth 6f0690f223 Remove forcing some cpuid subleafs to zero 2020-02-11 23:59:52 +01:00
Isaku Yamahata e3c62c7a9f [CI] run-pylint: Exclude .py from external sources
- exclude .py from glibc, LTP, etc.
- ignore return code of `command` (it's handled later)
2020-02-11 22:43:54 +01:00
Isaku Yamahata ff0fd4d0fd [.gitignore] Remove * from .gitignore files
Plain wildcards `*` in .gitignore are considered a bad practice
because they may cause unintended ignore of files. This commit
replaces `*` with explicit lists of file names.
2020-02-11 12:15:56 -08:00
Isaku Yamahata f1a346985d [Pal/Linux-SGX] Eliminate an unused function, unset_sighandler()
unset_sighandler() is broken. SIG_DFL can't be struct sigaction.
Delete the function instead of fixing it because it's unused.
2020-02-11 11:20:03 +01:00
Isaku Yamahata 5a84d36e8c [LibOS] Use right type, struct wake_queue_node*, instead of void* 2020-02-11 02:30:49 +01:00
Isaku Yamahata 0214a5b7ca [Pal/Linux] 16-align stack before calling pal_linux_main 2020-02-11 01:33:51 +01:00
Isaku Yamahata ada76139e2 [LibOS] Makefile: Remove OMIT_FRAME_POINTER flag
There is no code depending on it. If it's wanted, one could simply
change CFLAGS.
2020-02-11 00:45:36 +01:00
Isaku Yamahata ba28a9c02c [Pal/{Linux, Linux-SGX}] Remove duplicated labels in clone-x86_64.S
ENTRY() macro already defines a label, so the labels don't need to be
defined again.
2020-02-10 23:45:39 +01:00
Isaku Yamahata d2d88e16fe [LibOS] Change ioctl(, int cmd) to ioctl(, unsigned long cmd)
The second argument to ioctl is unsigned long, not int.
2020-02-10 22:38:07 +01:00
Isaku Yamahata 15e298ace9 [LibOS] glibc: Remove INLINE_SYSCALL_ASM and related changes
It's the same as INLINE_SYSCALL, plus the changes to INLINE_SYSCALL are
unnecessary churn now. It seems to be a legacy from old patches.
2020-02-10 01:58:36 +01:00
borysp d4dcbdd76b [Runtime] Fix pal_loader bash script typo 2020-02-10 00:13:13 +01:00
Simon Gaiser 32c1965fdd [CI] Runtime/pal_loader has been cleaned up, remove it from ignore list 2020-02-06 17:32:59 -08:00
Isaku Yamahata afddf5c4cc [LibOS] Build test/{benchmark, inline, regression} 2020-02-05 23:21:06 -08:00
Isaku Yamahata 43ef9982e2 [Runtime] Fix pal_loader bash script for shellcheck 2020-02-05 23:21:06 -08:00
Isaku Yamahata 8db9c73431 [Pal] Error out on unsupported platforms in regression/ and test/ 2020-02-05 23:21:06 -08:00
Isaku Yamahata 0a7e3dd127 [LibOS,Pal] Move header files from Pal/lib/ under Pal/include/ 2020-02-05 23:21:06 -08:00
Isaku Yamahata 07722756e5 [Scripts] Include dependency file for .c in Makefile.Test 2020-02-05 23:21:06 -08:00
Isaku Yamahata 05e42acbc6 [Pal] Move header files under include/ and adjust the include directive 2020-02-05 23:21:06 -08:00
Isaku Yamahata d524bd7e30 [Pal/Skeleton] Remove header dependency from Makefile 2020-02-05 23:21:06 -08:00
Isaku Yamahata 8d65898d91 [LibOS,Pal] Eliminate creation of host_endian.h symlink
This file should be included via include path, not via a symlink.
2020-02-05 23:21:06 -08:00
Isaku Yamahata cff1146892 [LibOS,Pal] Modify Makefiles' logic to simplify checks on SYS
The goal of `$(SYS)` check in Makefiles is to skip all targets on
unsupported systems. This commit defines a default goal `all` as
a no-op for simplicity.
2020-02-05 23:21:06 -08:00
Isaku Yamahata fc0b5c4012 [LibOS,Pal] remove unnecessary .PHONY: default in Makefiles 2020-02-05 23:21:05 -08:00
Isaku Yamahata fa2ed00153 [LibOS] Include Makefile.{config, rule} in test/*/Makefile 2020-02-05 23:21:05 -08:00
Isaku Yamahata 647a8f3953 [LibOS,Pal] Consolidate common CFLAGS in Makefile.configs 2020-02-05 23:21:05 -08:00
Isaku Yamahata 72ddedc065 [Scripts] Remove PAL_LOADER variable from Makefile.test 2020-02-05 23:21:05 -08:00
Isaku Yamahata 6d30b68be6 [Pal] regression/Makefile: Remove unused variable extra_rules 2020-02-05 23:21:05 -08:00
Isaku Yamahata 29d907a573 [LibOS,Pal] Consolidate DEBUG, WERROR, PROFILE in Makefile.configs 2020-02-05 23:21:05 -08:00
Isaku Yamahata 88ea5164d6 [LibOS,Pal] Makefiles: use += instead of = in CFLAGS/LDFLAGS/etc 2020-02-05 23:21:05 -08:00
Isaku Yamahata b7e336e15e [Pal/lib] Remove useless setting of CFLAGS in Makefile
Makefile.am overwrites CFLAGS, so setting CFLAGS before including
Makefile.am is useles.
2020-02-05 23:21:05 -08:00
Isaku Yamahata 86afe662f3 [Pal/Linux-SGX] Add rule cmulti to build executable from multiple .o files 2020-02-05 23:21:05 -08:00
Isaku Yamahata 22043ce260 [Pal] Makefile: Remove unnecessary dependencies 2020-02-05 23:21:05 -08:00
Isaku Yamahata c126c10452 [Pal] Move user_start.S under Pal/crt_init/ directory 2020-02-05 23:21:05 -08:00
Isaku Yamahata 5961d999d2 [Pal] Remove redundant HOST_DIR definitions in Makefiles 2020-02-05 23:21:05 -08:00
Isaku Yamahata 50bdec8a23 [LibOS,Pal] Move Makefile.Host under Scripts/ 2020-02-05 23:21:05 -08:00
Isaku Yamahata 419b5c5a11 [Pal] Introduce common Makefile.manifest and remove Pal/src/Makefile.Test 2020-02-05 23:21:05 -08:00
Isaku Yamahata 08ae3a241c [Pal] Use expand_target_to_{sig,sgx,token} instead of expand_target() 2020-02-05 23:21:05 -08:00
Isaku Yamahata d9fa901e17 [Pal/Linux-SGX] Move rules from Makefile.Test to Makefile.manifest 2020-02-05 23:21:05 -08:00
Isaku Yamahata 8fc9f0d948 [LibOS] native/Makefile, benchmark/Makefile: Use implicit pattern rules 2020-02-05 23:21:05 -08:00
Isaku Yamahata 35dd8c9423 [LibOS,Pal] Consolidate export DEBUG in Makefile.configs 2020-02-05 23:21:05 -08:00
Isaku Yamahata 0912f20ccf [LibOS,Pal] Unify the setting of CC and remove raw gcc invocations 2020-02-05 23:21:05 -08:00
Isaku Yamahata dd086816b5 [LibOS,Pal] Define AR and ARFLAGS properly 2020-02-05 23:21:05 -08:00