Move rammaps to use mm_map list

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2023-01-04 16:52:29 +04:00
committed by Xiang Xiao
parent a5ed8014e8
commit b8f23fc3f7
4 changed files with 110 additions and 192 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ static int file_mmap_(FAR struct file *filep, FAR void *start,
* do much better in the KERNEL build using the MMU.
*/
return rammap(filep, length, offset, kernel, mapped);
return rammap(filep, &entry, kernel);
#endif
}
@@ -162,7 +162,7 @@ static int file_mmap_(FAR struct file *filep, FAR void *start,
* do much better in the KERNEL build using the MMU.
*/
return rammap(filep, length, offset, kernel, mapped);
return rammap(filep, &entry, kernel);
#else
ferr("ERROR: mmap not supported \n");
return -ENOSYS;