From 214e44c3f9d79e34719cd9cef5e2fc596a693d47 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Tue, 13 Jul 2010 07:36:37 +0000 Subject: 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 --- src/slab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/slab.c') 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; -- cgit v1.3.1