diff options
author | Yuji Mano <yuji.mano@am.sony.com> | 2009-03-19 13:54:14 -0700 |
---|---|---|
committer | Yuji Mano <yuji.mano@am.sony.com> | 2009-03-23 12:18:52 -0700 |
commit | 82b2880147437f8337f6704b3ef8864098f5710e (patch) | |
tree | 48ae0fa438aef2aeedf0936a32f271c2a0bad863 | |
parent | dde8dff33bc99427546a7e76977ef72d7dda0192 (diff) | |
download | mars-src-82b2880147437f8337f6704b3ef8864098f5710e.tar.gz |
base: Add const qualifier
This patch adds const qualifiers to function parameters where there should be
one.
Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
Acked-by: Kazunori Asayama <asayama@sm.sony.co.jp>
-rw-r--r-- | base/src/mpu/lib/entry.S | 2 | ||||
-rw-r--r-- | base/src/mpu/lib/module.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/base/src/mpu/lib/entry.S b/base/src/mpu/lib/entry.S index 353a55f..7888c4a 100644 --- a/base/src/mpu/lib/entry.S +++ b/base/src/mpu/lib/entry.S @@ -37,7 +37,7 @@ .text -/* void mars_module_entry(struct mars_kernel_syscalls *syscalls) */ +/* void mars_module_entry(const struct mars_kernel_syscalls *syscalls) */ .global mars_module_entry .type mars_module_entry, @function mars_module_entry: diff --git a/base/src/mpu/lib/module.c b/base/src/mpu/lib/module.c index 1e78bd5..7018845 100644 --- a/base/src/mpu/lib/module.c +++ b/base/src/mpu/lib/module.c @@ -43,15 +43,15 @@ #include "workload_internal_types.h" /* global kernel syscalls pointer */ -static struct mars_kernel_syscalls *kernel_syscalls; +static const struct mars_kernel_syscalls *kernel_syscalls; /* defined in crt */ extern void _init(void); /* called by entry.S */ -void __module_entry(struct mars_kernel_syscalls *syscalls); +void __module_entry(const struct mars_kernel_syscalls *syscalls); -void __module_entry(struct mars_kernel_syscalls *syscalls) +void __module_entry(const struct mars_kernel_syscalls *syscalls) { kernel_syscalls = syscalls; |