summaryrefslogtreecommitdiff
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-05-29 13:18:00 +0200
committerTom Rini <trini@konsulko.com>2021-06-23 08:45:03 -0400
commit5ad9220bf7b54d958627dd8a0475a44c5a238f0a (patch)
tree3d309b28366d1298c6737d5be9792f553cc61f64 /common/dlmalloc.c
parent2600dd897ed247993670465a4c5acb23a57eab3e (diff)
downloadu-boot-5ad9220bf7b54d958627dd8a0475a44c5a238f0a.tar.gz
u-boot-5ad9220bf7b54d958627dd8a0475a44c5a238f0a.tar.bz2
u-boot-5ad9220bf7b54d958627dd8a0475a44c5a238f0a.zip
malloc: add SPDX license identifiers
The original code is in the public domain. Licenses/README states that the general license for U-Boot is GPL 2.0+. So we can mark the malloc code as GPL 2.0+ too. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index cf0270a9c1..11729e8c85 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -1,3 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * This code is based on a version (aka dlmalloc) of malloc/free/realloc written
+ * by Doug Lea and released to the public domain, as explained at
+ * http://creativecommons.org/publicdomain/zero/1.0/-
+ *
+ * The original code is available at http://gee.cs.oswego.edu/pub/misc/
+ * as file malloc-2.6.6.c.
+ */
+
#include <common.h>
#include <log.h>
#include <asm/global_data.h>