Commit Graph

74 Commits

Author SHA1 Message Date
Ciro Santilli 六四事件 法轮功
62d2152f39 baremetal: working aarch64 svc example adapted from takeharukato
Not yet generalized for usage on multiple files.
2019-02-15 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
1e2b7f1e5e arm baremetal: svc, get closer but not there yet 2019-02-06 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 六四事件 法轮功
54e15e0433 multicore: remove references to PCSI 2018-11-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
ba2976cc7f gem5: fix arm multicore with system.auto_reset_addr = True
baremetal: fix aarch64/no_bootloader/semihost_exit.S which was wrong
because was using unset sp for register block. Tests needed urgently!!
2018-11-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
747da3b417 baremetal: aarch64 multicore works!!! 2018-11-23 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
8dd01415f5 baremetal: only rebuild required files based on mtime
Move multcore test up with bootloader.
2018-11-22 00:00:03 +00:00
Ciro Santilli 六四事件 法轮功
de05e91689 baremetal: arm multicore attempt 2018-11-22 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
35684b1b7e arm exception level emulator entry examples 2018-11-20 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
07000300ab userland: support arch specific examples 2018-11-20 00:00:00 +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 六四事件 法轮功
c0de856222 gdb test: set float 2018-11-14 10:10:12 +00:00
Ciro Santilli 六四事件 法轮功
e54635c3ab make gdb test automation even awesomer 2018-11-13 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
d697640584 add more gdb tests 2018-11-09 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
e0dbe2416d gdb: create some automated tests with pytest
gem5 baremetal: use m5exit m5op in exit() so as to not force users to
apply a patch for almost all examples
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
b1e16a59a1 baremetal: exit at the end of main instead of infinite loop
run: interpret lkmc_test_fail as the last line of test as an error
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
fc9e0c28a5 baremetal: create an assert_fail C helper
Create a test for it under interactive/assert_fail.c

Move prompt under interactive

Create baremetal/arch/aarch64/c_from_as.S as an example of calling C
functions from assembly.
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
6bfb5221d1 userland: make --host awesome 2018-10-31 19:00:05 +00:00
Ciro Santilli 六四事件 法轮功
0edf7575cd gem5: update to d4b3e064adeeace3c3e7d106801f95c14637c12f
Mostly for --param to control debug properly.

Less README workarounds, more ./run automation, oh yeah.
2018-10-28 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
f403f86934 baremetal: aarch64 m5exit 2018-09-27 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
62a91e5583 baremetal: better asm comments 2018-09-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
b2230bacf9 gem5 semihosting 2018-09-24 09:26:39 +01:00
Ciro Santilli 六四事件 法轮功
c53ccb0278 baremetal: aarch64 semihosting exit 2018-09-23 17:31:57 +01:00
Ciro Santilli 六四事件 法轮功
74b51fc044 gem5: update to 7bfb7f3a43f382eb49853f47b140bfd6caad0fb8
The update is required to include 3c3ca64b5f0dd9eef7b1ce1c65cc6e8e9147dd38
otherwise baremetal does not on VExpress.

baremetal: create a baremetal setup with crosstool-ng

buildroot: improve directory location: move out/dl inside
out/buildroot/download, and add a new out/buildroot/build level

tagline: generalize, deliver more value than howto, since now howtos
are starting to multiply

rename all top scripts to separate words with hyphen more consistently,
e.g. run-gdb instead of rungdb

getvar: list all variables

gem5: make m5out section to focus all releated information at

Prevent m5term Text file busy when rebuilding gem5 while it is running.
2018-09-23 13:56:20 +01:00