diff options
author | marcel <marcel@FreeBSD.org> | 1999-09-29 20:09:19 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-09-29 20:09:19 +0000 |
commit | d4e70391772e9b3fa25d96b93d50278ea1c125ef (patch) | |
tree | 8397c40eb0fbcd1e79470ce8389a29cbebc02ca6 /usr.bin/doscmd/int13.c | |
parent | 073b941095e3deeaae66ec3452643c4db25deb08 (diff) | |
download | FreeBSD-src-d4e70391772e9b3fa25d96b93d50278ea1c125ef.zip FreeBSD-src-d4e70391772e9b3fa25d96b93d50278ea1c125ef.tar.gz |
Unbreak doscmd after the sigset_t change:
doscmd heavily depends on struct sigcontext which luckily is mostly passed
between functions as usion regcontext_t. By redefining union regcontext_t in
terms of mcontext_t almost all bases are covered.
It also seems to me that doscmd was in a transitional state. The redundant
definitions made it difficult to get a clear overview and could easily cause
oversight. To make sure my changes were ok, I went as far as to complete the
transition. It was not exactly necessary, but I expect to have to come back
here some more ("whistle" if I'm wrong :-).
Diffstat (limited to 'usr.bin/doscmd/int13.c')
-rw-r--r-- | usr.bin/doscmd/int13.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/doscmd/int13.c b/usr.bin/doscmd/int13.c index 84cb13f..ded17c85 100644 --- a/usr.bin/doscmd/int13.c +++ b/usr.bin/doscmd/int13.c @@ -599,7 +599,7 @@ int13(regcontext_t *REGS) break; case 0x02: /* Read */ R_AH = 0; - addr = (char *)N_GETPTR(R_ES, R_BX); + addr = (char *)MAKEPTR(R_ES, R_BX); sectors = R_AL; side = R_DH; R_AL = 0; /* Start out with nothing read */ @@ -658,7 +658,7 @@ int13(regcontext_t *REGS) case 0x03: /* Write */ R_AH = 0; - addr = (char *)GETPTR(R_ES, R_BX); + addr = (char *)MAKEPTR(R_ES, R_BX); sectors = R_AL; side = R_DH; R_AL = 0; /* Start out with nothing written */ @@ -792,7 +792,7 @@ int13(regcontext_t *REGS) R_BX = di->type; if ((drive & 0x80) == 0) - N_PUTVEC(R_ES, R_DI, di->location); + PUTVEC(R_ES, R_DI, di->location); R_CL = di->sectors | ((di->cylinders >> 2) & 0xc0); R_CH = di->cylinders & 0xff; |