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/ems.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/ems.c')
-rw-r--r-- | usr.bin/doscmd/ems.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/doscmd/ems.c b/usr.bin/doscmd/ems.c index 1b9b045..14bbd94 100644 --- a/usr.bin/doscmd/ems.c +++ b/usr.bin/doscmd/ems.c @@ -817,7 +817,7 @@ ems_entry(regcontext_t *REGS) /* Some checks */ if (emvp->src_type == EMS_MOVE_CONV) { /* Conventional memory source */ - src_addr = N_GETPTR(emvp->src_seg, emvp->src_offset); + src_addr = MAKEPTR(emvp->src_seg, emvp->src_offset); /* May not exceed conventional memory */ if ((src_addr + emvp->length) > 640 * 1024) { R_AH = EMS_SW_MALFUNC; @@ -842,7 +842,7 @@ ems_entry(regcontext_t *REGS) if (emvp->dst_type == EMS_MOVE_CONV) { /* Conventional memory source */ - dst_addr = N_GETPTR(emvp->dst_seg, emvp->dst_offset); + dst_addr = MAKEPTR(emvp->dst_seg, emvp->dst_offset); /* May not exceed conventional memory */ if ((dst_addr + emvp->length) > 640 * 1024) { R_AH = EMS_SW_MALFUNC; @@ -1202,7 +1202,7 @@ static void *get_valid_pointer(u_short seg, u_short offs, u_long size) { u_long addr; - addr = N_GETPTR(seg, offs); + addr = MAKEPTR(seg, offs); /* Check bounds */ if ((addr + size) >= (1024 * 1024) || addr < 1024) return NULL; |