Commit 49f758b8 authored by Andrew Jones's avatar Andrew Jones Committed by Radim Krčmář
Browse files

arm/arm64: code derived from Linux must be GPL not LGPL



Also update copyrights.
Reported-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
[Amend two other "Adapated" typos as well.]
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent f2af9e33
/*
* Boot entry point and assembler functions for aarch64 tests.
*
* Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#define __ASSEMBLY__
#include <asm/asm-offsets.h>
......
/*
* Adapted from arch/arm/kernel/asm-offsets.c
*
* Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <libcflat.h>
#include <kbuild.h>
......
......@@ -2,6 +2,10 @@
#define _ASMARM_BARRIER_H_
/*
* Adapted from arch/arm/include/asm/barrier.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#define sev() asm volatile("sev" : : : "memory")
......
#ifndef _ASMARM_BITOPS_H_
#define _ASMARM_BITOPS_H_
/*
* Adapated from
* Adapted from
* arch/arm/lib/bitops.h
*
* Copyright (C) 2015, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#ifndef _BITOPS_H_
......
......@@ -3,6 +3,10 @@
/*
* From arch/arm/include/asm/pgtable-3level.h
* arch/arm/include/asm/pgtable-3level-hwdef.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#define PTRS_PER_PGD 4
......
......@@ -9,6 +9,10 @@
* Note: some Linux function APIs have been modified. Nothing crazy,
* but if a function took, for example, an mm_struct, then
* that was either removed or replaced.
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <alloc.h>
#include <asm/setup.h>
......
......@@ -4,6 +4,10 @@
* Adapted from Linux kernel headers
* arch/arm/include/asm/ptrace.h
* arch/arm/include/uapi/asm/ptrace.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
/*
......
......@@ -3,6 +3,10 @@
/*
* From the Linux kernel arch/arm/include/asm/cp15.h
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
/*
* CR1 bits (CP#15 CR1)
*/
#define CR_M (1 << 0) /* MMU enable */
......
......@@ -3,9 +3,9 @@
/*
* Adapted from arch/arm64/include/asm/thread_info.h
*
* Copyright (C) 2015, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <asm/page.h>
......
/*
* Adapated from
* Adapted from
* include/asm-generic/bitops/atomic.h
*
* Copyright (C) 2015, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <bitops.h>
#include <asm/barrier.h>
......
/*
* Adapted from u-boot's arch/arm/lib/eabi_compat.c
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <libcflat.h>
......
/*
* Adapted from arch/arm64/kernel/asm-offsets.c
*
* Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <libcflat.h>
#include <kbuild.h>
......
......@@ -2,6 +2,10 @@
#define _ASMARM64_BARRIER_H_
/*
* From Linux arch/arm64/include/asm/barrier.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#define sev() asm volatile("sev" : : : "memory")
......
#ifndef _ASMARM64_BITOPS_H_
#define _ASMARM64_BITOPS_H_
/*
* Adapated from
* Adapted from
* arch/arm64/lib/bitops.S
*
* Copyright (C) 2015, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#ifndef _BITOPS_H_
......
/*
* From Linux kernel arch/arm64/include/asm/esr.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#ifndef _ASMARM64_ESR_H_
#define _ASMARM64_ESR_H_
......
......@@ -3,6 +3,10 @@
/*
* From Linux arch/arm64/include/asm/io.h
* Generic IO read/write. These perform native-endian accesses.
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <libcflat.h>
#include <asm/barrier.h>
......
......@@ -6,9 +6,9 @@
* include/asm-generic/pgtable-nopud.h
* include/asm-generic/pgtable-nopmd.h
*
* Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com>
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <linux/const.h>
......
......@@ -3,7 +3,12 @@
/*
* From arch/arm64/include/asm/pgtable-hwdef.h
* arch/arm64/include/asm/memory.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#define UL(x) _AC(x, UL)
#define PTRS_PER_PTE (1 << (PAGE_SHIFT - 3))
......
......@@ -9,6 +9,10 @@
* Note: some Linux function APIs have been modified. Nothing crazy,
* but if a function took, for example, an mm_struct, then
* that was either removed or replaced.
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <alloc.h>
#include <asm/setup.h>
......
......@@ -4,6 +4,10 @@
* Adapted from Linux kernel headers
* arch/arm64/include/asm/ptrace.h
* arch/arm64/include/uapi/asm/ptrace.h
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
/* Current Exception Level values, as contained in CurrentEL */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment