This adds the very basic infrastructure for s390x. For now, only a basic self test is provided. This one will also run under TCG. The following, previously sent patches are required: - [PATCH kvm-unit-tests] Makefile: drop "-lpthread -lrt" - [kvm-unit-tests PATCH v1 0/3] provide asm-generic spinlock - [kvm-unit-tests PATCH v1] lib: fix compilation warning Parts taken from a prototype by Thomas Huth. David Hildenbrand (6): s390x: initial infrastructure s390x: basic self test s390x: copy sclp.h and sclp-ascii.c from QEMU s390x: compile sclp-ascii.c s390x: wire up sclp console output MAINTAINERS: add s390x maintainers MAINTAINERS | 7 +++ configure | 2 +- lib/s390x/asm/barrier.h | 16 +++++++ lib/s390x/asm/io.h | 17 ++++++++ lib/s390x/asm/page.h | 16 +++++++ lib/s390x/asm/spinlock.h | 16 +++++++ lib/s390x/asm/stack.h | 21 +++++++++ lib/s390x/io.c | 49 +++++++++++++++++++++ lib/s390x/sclp-ascii.c | 68 +++++++++++++++++++++++++++++ lib/s390x/sclp.h | 108 +++++++++++++++++++++++++++++++++++++++++++++++ lib/s390x/stack.c | 28 ++++++++++++ s390x/Makefile | 35 +++++++++++++++ s390x/cstart64.S | 39 +++++++++++++++++ s390x/flat.lds | 42 ++++++++++++++++++ s390x/run | 56 ++++++++++++++++++++++++ s390x/selftest.c | 31 ++++++++++++++ s390x/unittests.cfg | 24 +++++++++++ 17 files changed, 574 insertions(+), 1 deletion(-) create mode 100644 lib/s390x/asm/barrier.h create mode 100644 lib/s390x/asm/io.h create mode 100644 lib/s390x/asm/page.h create mode 100644 lib/s390x/asm/spinlock.h create mode 100644 lib/s390x/asm/stack.h create mode 100644 lib/s390x/io.c create mode 100644 lib/s390x/sclp-ascii.c create mode 100644 lib/s390x/sclp.h create mode 100644 lib/s390x/stack.c create mode 100644 s390x/Makefile create mode 100644 s390x/cstart64.S create mode 100644 s390x/flat.lds create mode 100755 s390x/run create mode 100644 s390x/selftest.c create mode 100644 s390x/unittests.cfg -- 2.9.3