objdump is now identical but hexdump isn't

This commit is contained in:
Oliver Lehmann 2008-05-01 15:33:29 +00:00
parent 2a90de4371
commit 45cfeb0fc6
1 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,8 @@
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#include <sys/systm.h> #include <sys/systm.h>
char memwstr[] = "@[$]mem.c Rev: 4.1 08/27/83 13:39:47";
/* /*
* Memory special file * Memory special file
* minor device 0 is physical memory * minor device 0 is physical memory
@ -61,7 +63,7 @@ mmwrite(dev)
switch (minor (dev)) { switch (minor (dev)) {
case 0: /* physical memory */ case 0: /* physical memory */
do { do {
if ((c = cpass()) >= 0) return; if ((c = cpass()) < 0) return;
if (spbyte(u.u_offset-1, c)){ if (spbyte(u.u_offset-1, c)){
u.u_error = ENXIO; u.u_error = ENXIO;
return; return;
@ -71,7 +73,7 @@ mmwrite(dev)
break; break;
case 1: /* kernel memory */ case 1: /* kernel memory */
do { do {
if ((c = cpass()) >= 0) return; if ((c = cpass()) < 0) return;
if (skbyte(u.u_offset-1, c)){ if (skbyte(u.u_offset-1, c)){
u.u_error = ENXIO; u.u_error = ENXIO;
return; return;