2017-09-19 12:14:52 +08:00
|
|
|
/*
|
2021-12-15 14:49:09 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2017-09-19 12:14:52 +08:00
|
|
|
*
|
2020-12-31 09:48:36 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-09-19 12:14:52 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2013-07-06 Bernard the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BOARD_H__
|
|
|
|
#define __BOARD_H__
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
#include <rtconfig.h>
|
2017-09-19 12:14:52 +08:00
|
|
|
#include <realview.h>
|
2019-04-26 10:50:48 +08:00
|
|
|
#include "vexpress_a9.h"
|
2017-09-19 12:14:52 +08:00
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
#include "mmu.h"
|
2022-12-16 18:38:28 +08:00
|
|
|
#ifdef RT_USING_SMART
|
2022-12-03 12:07:44 +08:00
|
|
|
#include "ioremap.h"
|
|
|
|
#endif
|
|
|
|
|
2017-09-19 12:14:52 +08:00
|
|
|
#if defined(__CC_ARM)
|
|
|
|
extern int Image$$RW_IRAM1$$ZI$$Limit;
|
|
|
|
#define HEAP_BEGIN ((void*)&Image$$RW_IRAM1$$ZI$$Limit)
|
|
|
|
#elif defined(__GNUC__)
|
|
|
|
extern int __bss_end;
|
|
|
|
#define HEAP_BEGIN ((void*)&__bss_end)
|
|
|
|
#endif
|
|
|
|
|
2022-12-16 18:38:28 +08:00
|
|
|
#ifdef RT_USING_SMART
|
2022-12-03 12:07:44 +08:00
|
|
|
#define HEAP_END (void*)(KERNEL_VADDR_START + 16 * 1024 * 1024)
|
|
|
|
#define PAGE_START HEAP_END
|
|
|
|
#define PAGE_END (void*)(KERNEL_VADDR_START + 128 * 1024 * 1024)
|
|
|
|
#else
|
|
|
|
#define HEAP_END (void*)(0x60000000 + 64 * 1024 * 1024)
|
|
|
|
#endif
|
2017-09-19 12:14:52 +08:00
|
|
|
|
|
|
|
void rt_hw_board_init(void);
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
extern rt_mmu_info mmu_info;
|
|
|
|
|
2017-09-19 12:14:52 +08:00
|
|
|
#endif
|