Initial release of Intel SGX for Linux.

This release is used in conjunction with the linux-sgx-driver Intial release:
https://github.com/01org/linux-sgx-driver
commit-id: 0e865ce5e6b297a787bcdc12d98bada8174be6d7

Intel-id: 33399

Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
This commit is contained in:
Angie Chinchilla
2016-06-23 18:51:53 -04:00
parent ba82cfcbb0
commit 9441de4c38
2767 changed files with 820699 additions and 0 deletions

View File

@ -0,0 +1,10 @@
kdir=${1:-../kernel}
scriptdir=$(dirname $0)
udir=$(dirname $scriptdir)
cat $scriptdir/kernel-files.txt | \
(while read l r; do
left=$(eval echo $l)
right=$(eval echo $r)
# echo $left $right
diff -up $left $right
done)

View File

@ -0,0 +1,19 @@
$udir/include/tdep-ia64/rse.h $kdir/arch/ia64/unwind/rse.h
$udir/src/ia64/Ginit_local.c $kdir/arch/ia64/unwind/init_local.c
$udir/src/ia64/Gis_signal_frame.c $kdir/arch/ia64/unwind/is_signal_frame.c
$udir/src/ia64/Gparser.c $kdir/arch/ia64/unwind/parser.c
$udir/src/ia64/Grbs.c $kdir/arch/ia64/unwind/rbs.c
$udir/src/ia64/Gregs.c $kdir/arch/ia64/unwind/regs.c
$udir/src/ia64/Gscript.c $kdir/arch/ia64/unwind/script.c
$udir/src/ia64/Gstep.c $kdir/arch/ia64/unwind/step.c
$udir/src/ia64/init.h $kdir/arch/ia64/unwind/init.h
$udir/src/ia64/offsets.h $kdir/arch/ia64/unwind/offsets.h
$udir/src/ia64/regname.c $kdir/arch/ia64/unwind/regname.c
$udir/src/ia64/regs.h $kdir/arch/ia64/unwind/regs.h
$udir/src/ia64/unwind_decoder.h $kdir/arch/ia64/unwind/unwind_decoder.h
$udir/src/mi/Gget_fpreg.c $kdir/unwind/get_fpreg.c
$udir/src/mi/Gget_reg.c $kdir/unwind/get_reg.c
$udir/src/mi/Gset_fpreg.c $kdir/unwind/set_fpreg.c
$udir/src/mi/Gset_reg.c $kdir/unwind/set_reg.c
$udir/src/mi/flush_cache.c $kdir/unwind/flush_cache.c
$udir/src/mi/mempool.c $kdir/unwind/mempool.c

View File

@ -0,0 +1,30 @@
#!/bin/sh
cwd=`pwd`
dir=`basename ${cwd}`
#
# When compiling a file that goes into libunwind, we only
# need to compile it when we really do support UNW_LOCAL_ONLY.
# In contrast, libunwind-tests should always get compiled.
#
if test $dir = "tests"; then
local_only_test=""
else
local_only_test="defined(UNW_LOCAL_ONLY) && "
fi
for gname in `ls G*.c G*.cxx G*.S 2>/dev/null`; do
lname="L$(expr $gname : '.\(.*\)')"
bk edit $lname >/dev/null 2>&1
ext=$(expr $gname : '[^.]*[.]\(.*\)')
if [ "$ext" = "S" ]; then
include=""
else
include="#include <libunwind.h>"
fi
echo -e "\
#define UNW_LOCAL_ONLY\n\
$include\n\
#if ${local_only_test}!defined(UNW_REMOTE_ONLY)\n\
#include \"$gname\"\n\
#endif" > $lname
echo created $lname
done