kmm/kmm_map: Add missing FAR qualifiers
This commit is contained in:
parent
add569d0e5
commit
a41f752ecc
@ -59,7 +59,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
uintptr_t up_addrenv_find_page(FAR arch_addrenv_t *addrenv, uintptr_t vaddr)
|
uintptr_t up_addrenv_find_page(arch_addrenv_t *addrenv, uintptr_t vaddr)
|
||||||
{
|
{
|
||||||
uintptr_t pgdir;
|
uintptr_t pgdir;
|
||||||
uintptr_t lnvaddr;
|
uintptr_t lnvaddr;
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __INCLUDE_NUTTX_MM_KMAP_H_
|
#ifndef __INCLUDE_NUTTX_MM_KMAP_H
|
||||||
#define __INCLUDE_NUTTX_MM_KMAP_H_
|
#define __INCLUDE_NUTTX_MM_KMAP_H
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: kmm_map_initialize
|
* Name: kmm_map_initialize
|
||||||
@ -106,4 +106,4 @@ FAR void *kmm_user_map(FAR void *uaddr, size_t size);
|
|||||||
|
|
||||||
FAR void *kmm_map_user_page(FAR void *uaddr);
|
FAR void *kmm_map_user_page(FAR void *uaddr);
|
||||||
|
|
||||||
#endif /* __INCLUDE_NUTTX_MM_KMAP_H_ */
|
#endif /* __INCLUDE_NUTTX_MM_KMAP_H */
|
||||||
|
@ -112,7 +112,7 @@ static int get_user_pages(FAR void **pages, size_t npages, uintptr_t vaddr)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void *map_pages(FAR void **pages, size_t npages, int prot)
|
static FAR void *map_pages(FAR void **pages, size_t npages, int prot)
|
||||||
{
|
{
|
||||||
struct mm_map_entry_s entry;
|
struct mm_map_entry_s entry;
|
||||||
FAR void *vaddr;
|
FAR void *vaddr;
|
||||||
@ -175,7 +175,7 @@ errout_with_vaddr:
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void *map_single_user_page(uintptr_t vaddr)
|
static FAR void *map_single_user_page(uintptr_t vaddr)
|
||||||
{
|
{
|
||||||
FAR struct tcb_s *tcb = nxsched_self();
|
FAR struct tcb_s *tcb = nxsched_self();
|
||||||
uintptr_t page;
|
uintptr_t page;
|
||||||
@ -385,7 +385,7 @@ FAR void *kmm_user_map(FAR void *uaddr, size_t size)
|
|||||||
|
|
||||||
/* No, the area must be mapped into kernel virtual address space */
|
/* No, the area must be mapped into kernel virtual address space */
|
||||||
|
|
||||||
pages = kmm_zalloc(npages * sizeof(void *));
|
pages = kmm_zalloc(npages * sizeof(FAR void *));
|
||||||
if (!pages)
|
if (!pages)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user