mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Move rammaps to use mm_map list
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Xiang Xiao
parent
a5ed8014e8
commit
b8f23fc3f7
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user