9os

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

commit 5a89ee87069dc273a7159afb314569b0cb6250dc
parent 0458bb2593bc094a65bd418f5f44e93b1aff442a
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Tue,  6 Nov 2018 15:46:52 +0000

[debuglang] Mark all functions static except debug()

Change-Id: I3091a076d7608ec9bd3557572503883eab0c5cf9
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Msrc/debuglang/debuglang.c | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/debuglang/debuglang.c b/src/debuglang/debuglang.c @@ -27,7 +27,7 @@ struct command { char *helpmsg; }; -const struct command commands[]={ +static const struct command commands[]={ { .name = "set", .eval = do_set, @@ -81,7 +81,7 @@ ready(void) puts(PREFIX "READY"); } -void +static void print_tf(struct trapframe *tfp) { printf(PREFIX "x0=0x%llx\tx1=0x%llx\tx2=0x%llx\tx3=0x%llx\n" @@ -108,7 +108,7 @@ print_tf(struct trapframe *tfp) /* Read a value in a given base between 2 and 16 0 means default base; * 10, unless the string begins with "0x" or "0b" */ -unsigned long long +static unsigned long long base_read(char *str, int base) { unsigned long long val; @@ -123,7 +123,7 @@ base_read(char *str, int base) } /* Get reg struct for named reg */ -unsigned long long * +static unsigned long long * get_named_reg(char *name, struct trapframe *tfp) { size_t i; @@ -163,7 +163,7 @@ get_command(char *name) return NULL; } -int +static int do_set(char **argv, int argc, struct trapframe *tfp) { unsigned long long *reg = NULL; @@ -190,7 +190,7 @@ do_set(char **argv, int argc, struct trapframe *tfp) return 0; } -int +static int do_get(char **argv, int argc, struct trapframe *tfp) { unsigned long long *reg = NULL; @@ -224,21 +224,21 @@ do_get(char **argv, int argc, struct trapframe *tfp) return 0; } -int +static int do_dump(char **argv, int argc, struct trapframe *tfp) { print_tf(tfp); return 0; } -int +static int do_trap(char **argv, int argc, struct trapframe *tfp) { trap(tfp); return 0; } -int +static int do_rmc(char **argv, int argc, struct trapframe *tfp) { unsigned char class;