9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b4ce71c5f4878730ae0f46e75bd7f31daa6f0bc1
parent 193e3bd7bcfead3c7345ad161f83434d3f51b11c
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Wed, 20 Feb 2019 13:04:59 +0000

Merge "[hosted/rom] Provide a getframe function"
Diffstat:
Mtarget/hosted/rom.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/target/hosted/rom.c b/target/hosted/rom.c @@ -7,6 +7,9 @@ #include "hosted.h" + +static struct trapframe *frame(void); + unsigned char in_panic; unsigned char in_debug; unsigned char in_dumpstack; @@ -23,6 +26,13 @@ unsigned char enable; /* System realm enablement */ unsigned char hascrypto;/* System-wide memory encryption */ int errno_; +struct trapframe *(*getframe)(void) = frame; + +static struct trapframe * +frame(void) +{ + return framep; +} void * alloc(size_t size)