| 293 | } |
| 294 | |
| 295 | bool KMemory::canWrite(U32 address, U32 len) { |
| 296 | bool result = true; |
| 297 | |
| 298 | iteratePages(address, len, [this, &result](U32 page) { |
| 299 | if (getPageFlags(page) & PAGE_WRITE) { |
| 300 | return true; |
| 301 | } |
| 302 | result = false; |
| 303 | return false; |
| 304 | }); |
| 305 | return result; |
| 306 | } |
| 307 | |
| 308 | bool KMemory::canRead(U32 address, U32 len) { |
| 309 | bool result = true; |
no outgoing calls
no test coverage detected