Giter VIP home page Giter VIP logo

nova's People

Contributors

alex-ab avatar atopia avatar blitz avatar chelmuth avatar cproc avatar m-stein avatar ssumpf avatar udosteinberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nova's Issues

False initial EC/SC times

When tracing kernel IDLE times in Genode, I discovered the initial values of EC/SC times for idle are bogus. Some investigation led me to the moment, when IA32_TSC is reset on bootstrap. It seems Sc as well as Ec for kernel idle are constructed earlier and cache TSC values in the tsc member. When the clock is turned back these values are well in the future, which breaks calculations in kernel and also in Genode. For example, trace_logger reports 0 and 1 are in most cases useless.

GCC 6

The nova build fails with gcc 6 with the following error message:

gcc-6  -I../include -MP -MMD -pipe -m32 -march=i686 -mpreferred-stack-boundary=2 -mregparm=3 -Os -fdata-sections -ffunction-sections -fomit-frame-pointer -freg-struct-return -freorder-blocks -funit-at-a-time -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -fdiagnostics-color=auto -std=gnu++11 -Wall -Wextra -Waggregate-return -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Wformat=2 -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wwrite-strings -Wabi -Wctor-dtor-privacy -Wno-non-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wframe-larger-than=64 -Wlogical-op -Wstrict-null-sentinel -Wstrict-overflow=5 -Wvolatile-register-var -Wzero-as-null-pointer-constant -c ../src/acpi.cpp -o acpi-x86_32.o
In file included from ../src/acpi.cpp:28:0:
../include/acpi_rsdt.hpp:45:26: error: flexible array member in union
             uint32  rsdt[];
                          ^
../include/acpi_rsdt.hpp:46:26: error: flexible array member in union
             uint64  xsdt[];
                          ^
In file included from ../include/mdb.hpp:24:0,
                 from ../include/space.hpp:25,
                 from ../include/space_mem.hpp:29,
                 from ../include/pd.hpp:25,
                 from ../src/acpi.cpp:36:
../include/rcu.hpp: In member function 'bool Rcu_list::enqueue(Rcu_elem*)':
../include/rcu.hpp:67:69: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
             Rcu_elem * const unused = reinterpret_cast<Rcu_elem *>(0);
                                                                     ^
Makefile:104: recipe for target 'acpi-x86_32.o' failed
make: *** [acpi-x86_32.o] Error 1

I looked into it but there doesn't seem to be a simple and clean fix (at least none I could have easily fixed without understanding the code).

Cannot remap root ELF with overlapping sections

As far as I can tell NOVA cannot remap the root ELF into the root EC if some sections have an ELF region that is small than their logical size in memory. This is sometimes the case when I build and link a Genode core image using Clang.

NOVA/src/ec.cpp

Line 279 in 792d131

if (p->f_size != p->m_size || p->v_addr % PAGE_SIZE != p->f_offs % PAGE_SIZE)

Is it reasonable to make copies of these sections where they cannot be directly delegated, or does this need to be fixed during linking the root image?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.