Giter Club home page Giter Club logo

serval-paging's Introduction

Servaled paging

C library handling page allocation and page mapping mechanisms. Intended to be proved correct by Serval.

How to prove with Serval

From the root directory of this repository, run the following commands:

docker run -it --name serval unsat/serval-tools:artifact

This will open a shell in the Serval container. Open another terminal and go to the root directory of this repository again, then run from there:

docker cp $(pwd) serval:/serval/racket/test

Then, from inside the Serval container :

cp /usr/riscv64-linux-gnu/include/gnu/stubs-lp64d.h /usr/riscv64-linux-gnu/include/gnu/stubs-lp64.h
cd /serval/racket/test/
cp servaled-paging/{src/all.c,include/all.h,specs/all.rkt} .
make -C ../../ raco-test

There should be 2 errors: they come from a missing library required by some of Serval's own tests. They can be ignored. Any other error should come from the allocation spec and implementation.

To make the verification faster, you can remove some of the verifications done on other Serval test files by replacing in /serval/racket/racket.mk :

RACO_TESTS      += $(wildcard racket/test/*.rkt)

by

override RACO_TESTS = racket/test/all.rkt

With only the tests of the allocation/paging library remaining, all tests should pass. Otherwise send me an email.

Directory structure

The headers are in include/ and the source files are in src/.

serval-paging's People

Contributors

michaelpaper avatar

Watchers

George Prekas avatar Edouard Bugnion avatar

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.