diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-10-19 17:27:20 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-10-27 11:18:49 -0500 |
commit | 07c744f567b3d57819992859bca92e525495a5e1 (patch) | |
tree | ca5b28bbf4e6095edf31c6094e348ea84c2cd305 /src/kernel/syscall.C | |
parent | 52b8fd22598841421ed95f8d86803ac11b600858 (diff) | |
download | blackbird-hostboot-07c744f567b3d57819992859bca92e525495a5e1.tar.gz blackbird-hostboot-07c744f567b3d57819992859bca92e525495a5e1.zip |
BEAM warning fixes.
Change-Id: Iada5e8b69c7919d2b59febd861450abeb7c45287
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/451
Tested-by: Jenkins Server
Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/kernel/syscall.C')
-rw-r--r-- | src/kernel/syscall.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/syscall.C b/src/kernel/syscall.C index ca32657cf..b38c5e031 100644 --- a/src/kernel/syscall.C +++ b/src/kernel/syscall.C @@ -141,7 +141,7 @@ void kernel_execute_system_call() task_t* t = TaskManager::getCurrentTask(); uint64_t syscall = t->context.gprs[3]; - if (syscall > SYSCALL_MAX) + if (syscall >= SYSCALL_MAX) { // TODO : kill task. printk("Invalid syscall : %ld\n", syscall); @@ -437,7 +437,7 @@ namespace Systemcalls void DevMap(task_t *t) { void *ra = (void*)TASK_GETARG0(t); - SEG_DATA_SIZES devDataSize = (SEG_DATA_SIZES)TASK_GETARG1(t); + uint64_t devDataSize = TASK_GETARG1(t); kassert(TASK_SETRTN(t, (uint64_t)VmmManager::devMap(ra,devDataSize)) != NULL); |