Changeset c21e6a5 in mainline for uspace/lib/drv/generic/remote_usbhc.c
- Timestamp:
- 2018-02-05T00:54:08Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af16ebe
- Parents:
- 65c059f
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-02-05 00:27:40)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-02-05 00:54:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
r65c059f rc21e6a5 428 428 return err; 429 429 430 /* 431 * As we're going to check the mapping, we must make sure the memory is 432 * actually mapped. We must do it right now, because the area might be 433 * read-only or write-only, and we may be unsure later. 434 */ 435 if (flags & AS_AREA_READ) { 436 char foo = 0; 437 volatile const char *buf = trans->buffer; 438 for (size_t i = 0; i < size; i += PAGE_SIZE) 439 foo += buf[i]; 440 } else { 441 volatile char *buf = trans->buffer; 442 for (size_t i = 0; i < size; i += PAGE_SIZE) 443 buf[i] = 0xff; 444 } 445 430 446 return EOK; 431 447 }
Note:
See TracChangeset
for help on using the changeset viewer.