summaryrefslogtreecommitdiff
path: root/bootwrapper
diff options
context:
space:
mode:
authorRobin Randhawa <robin.randhawa@arm.com>2011-12-20 15:54:33 +0000
committerRobin Randhawa <robin.randhawa@arm.com>2011-12-20 15:54:33 +0000
commit06193b40307e17cf6b675000abb5859838b0c841 (patch)
treebc792d2f9e8be28dd8ffc2913df4bc0cd6a2b5eb /bootwrapper
parent0656dea51f48c51a57e77187de4d5f66a6ba1337 (diff)
downloadswitcher-06193b40307e17cf6b675000abb5859838b0c841.tar.gz
Updated to release v2.1.
Intended to be the basis for the VSM development.
Diffstat (limited to 'bootwrapper')
-rwxr-xr-xbootwrapper/Makefile38
-rwxr-xr-xbootwrapper/big-little-mp1.mxscript2
-rwxr-xr-xbootwrapper/big-little-mp4.mxscript2
-rwxr-xr-xbootwrapper/bl-mp1-fm-eac.mxscript76
-rwxr-xr-xbootwrapper/bl-mp4-fm-eac.mxscript94
-rwxr-xr-xbootwrapper/boot.S34
-rwxr-xr-xbootwrapper/boot.map.template35
-rw-r--r--bootwrapper/bootargs.S34
-rw-r--r--bootwrapper/bootwrapper.h34
-rw-r--r--bootwrapper/c_start.c34
-rw-r--r--bootwrapper/emubuild.s34
-rw-r--r--bootwrapper/filesystem.S43
-rwxr-xr-xbootwrapper/helpers.S34
-rw-r--r--bootwrapper/helpers.h34
-rw-r--r--bootwrapper/kernel.S34
-rwxr-xr-xbootwrapper/makemap34
-rw-r--r--bootwrapper/uart.c36
-rw-r--r--bootwrapper/vectors.S37
-rw-r--r--bootwrapper/vgic.h34
19 files changed, 493 insertions, 210 deletions
diff --git a/bootwrapper/Makefile b/bootwrapper/Makefile
index c2ec64f..addcdae 100755
--- a/bootwrapper/Makefile
+++ b/bootwrapper/Makefile
@@ -1,16 +1,24 @@
-# $Copyright:
-# ----------------------------------------------------------------
-# This confidential and proprietary software may be used only as
-# authorised by a licensing agreement from ARM Limited
-# (C) COPYRIGHT 2008-2011 ARM Limited
-# ALL RIGHTS RESERVED
-# The entire notice above must be reproduced on all authorised
-# copies and copies may only be made to the extent permitted
-# by a licensing agreement from ARM Limited.
-# ----------------------------------------------------------------
-# File: Makefile
-# ----------------------------------------------------------------
-# $
+#
+# Copyright (c) 2011, ARM Limited. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with
+# or without modification, are permitted provided that the
+# following conditions are met:
+#
+# Redistributions of source code must retain the above
+# copyright notice, this list of conditions and the
+# following disclaimer.
+#
+# Redistributions in binary form must reproduce the
+# above copyright notice, this list of conditions and
+# the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# Neither the name of ARM nor the names of its
+# contributors may be used to endorse or promote products
+# derived from this software without specific prior written
+# permission.
+#
# Decrease the verbosity of the make script
# can be made verbose by passing V=1 at the make command line
@@ -75,7 +83,7 @@ bl:
.PHONY: bl_sec
bl_sec:
- make -C big-little bl_sec.axf
+ make -C big-little bl_sec.axf wboot.bin
.PHONY: clean
@@ -106,7 +114,7 @@ bl.o: bl.S
$(Q)armasm $(V7_ASFLAGS) -o $@ $<
bl_sec.S:
- make -C big-little bl_sec.axf
+ make -C big-little bl_sec.axf wboot.bin
@echo " MAP"
$(Q)./makemap big-little/bl_sec.axf bl_sec
diff --git a/bootwrapper/big-little-mp1.mxscript b/bootwrapper/big-little-mp1.mxscript
index 99d90c2..b007e3d 100755
--- a/bootwrapper/big-little-mp1.mxscript
+++ b/bootwrapper/big-little-mp1.mxscript
@@ -40,7 +40,7 @@ int ctr = 0;
// below (on line 47) and uncomment the following lines taking care to update
// the paths accordingly.
// string mmcimage = "<path to mmc.img>";
-// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
// Invoke the model. It then listens for connection requests from the model debugger
// Vanilla invocation of the model.
diff --git a/bootwrapper/big-little-mp4.mxscript b/bootwrapper/big-little-mp4.mxscript
index fb817a9..96bc6bf 100755
--- a/bootwrapper/big-little-mp4.mxscript
+++ b/bootwrapper/big-little-mp4.mxscript
@@ -40,7 +40,7 @@ int ctr = 0;
// below (on line 47) and uncomment the following lines taking care to update
// the paths accordingly.
// string mmcimage = "<path to mmc.img>";
-// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
// Invoke the model. It then listens for connection requests from the model debugger
// Vanilla invocation of the model.
diff --git a/bootwrapper/bl-mp1-fm-eac.mxscript b/bootwrapper/bl-mp1-fm-eac.mxscript
new file mode 100755
index 0000000..7a7912e
--- /dev/null
+++ b/bootwrapper/bl-mp1-fm-eac.mxscript
@@ -0,0 +1,76 @@
+// Replace the string with the absolute path of the Kingfisher model executable
+// e.g. string model = "/home/working_dir/RTSM_VE_Cortex-A15x1-A7x1";
+string model = "<path to the model>";
+
+// Replace the string with the absolute path of the Virutalizer+Payload software image
+// e.g. string app = "/home/working_dir/bootwrapper/img.axf"
+string app = "<path to the software image>";
+
+// Replace the string with the absolute path of the wboot.bin image created in the
+// bootwrapper/big-little directory. This image is load in flash at 0x0 and distinguishes
+// between a warm and a cold reset
+string wboot = "<path to warm reset handler image>";
+
+int ctr = 0;
+
+// NOTE
+//
+// Uncomment the next 4 'string' variables and update them _only_ if the run is required
+// to generate trace output as described in docs/04-Cache-hit-rate-howto.txt. Also,
+// comment out the system() invocation on line 47 and uncomment the system() command on line 34.
+// Each 'trace' parameter is described below.
+
+// Add the path to the trace plugin
+// string trace_plugin = " --trace-plugin <path to>/GenericTrace.so";
+
+// Parameters for selecting the trace sources to monitor outbound cache hits
+// string trace_sources = " --parameter TRACE.GenericTrace.trace-sources=\*sw_trace_event\*,\*read_for_3_came_from_snoop\*,\*read_for_4_came_from_snoop\* ";
+
+// Add the path to the trace file where all the output will be collected
+// string trace_file = " --parameter TRACE.GenericTrace.trace-file=<path to trace file> ";
+
+// Miscellaneous parameters. The frequency at which the performance metrics of the
+// model appear in the trace source can be changed here (default is 0x100).
+// string trace_misc = " -C TRACE.GenericTrace.perf-period=0x100 -C TRACE.GenericTrace.flush=1 ";
+
+// The commented 'system' command below will launch the model and register the trace
+// sources selected in 'trace_sources' with the Generic Trace plugin selected using
+// 'trace_plugin'. Other parameters are specified in 'trace_file' & 'trace_misc'.
+// system(model + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+
+// NOTE
+//
+// _Only_ if a run is needed using an optional rootfs MMC image built using the instructions in
+// docs/06-Optional-rootfs-build.txt, then comment out the system() invocation
+// below (on line 47) and uncomment the following lines taking care to update
+// the paths accordingly.
+// string mmcimage = "<path to mmc.img>";
+// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+
+// Invoke the model. It then listens for connection requests from the model debugger
+// Vanilla invocation of the model.
+system(model + " -C motherboard.flashloader0.fname=" + wboot + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+
+// Wait for the model to load before connecting to it. There will be times when we
+// try connecting before the model has loded resulting in a "Connection refused"
+// error. Increasing 'ctr' or retrying should solve the problem.
+while(ctr < 400000000)
+{
+ ctr++;
+}
+
+// Model listens at port 7000
+connectToModel("7000");
+
+// The following lines can be uncommented to set any breakpoints on each cluster
+selectTarget("coretile.cluster0.cpu0");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster1.cpu0");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+
+// Select the primary cpu on the primary cluster and set the ball rolling
+selectTarget("coretile.cluster0.cpu0");
+run();
+
diff --git a/bootwrapper/bl-mp4-fm-eac.mxscript b/bootwrapper/bl-mp4-fm-eac.mxscript
new file mode 100755
index 0000000..6099351
--- /dev/null
+++ b/bootwrapper/bl-mp4-fm-eac.mxscript
@@ -0,0 +1,94 @@
+// Replace the string with the absolute path of the Kingfisher model executable
+// e.g. string model = "/home/working_dir/models/RTSM_VE_Cortex-A15x4-A7x4"
+string model = "<path to the model>";
+
+// Replace the string with the absolute path of the Virutalizer+Payload software image
+// e.g. string app = "/home/working_dir/bootwrapper/img.axf"
+string app = "<path to the software image>";
+
+// Replace the string with the absolute path of the wboot.bin image created in the
+// bootwrapper/big-little directory. This image is load in flash at 0x0 and distinguishes
+// between a warm and a cold reset
+string wboot = "<path to warm reset handler image>";
+
+int ctr = 0;
+
+// NOTE
+//
+// Uncomment the next 4 'string' variables and update them _only_ if the run is required
+// to generate trace output as described in docs/04-Cache-hit-rate-howto.txt. Also,
+// comment out the system() invocation on line 47 and uncomment the system() command on line 34.
+// Each 'trace' parameter is described below.
+
+// Add the path to the trace plugin
+// string trace_plugin = " --trace-plugin <path to>/GenericTrace.so";
+
+// Parameters for selecting the trace sources to monitor outbound cache hits
+// string trace_sources = " --parameter TRACE.GenericTrace.trace-sources=\*sw_trace_event\*,\*read_for_3_came_from_snoop\*,\*read_for_4_came_from_snoop\* ";
+
+// Add the path to the trace file where all the output will be collected
+// string trace_file = " --parameter TRACE.GenericTrace.trace-file=<path to trace file> ";
+
+// Miscellaneous parameters. The frequency at which the performance metrics of the
+// model appear in the trace source can be changed here (default is 0x100).
+// string trace_misc = " -C TRACE.GenericTrace.perf-period=0x100 -C TRACE.GenericTrace.flush=1 ";
+
+// The commented 'system' command below will launch the model and register the trace
+// sources selected in 'trace_sources' with the Generic Trace plugin selected using
+// 'trace_plugin'. Other parameters are specified in 'trace_file' & 'trace_misc'.
+// system(model + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+
+// NOTE
+//
+// _Only_ if a run is needed using an optional rootfs MMC image built using the instructions in
+// doc/06-Optional-rootfs-build.txt, then comment out the system() invocation
+// below (on line 47) and uncomment the following lines taking care to update
+// the paths accordingly.
+// string mmcimage = "<path to mmc.img>";
+// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+
+// Invoke the model. It then listens for connection requests from the model debugger
+// Vanilla invocation of the model.
+system(model + " -C motherboard.flashloader0.fname=" + wboot + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+
+// Wait for the model to load before connecting to it. There will be times when we
+// try connecting before the model has loded resulting in a "Connection refused"
+// error. Increasing 'ctr' or retrying should solve the problem.
+while(ctr < 400000000)
+{
+ ctr++;
+}
+
+// Model listens at port 7000
+connectToModel("7000");
+
+// The following lines can be uncommented to set any breakpoints on each cluster
+selectTarget("coretile.cluster0.cpu0");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster0.cpu1");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster0.cpu2");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster0.cpu3");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster1.cpu0");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster1.cpu1");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster1.cpu2");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+selectTarget("coretile.cluster1.cpu3");
+//bpAdd(<address>, "Normal");
+//bpAdd(<address>, "Secure");
+
+// Select the primary cpu on the primary cluster and set the ball rolling
+selectTarget("coretile.cluster0.cpu0");
+run();
+
diff --git a/bootwrapper/boot.S b/bootwrapper/boot.S
index 5842ebe..6afbf34 100755
--- a/bootwrapper/boot.S
+++ b/bootwrapper/boot.S
@@ -1,16 +1,24 @@
- ;; $Copyright:
- ;; ----------------------------------------------------------------
- ;; This confidential and proprietary software may be used only as
- ;; authorised by a licensing agreement from ARM Limited
- ;; (C) COPYRIGHT 2008-2011 ARM Limited
- ;; ALL RIGHTS RESERVED
- ;; The entire notice above must be reproduced on all authorised
- ;; copies and copies may only be made to the extent permitted
- ;; by a licensing agreement from ARM Limited.
- ;; ----------------------------------------------------------------
- ;; File: boot.S
- ;; ----------------------------------------------------------------
- ;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
AREA |boot|, CODE, ALIGN=2
PRESERVE8
diff --git a/bootwrapper/boot.map.template b/bootwrapper/boot.map.template
index c5c05b3..7267c4b 100755
--- a/bootwrapper/boot.map.template
+++ b/bootwrapper/boot.map.template
@@ -1,16 +1,25 @@
- ; $Copyright:
- ; ----------------------------------------------------------------
- ; This confidential and proprietary software may be used only as
- ; authorised by a licensing agreement from ARM Limited
- ; (C) COPYRIGHT 2008-2011 ARM Limited
- ; ALL RIGHTS RESERVED
- ; The entire notice above must be reproduced on all authorised
- ; copies and copies may only be made to the extent permitted
- ; by a licensing agreement from ARM Limited.
- ; ----------------------------------------------------------------
- ; File: boot.map.template
- ; ----------------------------------------------------------------
- ; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
+
VECTORS VECTBASE00000 0x100
{
diff --git a/bootwrapper/bootargs.S b/bootwrapper/bootargs.S
index 4edc17a..3c57492 100644
--- a/bootwrapper/bootargs.S
+++ b/bootwrapper/bootargs.S
@@ -1,16 +1,24 @@
- ;; $Copyright:
- ;; ----------------------------------------------------------------
- ;; This confidential and proprietary software may be used only as
- ;; authorised by a licensing agreement from ARM Limited
- ;; (C) COPYRIGHT 2008-2011 ARM Limited
- ;; ALL RIGHTS RESERVED
- ;; The entire notice above must be reproduced on all authorised
- ;; copies and copies may only be made to the extent permitted
- ;; by a licensing agreement from ARM Limited.
- ;; ----------------------------------------------------------------
- ;; File: bootargs.S
- ;; ----------------------------------------------------------------
- ;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
AREA | bootargs|, CODE, ALIGN=8
PRESERVE8
diff --git a/bootwrapper/bootwrapper.h b/bootwrapper/bootwrapper.h
index 7aa6605..7d44493 100644
--- a/bootwrapper/bootwrapper.h
+++ b/bootwrapper/bootwrapper.h
@@ -1,18 +1,24 @@
/*
- * $Copyright:
- * ----------------------------------------------------------------
- * This confidential and proprietary software may be used only as
- * authorised by a licensing agreement from ARM Limited
- * (C) COPYRIGHT 2008-2011 ARM Limited
- * ALL RIGHTS RESERVED
- * The entire notice above must be reproduced on all authorised
- * copies and copies may only be made to the extent permitted
- * by a licensing agreement from ARM Limited.
- * ----------------------------------------------------------------
- * File: bootwrapper.h
- * ----------------------------------------------------------------
- * $
- */
+ * Copyright (c) 2011, ARM Limited. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with
+ * or without modification, are permitted provided that the
+ * following conditions are met:
+ *
+ * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the
+ * above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of ARM nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior written
+ * permission.
+ */
#ifndef __BOOTWRAPPER_H__
#define __BOOTWRAPPER_H__
diff --git a/bootwrapper/c_start.c b/bootwrapper/c_start.c
index 61b184e..12442ff 100644
--- a/bootwrapper/c_start.c
+++ b/bootwrapper/c_start.c
@@ -1,18 +1,24 @@
/*
- * $Copyright:
- * ----------------------------------------------------------------
- * This confidential and proprietary software may be used only as
- * authorised by a licensing agreement from ARM Limited
- * (C) COPYRIGHT 2008-2011 ARM Limited
- * ALL RIGHTS RESERVED
- * The entire notice above must be reproduced on all authorised
- * copies and copies may only be made to the extent permitted
- * by a licensing agreement from ARM Limited.
- * ----------------------------------------------------------------
- * File: c_start.c
- * ----------------------------------------------------------------
- * $
- */
+ * Copyright (c) 2011, ARM Limited. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with
+ * or without modification, are permitted provided that the
+ * following conditions are met:
+ *
+ * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the
+ * above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of ARM nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior written
+ * permission.
+ */
#include <stdio.h>
#include <string.h>
diff --git a/bootwrapper/emubuild.s b/bootwrapper/emubuild.s
index abf2103..b487015 100644
--- a/bootwrapper/emubuild.s
+++ b/bootwrapper/emubuild.s
@@ -1,16 +1,24 @@
- ;; $Copyright:
- ;; ----------------------------------------------------------------
- ;; This confidential and proprietary software may be used only as
- ;; authorised by a licensing agreement from ARM Limited
- ;; (C) COPYRIGHT 2008-2011 ARM Limited
- ;; ALL RIGHTS RESERVED
- ;; The entire notice above must be reproduced on all authorised
- ;; copies and copies may only be made to the extent permitted
- ;; by a licensing agreement from ARM Limited.
- ;; ----------------------------------------------------------------
- ;; File: emubuild.s
- ;; ----------------------------------------------------------------
- ;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
;; CPSR Mode bits definitions
USR_MODE EQU 16
diff --git a/bootwrapper/filesystem.S b/bootwrapper/filesystem.S
index 80068ea..4b8cb31 100644
--- a/bootwrapper/filesystem.S
+++ b/bootwrapper/filesystem.S
@@ -1,20 +1,29 @@
- AREA |filesystem|, CODE, ALIGN=2 ; $Copyright:
- ;; ----------------------------------------------------------------
- ;; This confidential and proprietary software may be used only as
- ;; authorised by a licensing agreement from ARM Limited
- ;; (C) COPYRIGHT 2008-2011 ARM Limited
- ;; ALL RIGHTS RESERVED
- ;; The entire notice above must be reproduced on all authorised
- ;; copies and copies may only be made to the extent permitted
- ;; by a licensing agreement from ARM Limited.
- ;; ----------------------------------------------------------------
- ;; File: filesystem.S
- ;; ----------------------------------------------------------------
- ;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
+ AREA |filesystem|, CODE, ALIGN=2
- EXPORT fs_start
- EXPORT fs_end
+ EXPORT fs_start
+ EXPORT fs_end
fs_start
- INCBIN payload/fsimg
+ INCBIN payload/fsimg
fs_end
- END
+ END
diff --git a/bootwrapper/helpers.S b/bootwrapper/helpers.S
index 49e70e2..811b263 100755
--- a/bootwrapper/helpers.S
+++ b/bootwrapper/helpers.S
@@ -1,16 +1,24 @@
- ;; $Copyright:
- ;; ----------------------------------------------------------------
- ;; This confidential and proprietary software may be used only as
- ;; authorised by a licensing agreement from ARM Limited
- ;; (C) COPYRIGHT 2008-2011 ARM Limited
- ;; ALL RIGHTS RESERVED
- ;; The entire notice above must be reproduced on all authorised
- ;; copies and copies may only be made to the extent permitted
- ;; by a licensing agreement from ARM Limited.
- ;; ----------------------------------------------------------------
- ;; File: helpers.S
- ;; ----------------------------------------------------------------
- ;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
EXPORT wfi
EXPORT wfe
diff --git a/bootwrapper/helpers.h b/bootwrapper/helpers.h
index 187df86..1142627 100644
--- a/bootwrapper/helpers.h
+++ b/bootwrapper/helpers.h
@@ -1,18 +1,24 @@
/*
- * $Copyright:
- * ----------------------------------------------------------------
- * This confidential and proprietary software may be used only as
- * authorised by a licensing agreement from ARM Limited
- * (C) COPYRIGHT 2008-2011 ARM Limited
- * ALL RIGHTS RESERVED
- * The entire notice above must be reproduced on all authorised
- * copies and copies may only be made to the extent permitted
- * by a licensing agreement from ARM Limited.
- * ----------------------------------------------------------------
- * File: helpers.h
- * ----------------------------------------------------------------
- * $
- */
+ * Copyright (c) 2011, ARM Limited. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with
+ * or without modification, are permitted provided that the
+ * following conditions are met:
+ *
+ * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the
+ * above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of ARM nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior written
+ * permission.
+ */
#ifndef _VIRT_HELPERS_H_
#define _VIRT_HELPERS_H_
diff --git a/bootwrapper/kernel.S b/bootwrapper/kernel.S
index cdd6c9f..1586abb 100644
--- a/bootwrapper/kernel.S
+++ b/bootwrapper/kernel.S
@@ -1,16 +1,24 @@
- ;; $Copyright:
- ;; ----------------------------------------------------------------
- ;; This confidential and proprietary software may be used only as
- ;; authorised by a licensing agreement from ARM Limited
- ;; (C) COPYRIGHT 2008-2011 ARM Limited
- ;; ALL RIGHTS RESERVED
- ;; The entire notice above must be reproduced on all authorised
- ;; copies and copies may only be made to the extent permitted
- ;; by a licensing agreement from ARM Limited.
- ;; ----------------------------------------------------------------
- ;; File: kernel.S
- ;; ----------------------------------------------------------------
- ;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
AREA |kernel|, CODE, ALIGN=2
EXPORT kernel_start
diff --git a/bootwrapper/makemap b/bootwrapper/makemap
index 2e9f6c4..47213c9 100755
--- a/bootwrapper/makemap
+++ b/bootwrapper/makemap
@@ -1,17 +1,25 @@
#! /bin/env perl
-# $Copyright:
-# ----------------------------------------------------------------
-# This confidential and proprietary software may be used only as
-# authorised by a licensing agreement from ARM Limited
-# (C) COPYRIGHT 2008-2011 ARM Limited
-# ALL RIGHTS RESERVED
-# The entire notice above must be reproduced on all authorised
-# copies and copies may only be made to the extent permitted
-# by a licensing agreement from ARM Limited.
-# ----------------------------------------------------------------
-# File: virt_helpers.s
-# ----------------------------------------------------------------
-# $
+#
+# Copyright (c) 2011, ARM Limited. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with
+# or without modification, are permitted provided that the
+# following conditions are met:
+#
+# Redistributions of source code must retain the above
+# copyright notice, this list of conditions and the
+# following disclaimer.
+#
+# Redistributions in binary form must reproduce the
+# above copyright notice, this list of conditions and
+# the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# Neither the name of ARM nor the names of its
+# contributors may be used to endorse or promote products
+# derived from this software without specific prior written
+# permission.
+#
use strict;
diff --git a/bootwrapper/uart.c b/bootwrapper/uart.c
index 93334ec..138b0d5 100644
--- a/bootwrapper/uart.c
+++ b/bootwrapper/uart.c
@@ -1,18 +1,26 @@
/*
- * $Copyright:
- * ----------------------------------------------------------------
- * This confidential and proprietary software may be used only as
- * authorised by a licensing agreement from ARM Limited
- * (C) COPYRIGHT 2008-2011 ARM Limited
- * ALL RIGHTS RESERVED
- * The entire notice above must be reproduced on all authorised
- * copies and copies may only be made to the extent permitted
- * by a licensing agreement from ARM Limited.
- * ----------------------------------------------------------------
- * File: uart.c
- * ----------------------------------------------------------------
- * $
- *
+ * Copyright (c) 2011, ARM Limited. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with
+ * or without modification, are permitted provided that the
+ * following conditions are met:
+ *
+ * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the
+ * above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of ARM nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior written
+ * permission.
+ */
+
+/*
* uart.c - boot code to output characters on a PL011 uart
* Not SMP-safe, so make sure you only call these functions
* from one CPU at a time.
diff --git a/bootwrapper/vectors.S b/bootwrapper/vectors.S
index 096d1b6..1474ff1 100644
--- a/bootwrapper/vectors.S
+++ b/bootwrapper/vectors.S
@@ -1,19 +1,26 @@
-;;-----------------------------------------------------------------------------
-;; $Copyright:
-;; ----------------------------------------------------------------
-;; This confidential and proprietary software may be used only as
-;; authorised by a licensing agreement from ARM Limited
-;; (C) COPYRIGHT 2008-2011 ARM Limited
-;; ALL RIGHTS RESERVED
-;; The entire notice above must be reproduced on all authorised
-;; copies and copies may only be made to the extent permitted
-;; by a licensing agreement from ARM Limited.
-;; ----------------------------------------------------------------
-;; File: vectors.S
-;; ----------------------------------------------------------------
-;; $
+ ;
+ ; Copyright (c) 2011, ARM Limited. All rights reserved.
+ ;
+ ; Redistribution and use in source and binary forms, with
+ ; or without modification, are permitted provided that the
+ ; following conditions are met:
+ ;
+ ; Redistributions of source code must retain the above
+ ; copyright notice, this list of conditions and the
+ ; following disclaimer.
+ ;
+ ; Redistributions in binary form must reproduce the
+ ; above copyright notice, this list of conditions and
+ ; the following disclaimer in the documentation
+ ; and/or other materials provided with the distribution.
+ ;
+ ; Neither the name of ARM nor the names of its
+ ; contributors may be used to endorse or promote products
+ ; derived from this software without specific prior written
+ ; permission.
+ ;
- AREA | vectors|, CODE, ALIGN=8
+ AREA vectors, CODE, ALIGN=8
PRESERVE8
; ==============================================================================
diff --git a/bootwrapper/vgic.h b/bootwrapper/vgic.h
index fb76d2f..56b5389 100644
--- a/bootwrapper/vgic.h
+++ b/bootwrapper/vgic.h
@@ -1,18 +1,24 @@
/*
- * $Copyright:
- * ----------------------------------------------------------------
- * This confidential and proprietary software may be used only as
- * authorised by a licensing agreement from ARM Limited
- * (C) COPYRIGHT 2008-2011 ARM Limited
- * ALL RIGHTS RESERVED
- * The entire notice above must be reproduced on all authorised
- * copies and copies may only be made to the extent permitted
- * by a licensing agreement from ARM Limited.
- * ----------------------------------------------------------------
- * File: vgic.h
- * ----------------------------------------------------------------
- * $
- */
+ * Copyright (c) 2011, ARM Limited. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with
+ * or without modification, are permitted provided that the
+ * following conditions are met:
+ *
+ * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the
+ * above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * Neither the name of ARM nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior written
+ * permission.
+ */
#ifndef __VGIC_H__
#define __VGIC_H__