diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-04-26 14:31:28 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-01 10:33:02 +0530 |
commit | 4d063538f0493916dc6263276c4c84f31446db41 (patch) | |
tree | b5dfda0139ca79e3da7b16e84100e8ad74352f01 /docs/platform | |
parent | 7cc6fa4d8a65e08048e1dd469087805ce89bf306 (diff) |
firmware: fw_base: Introduce optional fw_platform_init()
We add optional fw_platform_init() function which will allow
platform specific code to update "struct sbi_platform platform"
before it is used.
The fw_platform_init() can be a regular C function so before
callint it we:
1. zero-out BSS section
2. Setup temporary trap handler to catch bugs
3. Setup temporary stack pointer
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'docs/platform')
0 files changed, 0 insertions, 0 deletions