littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 613 forks source link

[arch][mmu] align the return of arch_mmu_map and arch_mmu_unmap of all the arches #356

Open travisg opened 1 year ago

travisg commented 1 year ago

Currently most of the arches return simply an error condition or not if the map/unmap went through, and try to clean up if there's a partial map. The arm32 code returns the number of pages mapped, which is why the return code is an int. Move the arm32 code to the former, probably.