diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-03-16 09:53:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-03-16 09:53:11 +0000 |
commit | 55475920fd1891307c3fed0e7062c1b95558bec3 (patch) | |
tree | b3e04e4cc7ccf0622a8a220ca194e85825420c80 /os/various | |
parent | c3f7c51a7d0591c4bbbe6973c19f45185227dc75 (diff) | |
download | ChibiOS-55475920fd1891307c3fed0e7062c1b95558bec3.tar.gz ChibiOS-55475920fd1891307c3fed0e7062c1b95558bec3.tar.bz2 ChibiOS-55475920fd1891307c3fed0e7062c1b95558bec3.zip |
Fixed bug #471 except USB change.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6774 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r-- | os/various/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/various/syscalls.c b/os/various/syscalls.c index b3918976c..41c04bac1 100644 --- a/os/various/syscalls.c +++ b/os/various/syscalls.c @@ -129,10 +129,10 @@ int _close_r(struct _reent *r, int file) caddr_t _sbrk_r(struct _reent *r, int incr)
{
-#if CH_USE_MEMCORE
+#if CH_CFG_USE_MEMCORE
void *p;
- chDbgCheck(incr > 0, "_sbrk_r");
+ chDbgCheck(incr > 0);
p = chCoreAlloc((size_t)incr);
if (p == NULL) {
|