2006-09-27 22:47:03 +10:00
|
|
|
|
2019-05-29 16:58:04 -07:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2025-09-16 08:18:40 +02:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-10-23 14:27:36 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-26 15:48:29 +02:00
|
|
|
|
|
|
|
|
|
2007-10-23 14:27:31 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-09 18:58:31 +00:00
|
|
|
|
2007-10-23 14:27:31 +10:00
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-09-14 14:58:25 -05:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2011-04-12 20:38:55 +00:00
|
|
|
|
2014-04-24 09:23:39 +02:00
|
|
|
|
2020-11-20 14:40:32 -08:00
|
|
|
|
2020-11-18 14:39:10 -08:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-30 15:23:26 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
2007-12-03 13:52:05 +11:00
|
|
|
|
2009-07-23 00:13:37 +00:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
|
|
|
|
|
2025-09-16 08:18:40 +02:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-19 10:53:26 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-12-03 13:52:05 +11:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:25 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2022-05-19 00:26:29 +10:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-12-03 13:49:24 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-23 00:13:37 +00:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-30 10:56:27 +09:00
|
|
|
|
2014-04-24 09:23:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-28 12:42:26 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-05 01:54:37 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-28 12:42:26 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-10 16:57:21 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-28 12:42:26 +11:00
|
|
|
|
|
|
|
|
|
2025-07-01 12:50:07 +02:00
|
|
|
|
2014-04-24 09:23:39 +02:00
|
|
|
|
2022-10-10 16:57:21 +11:00
|
|
|
|
|
|
|
|
|
2025-04-23 13:51:54 +05:30
|
|
|
|
2025-04-01 06:12:18 +05:30
|
|
|
|
2022-10-10 16:57:21 +11:00
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2012-03-20 14:13:51 +11:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2013-11-05 10:09:11 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2014-04-24 09:23:38 +02:00
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2014-04-24 09:23:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-25 21:46:01 +05:30
|
|
|
|
2014-04-24 09:23:39 +02:00
|
|
|
|
2013-10-29 16:21:26 +11:00
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
|
|
|
|
|
2013-09-24 16:10:38 +10:00
|
|
|
|
2013-10-29 16:21:26 +11:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-05-31 01:29:01 +10:00
|
|
|
|
2013-09-24 16:10:38 +10:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2013-10-29 16:21:26 +11:00
|
|
|
|
2011-04-12 20:38:55 +00:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2011-12-01 19:35:08 +00:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-17 09:25:50 +10:00
|
|
|
|
2007-09-14 14:58:25 -05:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2008-02-07 05:18:34 +11:00
|
|
|
|
2008-07-31 19:10:22 +03:00
|
|
|
|
2008-02-07 05:18:34 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-08 13:47:00 +01:00
|
|
|
|
2008-02-07 05:18:34 +11:00
|
|
|
|
|
|
|
|
|
2008-03-04 19:34:26 +03:00
|
|
|
|
2008-02-07 05:18:34 +11:00
|
|
|
|
|
|
|
|
|
2021-01-07 08:40:38 -05:00
|
|
|
|
2008-02-07 05:18:34 +11:00
|
|
|
|
|
|
|
|
|
2009-02-10 12:26:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-07 05:18:34 +11:00
|
|
|
|
2007-04-17 09:25:50 +10:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2012-03-20 14:13:51 +11:00
|
|
|
|
2011-04-12 20:38:55 +00:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2024-07-11 12:49:01 +02:00
|
|
|
|
2007-09-14 14:58:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-20 12:33:38 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-04 00:59:37 -06:00
|
|
|
|
2009-03-11 09:36:26 -06:00
|
|
|
|
2008-07-04 00:59:37 -06:00
|
|
|
|
|
|
|
|
|
2008-05-08 13:47:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-11 14:43:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-12 06:31:45 +00:00
|
|
|
|
2009-12-12 06:31:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-18 13:49:43 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-30 21:39:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-03-06 14:52:27 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-05 10:45:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-14 18:29:16 +00:00
|
|
|
|
2015-02-11 12:55:44 +08:00
|
|
|
|
2011-04-14 18:29:16 +00:00
|
|
|
|
|
|
|
|
|
2020-11-20 14:40:32 -08:00
|
|
|
|
2020-11-18 14:39:10 -08:00
|
|
|
|
2011-04-14 18:29:16 +00:00
|
|
|
|
2014-01-09 13:01:22 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-30 11:47:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
kbuild: Use ls(1) instead of stat(1) to obtain file size
stat(1) is not standardized and different implementations have their own
(conflicting) flags for querying the size of a file.
ls(1) provides the same information (value of st.st_size) in the 5th
column, except when the file is a character or block device. This output
is standardized[0]. The -n option turns on -l, which writes lines
formatted like
"%s %u %s %s %u %s %s\n", <file mode>, <number of links>,
<owner name>, <group name>, <size>, <date and time>,
<pathname>
but instead of writing the <owner name> and <group name>, it writes the
numeric owner and group IDs (this avoids /etc/passwd and /etc/group
lookups as well as potential field splitting issues).
The <size> field is specified as "the value that would be returned for
the file in the st_size field of struct stat".
To avoid duplicating logic in several locations in the tree, create
scripts/file-size.sh and update callers to use that instead of stat(1).
[0] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html#tag_20_73_10
Signed-off-by: Michael Forney <forney@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-03-18 17:54:02 -07:00
|
|
|
|
2011-12-14 22:59:57 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-05 04:58:50 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2019-06-14 10:16:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-14 22:59:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
|
|
|
|
|
2012-03-20 14:13:51 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-14 22:59:57 +00:00
|
|
|
|
2012-03-20 14:13:51 +11:00
|
|
|
|
|
|
|
|
|
2011-12-14 22:59:57 +00:00
|
|
|
|
2012-03-20 14:13:51 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
2007-05-01 10:20:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kbuild: build init/built-in.a just once
Kbuild builds init/built-in.a twice; first during the ordinary
directory descending, second from scripts/link-vmlinux.sh.
We do this because UTS_VERSION contains the build version and the
timestamp. We cannot update it during the normal directory traversal
since we do not yet know if we need to update vmlinux. UTS_VERSION is
temporarily calculated, but omitted from the update check. Otherwise,
vmlinux would be rebuilt every time.
When Kbuild results in running link-vmlinux.sh, it increments the
version number in the .version file and takes the timestamp at that
time to really fix UTS_VERSION.
However, updating the same file twice is a footgun. To avoid nasty
timestamp issues, all build artifacts that depend on init/built-in.a
are atomically generated in link-vmlinux.sh, where some of them do not
need rebuilding.
To fix this issue, this commit changes as follows:
[1] Split UTS_VERSION out to include/generated/utsversion.h from
include/generated/compile.h
include/generated/utsversion.h is generated just before the
vmlinux link. It is generated under include/generated/ because
some decompressors (s390, x86) use UTS_VERSION.
[2] Split init_uts_ns and linux_banner out to init/version-timestamp.c
from init/version.c
init_uts_ns and linux_banner contain UTS_VERSION. During the ordinary
directory descending, they are compiled with __weak and used to
determine if vmlinux needs relinking. Just before the vmlinux link,
they are compiled without __weak to embed the real version and
timestamp.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2022-08-28 11:39:53 +09:00
|
|
|
|
2007-05-01 10:20:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-17 09:25:50 +10:00
|
|
|
|
2008-04-16 05:52:29 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-17 09:25:50 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-14 10:16:23 +00:00
|
|
|
|
2007-05-01 10:20:20 +10:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-03-16 12:27:59 -05:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-10-16 13:49:27 -07:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-10-16 13:49:27 -07:00
|
|
|
|
2006-11-08 17:50:44 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
2019-08-19 23:13:13 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2011-04-12 20:38:55 +00:00
|
|
|
|
2008-06-24 14:20:29 +10:00
|
|
|
|
2016-09-22 16:54:33 +10:00
|
|
|
|
2022-10-10 16:57:21 +11:00
|
|
|
|
[POWERPC] zImage: Cleanup and improve zImage entry point
This patch re-organises the way the zImage wrapper code is entered, to
allow more flexibility on platforms with unusual entry conditions.
After this patch, a platform .o file has two options:
1) It can define a _zimage_start, in which case the platform code gets
control from the very beginning of execution. In this case the
platform code is responsible for relocating the zImage if necessary,
clearing the BSS, performing any platform specific initialization, and
finally calling start() to load and enter the kernel.
2) It can define platform_init(). In this case the generic crt0.S
handles initial entry, and calls platform_init() before calling
start(). The signature of platform_init() is changed, however, to
take up to 5 parameters (in r3..r7) as they come from the platform's
initial loader, instead of a fixed set of parameters based on OF's
usage.
When using the generic crt0.S, the platform .o can optionally
supply a custom stack to use, using the BSS_STACK() macro. If this
is not supplied, the crt0.S will assume that the loader has
supplied a usable stack.
In either case, the platform code communicates information to the
generic code (specifically, a PROM pointer for OF systems, and/or an
initrd image address supplied by the bootloader) via a global
structure "loader_info".
In addition the wrapper script is rearranged to ensure that the
platform .o is always linked first. This means that platforms where
the zImage entry point is at a fixed address or offset, rather than
being encoded in the binary header can be supported using option (1).
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-03-05 14:24:52 +11:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-01 10:20:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-09-14 14:58:25 -05:00
|
|
|
|
|
|
|
|
|
2007-10-25 02:56:28 +10:00
|
|
|
|
2007-09-14 14:58:25 -05:00
|
|
|
|
|
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
|
|
|
|
|
2024-10-13 21:29:57 +11:00
|
|
|
|
2008-10-31 22:27:17 +11:00
|
|
|
|
2008-10-20 17:42:42 +00:00
|
|
|
|
2007-05-31 01:29:01 +10:00
|
|
|
|
[POWERPC] zImage: Cleanup and improve zImage entry point
This patch re-organises the way the zImage wrapper code is entered, to
allow more flexibility on platforms with unusual entry conditions.
After this patch, a platform .o file has two options:
1) It can define a _zimage_start, in which case the platform code gets
control from the very beginning of execution. In this case the
platform code is responsible for relocating the zImage if necessary,
clearing the BSS, performing any platform specific initialization, and
finally calling start() to load and enter the kernel.
2) It can define platform_init(). In this case the generic crt0.S
handles initial entry, and calls platform_init() before calling
start(). The signature of platform_init() is changed, however, to
take up to 5 parameters (in r3..r7) as they come from the platform's
initial loader, instead of a fixed set of parameters based on OF's
usage.
When using the generic crt0.S, the platform .o can optionally
supply a custom stack to use, using the BSS_STACK() macro. If this
is not supplied, the crt0.S will assume that the loader has
supplied a usable stack.
In either case, the platform code communicates information to the
generic code (specifically, a PROM pointer for OF systems, and/or an
initrd image address supplied by the bootloader) via a global
structure "loader_info".
In addition the wrapper script is rearranged to ensure that the
platform .o is always linked first. This means that platforms where
the zImage entry point is at a fixed address or offset, rather than
being encoded in the binary header can be supported using option (1).
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-03-05 14:24:52 +11:00
|
|
|
|
2007-12-03 13:52:05 +11:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|
2007-04-17 09:25:50 +10:00
|
|
|
|
2011-04-05 04:58:50 +00:00
|
|
|
|
2009-12-30 15:23:26 -07:00
|
|
|
|
2007-10-25 02:56:28 +10:00
|
|
|
|
2007-04-17 09:25:50 +10:00
|
|
|
|
2007-05-08 14:10:01 +10:00
|
|
|
|
|
|
|
|
|
2007-12-03 13:52:05 +11:00
|
|
|
|
2007-05-08 14:10:01 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2008-03-28 07:41:45 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2007-10-25 02:56:28 +10:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-25 02:56:28 +10:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-28 07:41:45 +11:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2007-10-25 02:56:28 +10:00
|
|
|
|
|
|
|
|
|
2015-10-19 10:53:26 -07:00
|
|
|
|
|
|
|
|
|
2007-10-23 14:27:36 +10:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2015-10-19 10:53:26 -07:00
|
|
|
|
|
|
|
|
|
2007-10-23 14:27:36 +10:00
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2007-12-03 13:48:03 +11:00
|
|
|
|
2020-05-16 09:20:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-18 17:40:29 +08:00
|
|
|
|
2020-05-16 09:20:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-04 09:07:18 +10:00
|
|
|
|
2006-09-27 22:47:03 +10:00
|
|
|
|