#include <sw_types.h>
#include <mmap.h>
Go to the source code of this file.
|
| struct | mem_info |
| | This structure has information about the memory regions in the secure world. More...
|
| |
Initializes the address space in secure world by allocating and mapping the required pages.
- Returns
-
Returns the address of the secure world page table
| va_t sw_page_alloc |
( |
u32 |
size, |
|
|
struct mem_info * |
info |
|
) |
| |
Allocates physical pages for the required size.
- Parameters
-
- Returns
- Parameters
-
| size | Size of the memory to be allocated |
- Returns
- Returns the address of the memory allocated
| int sw_page_free |
( |
va_t |
vir_addr, |
|
|
u32 |
size, |
|
|
struct mem_info * |
info |
|
) |
| |
Frees the pages.
- Parameters
-
- Returns
- Parameters
-
| phy_addr | start address of the pages to be freed |
| size | Size of the memory to be freed |
- Returns
- Returns zero on success