Commit Graph

14 Commits

Author SHA1 Message Date
Ciro Santilli 六四事件 法轮功
a30ed0f047 inline assembly: improve everywhere 2019-02-25 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
d5e16fd8ae lkmc_vector_equal into lkmc.c
Document lkmc.c
2019-02-20 00:00:04 +00:00
Ciro Santilli 六四事件 法轮功
e855a262fd aarch64 baremetal svc factored out for C and asm 2019-02-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
a8b6f758ba split --prebuilt and --host into --gcc-which and --qemu-which
Only one --host exists at ./build-modules, since that can select the host
kernel, which is independent from the toolchain.

Document that user mode simulation stopped working.
2019-02-16 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
da900a579c LKMC v3.0
This is a squash commit, the unsquashed development went through many
unstable phases which would break bisects. The unsquashed branch is:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/v3.0-unsquash

The main improvement of this release was to greatly generalize the testing system.

The key addition was cli_function.py, which allows scripts such as ./run to
be transparently called either from Python or from the command line.

New tests scripts were created using this improved framework: test-baremetal
and test-user-mode.

We were lazy to port some of less important tests to the new setup, TODO's were
added, and we need comes they will be fixed. Getting started is however sacred
as usual and should work.

Other changes include:

-   gem5: update to 7fa4c946386e7207ad5859e8ade0bbfc14000d91

-   run: --tmux-args implies --tmux

-   run: add --userland-args to make userland arguments across QEMU and gem5

    Get rid of --userland-before as a consequence.

-   bring initrd and initramfs back to life

-   build-userland: create --static to make build a bit easier

-   gem5: --gem5-worktree also set --gem5-build-id

-   remove --gem5, use --emulator gem5 everywhere

    Allow passing --emulator multiple times for transparent tests selection
    just like --arch.

-   test-userland: allow selecting just a few tests

-   linux: update to v4.20

-   buildroot: update to 2018.08

    The main motivation for this was to fix the build for Ubuntu 18.10, which
    has glibc 2.28, which broke the 2018.05 build at the m4-host package with:

        #error "Please port gnulib fseeko.c to your platform!

-   getvar --type input

-   failed xen attempt, refactor timer, failed svc attempt, aarch64 use gicv3

-   build-doc: exit 1 on error, add to release testing

-   build: add --apt option to make things easier on other distros

-   build-linux: --no-modules-install
2019-01-22 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
07000300ab userland: support arch specific examples 2018-11-20 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1fda6357c3 gdb: stub for testing userland
Not working because cannot find, requires moving --userland to common.py
2018-11-15 20:07:47 +00:00
Ciro Santilli 六四事件 法轮功
f8631e58d0 userland: create interactive example 2018-11-15 20:07:47 +00:00
Ciro Santilli 六四事件 法轮功
26b890f42f Factor common userland and baremetal C functions
This allows add.c to run unmodified on both!

For that to work, use int main on baremetal, and pass the return value to
the final exit.
2018-11-15 20:07:47 +00:00
Ciro Santilli 六四事件 法轮功
9693c23fe6 gdb userland and gdbserver are perfect 2018-11-03 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
4f47491482 userland: make uber awesome with --baremetal-like executable resolution 2018-10-30 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
ab2574a790 userland: build id
user mode: factor out nicely with -static and build id
2018-10-30 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
873737bd1f virt_to_phys: fix multiple read size
build-buildroot: add --make-args
2018-10-30 23:00:01 +00:00
Ciro Santilli 六四事件 法轮功
ca231b82f6 get rid of lkmc package, move userland and kernel-modules to top
Rationale: we already had a non buildroot build system,
maintaining both will be hard, and having short paths is more awesome.
2018-10-25 00:00:02 +00:00