diff options
| author | bernard.xiong <[email protected]> | 2010-07-13 07:36:37 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-07-13 07:36:37 +0000 |
| commit | 214e44c3f9d79e34719cd9cef5e2fc596a693d47 (patch) | |
| tree | 5270f946a824b0d54689953aca65d6039ffaee3b /src/slab.c | |
| parent | 69466590ff78faa11ed508d74a5509113b8dace0 (diff) | |
fix down alignment issue; fix the maximal number of rt_scheduler_lock_nest issue; fix rt_tick_from_millisecond issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@790 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/slab.c')
| -rw-r--r-- | src/slab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slab.c b/src/slab.c index dff6dd471c..216ee19500 100644 --- a/src/slab.c +++ b/src/slab.c @@ -10,6 +10,7 @@ * Change Logs: * Date Author Notes * 2008-07-12 Bernard the first version + * 2010-07-13 Bernard fix RT_ALIGN issue found by kuronca */ /* @@ -326,7 +327,7 @@ void rt_system_heap_init(void *begin_addr, void* end_addr) /* align begin and end addr to page */ heap_start = RT_ALIGN((rt_uint32_t)begin_addr, RT_MM_PAGE_SIZE); - heap_end = RT_ALIGN((rt_uint32_t)end_addr, RT_MM_PAGE_SIZE); + heap_end = RT_ALIGN_DOWN((rt_uint32_t)end_addr, RT_MM_PAGE_SIZE); limsize = heap_end - heap_start; npages = limsize / RT_MM_PAGE_SIZE; |
