| 41 | } |
| 42 | |
| 43 | U32 DevZero::map(KThread* thread, U32 address, U32 len, S32 prot, S32 flags, U64 off) { |
| 44 | // :TODO: not correct, writing to this should just be ignored |
| 45 | if (prot & K_PROT_WRITE) { |
| 46 | kwarn("DevZero::map with PROT_WRITE not implemented, this will probably cause a problem"); |
| 47 | } |
| 48 | return thread->memory->mmap(thread, address, len, prot, flags, -1, off); |
| 49 | } |
| 50 | |
| 51 | bool DevZero::canMap() { |
| 52 | return true; |