diff options
-rw-r--r-- | toys/other/devmem.c (renamed from toys/pending/devmem.c) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/pending/devmem.c b/toys/other/devmem.c index d5b7bdb4..a6f9f606 100644 --- a/toys/pending/devmem.c +++ b/toys/other/devmem.c @@ -6,7 +6,7 @@ USE_DEVMEM(NEWTOY(devmem, "<1>3", TOYFLAG_USR|TOYFLAG_BIN)) config DEVMEM bool "devmem" - default n + default y help usage: devmem ADDR [WIDTH [DATA]] @@ -45,6 +45,7 @@ void devmem_main(void) p = map + (addr & (page_size - 1)); close(fd); + // Not using peek()/poke() because registers care about size of read/write if (writing) { if (bytes == 1) *(char *)p = data; else if (bytes == 2) *(short *)p = data; |