commit | 738f5e0a26a636a8e6d679796535791df6c8b7db | [log] [tgz] |
---|---|---|
author | Gianfranco Valentino <gevalentino@google.com> | Thu May 30 01:02:58 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 30 01:02:58 2024 +0000 |
tree | 23d64a487ab4d2270a85701235cc0c105d637e22 | |
parent | 6b52f09df181721d2d9a9489280d0a72b76945d8 [diff] |
[boot-mmu] Build driven boot page allocation Instead of hard coding the value, the number of allocated pages is determined based on the boot-mmu-config, which defines a preprocessor symbol that is the upper bound on the kernel image size. This allows to change this estimation based on different build information, such as whether this is an instrumented build or not. The values uses for the image size are obtained from the addressable sizes that the current number of preallocatd pages can address. For instrumentation we just used the value of riscv64 which caused failures due to not having enough pages, and boosted it by 25% (20 -> 25MB). As a first step, physboot will panic if the kernel size is bigger than the max kernel image size. This allows having a direct cause to what otherwise would have been observed as a hang from zircon. Fixed: 339565993 Change-Id: I7fc5cf5d28616f89493ab2de6a83e23d5cb40587 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1045160 Commit-Queue: Gianfranco Valentino <gevalentino@google.com> Reviewed-by: Travis Geiselbrecht <travisg@google.com> Reviewed-by: Roland McGrath <mcgrathr@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.