| 558 | } |
| 559 | |
| 560 | static void _pages_ref_inc(struct rt_page *p, rt_uint32_t size_bits) |
| 561 | { |
| 562 | struct rt_page *page_head; |
| 563 | int idx; |
| 564 | |
| 565 | /* find page group head */ |
| 566 | idx = p - page_start; |
| 567 | idx = idx & ~((1UL << size_bits) - 1); |
| 568 | |
| 569 | page_head = page_start + idx; |
| 570 | page_head = (void *)((char *)page_head + early_offset); |
| 571 | page_head->ref_cnt++; |
| 572 | } |
| 573 | |
| 574 | static int _pages_ref_get(struct rt_page *p, rt_uint32_t size_bits) |
| 575 | { |