diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-06 19:56:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-06 19:56:32 +0000 |
commit | 7c2ea5a1a560284b6d22a60d62ac943ec6144096 (patch) | |
tree | 8d1191e3b5fe5cb9f0fe1319d45648d859060cae /nuttx/arch/mips/src/pic32mx | |
parent | 9e9de3d19ebf1890bfccd0bf63fa0209e2ec9359 (diff) | |
download | px4-nuttx-7c2ea5a1a560284b6d22a60d62ac943ec6144096.tar.gz px4-nuttx-7c2ea5a1a560284b6d22a60d62ac943ec6144096.tar.bz2 px4-nuttx-7c2ea5a1a560284b6d22a60d62ac943ec6144096.zip |
Fix some bad syscall dispatching log. This change is not testable until these is a tested NuttX kernel build.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5713 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx')
-rw-r--r-- | nuttx/arch/mips/src/pic32mx/pic32mx-config.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-config.h b/nuttx/arch/mips/src/pic32mx/pic32mx-config.h index 4dd0a150e..d64caf5fb 100644 --- a/nuttx/arch/mips/src/pic32mx/pic32mx-config.h +++ b/nuttx/arch/mips/src/pic32mx/pic32mx-config.h @@ -1,7 +1,7 @@ /************************************************************************************ * arch/mips/src/pic32mx/pic32mx-config.h * - * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -485,15 +485,17 @@ #endif /* SYS calls ************************************************************************/ -/* SYS call 0 and 1 are defined for internal use by the PIC32MX port (see - * arch/mips/include/mips32/syscall.h +/* SYS call 1 and 2 are defined for internal use by the PIC32MX port (see + * arch/mips/include/mips32/syscall.h). In addition, SYS call 3 is the return from + * a SYS call in kernel mode. The first four syscall values must, therefore, be + * reserved (0 is not used). */ #ifdef CONFIG_NUTTX_KERNEL -# if !defined(CONFIG_SYS_RESERVED) || CONFIG_SYS_RESERVED < 2 -# error "CONFIG_SYS_RESERVED must be defined to be 2 for a kernel build" -# elif CONFIG_SYS_RESERVED > 2 -# warning "CONFIG_SYS_RESERVED should be defined to be 2 for a kernel build" +# if !defined(CONFIG_SYS_RESERVED) || CONFIG_SYS_RESERVED < 4 +# error "CONFIG_SYS_RESERVED must be defined to be 4 for a kernel build" +# elif CONFIG_SYS_RESERVED > 4 +# warning "CONFIG_SYS_RESERVED should be defined to be 4 for a kernel build" # endif #endif |