[Cbe-oss-dev] [PATCH 09/22]MARS/base: add const qualifier
Yuji Mano
yuji.mano at am.sony.com
Fri Mar 20 07:54:14 EST 2009
This patch adds const qualifiers to function parameters where there should be
one.
Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
---
base/src/mpu/lib/entry.S | 2 +-
base/src/mpu/lib/module.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
--- 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:
--- 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;
More information about the cbe-oss-dev
mailing list