1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

Merge branch 'production' into devel

This commit is contained in:
Stefan Lankes 2017-01-19 07:56:20 +01:00
commit d23617db9e
7 changed files with 24 additions and 9 deletions

3
.gitignore vendored
View file

@ -44,6 +44,9 @@ usr/openmpbench/schedbench
usr/openmpbench/syncbench
usr/openmpbench/taskbench
usr/tmp/
tools/Makefile
usr/ircce/Makefile
usr/xray/Makefile
arch/x86/kernel/boot.h
usr/binutils/
usr/gcc/

View file

@ -6,10 +6,10 @@ language: c
compiler: gcc
before_install:
- echo "deb https://dl.bintray.com/rwth-os/hermitcore vivid main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get -qq update
- sudo apt-get install -y curl qemu-system-x86 nasm texinfo libmpfr-dev libmpc-dev libgmp-dev libisl-dev flex bison packaging-dev
- travis_retry sudo apt-get -qq update
- travis_retry sudo apt-get install -y curl qemu-system-x86 nasm texinfo libmpfr-dev libmpc-dev libgmp-dev libisl-dev flex bison packaging-dev
#- sudo apt-get install -y --force-yes binutils-hermit gcc-hermit-bootstrap
- sudo apt-get install -y --force-yes binutils-hermit libhermit newlib-hermit pthread-embedded-hermit gcc-hermit
- travis_retry sudo apt-get install -y --force-yes binutils-hermit libhermit newlib-hermit pthread-embedded-hermit gcc-hermit
- git submodule update --init lwip usr/libomp
script:
@ -18,7 +18,9 @@ script:
- tar -czf libhermit_0.1.orig.tar.gz libhermit-0.1 --exclude=.git
- cd libhermit-0.1
- debuild -e PATH -us -uc -j2
- x86_64-hermit-readelf -a kernel/main.o | grep ABI
- sudo dpkg -i ../libhermit*_amd64.deb
- make -j2 examples
- if [ "$TRAVIS_BRANCH" != "production" ]; then make test; fi
deploy:
on: production

View file

@ -196,7 +196,7 @@ examples:
PROFILING_CFLAGS="$(PROFILING_CFLAGS)" \
PROFILING_LDFLAGS="$(PROFILING_LDFLAGS)" -C usr examples
test: demo
test:
. ./test.sh
qemu:

View file

@ -272,7 +272,17 @@ int memory_init(void)
LOG_INFO("Free region 0x%zx - 0x%zx\n", start_addr, end_addr);
if ((start_addr <= base) && (end_addr >= PAGE_2M_FLOOR(base+image_size))) {
if ((start_addr <= base) && (end_addr <= base)) {
init_list.start = start_addr;
init_list.end = end_addr;
LOG_INFO("Add region 0x%zx - 0x%zx\n", init_list.start, init_list.end);
} else if ((start_addr <= base) && (end_addr < PAGE_2M_FLOOR(base+image_size))) {
init_list.start = start_addr;
init_list.end = base;
LOG_INFO("Add region 0x%zx - 0x%zx\n", init_list.start, init_list.end);
} else if ((start_addr <= base) && (end_addr >= PAGE_2M_FLOOR(base+image_size))) {
init_list.start = PAGE_2M_FLOOR(base+image_size);
init_list.end = end_addr;

View file

@ -4,7 +4,7 @@
# it is written only for internal tests via Travis CI
FILES="usr/tests/hello usr/tests/hellof usr/tests/hello++ usr/tests/thr_hello usr/tests/pi usr/benchmarks/stream usr/benchmarks/basic"
PROXY=tools/proxy
PROXY=/opt/hermit/bin/proxy
for f in $FILES; do echo "check $f..."; $PROXY $f || exit 1; done

@ -1 +1 @@
Subproject commit e7ea3a270fc09f771596c02869344a362c8c5439
Subproject commit 2046fa1ea1587ba862e54e797433e1d726ab6ba8

View file

@ -29,7 +29,7 @@
#include <errno.h>
#include <signal.h>
#include <pthread.h>
#include <syscall.h>
#include <hermit/syscall.h>
#define THREAD_COUNT_DEFAULT 2