MSC fixes and small cleanups from Lucho
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@970 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
41edf4f640
commit
2c8a4b8c34
@ -296,6 +296,11 @@ struct Gioc_media {
|
||||
BYTE ioc_fstype[8];
|
||||
};
|
||||
|
||||
struct Access_info {
|
||||
BYTE AI_spec;
|
||||
BYTE AI_Flag;
|
||||
};
|
||||
|
||||
/* */
|
||||
/* Boot Block (Super Block) */
|
||||
/* */
|
||||
|
@ -81,11 +81,6 @@ UWORD LBA_WRITE_VERIFY = 0x4302;
|
||||
*/
|
||||
UBYTE DiskTransferBuffer[1 * SEC_SIZE];
|
||||
|
||||
struct Access_info {
|
||||
BYTE AI_spec;
|
||||
BYTE AI_Flag;
|
||||
};
|
||||
|
||||
struct FS_info {
|
||||
ULONG serialno;
|
||||
BYTE volume[11];
|
||||
|
@ -271,7 +271,7 @@ extern UWORD DOSFAR LBA_WRITE_VERIFY;
|
||||
/* floppy parameter table, at 70:xxxx */
|
||||
extern unsigned char DOSTEXTFAR ASM int1e_table[0xe];
|
||||
|
||||
extern char DOSTEXTFAR DiskTransferBuffer[SEC_SIZE]; /* in dsk.c */
|
||||
extern char DOSFAR DiskTransferBuffer[SEC_SIZE]; /* in dsk.c */
|
||||
|
||||
struct RelocationTable {
|
||||
UBYTE jmpFar;
|
||||
|
@ -99,7 +99,7 @@ COUNT DosDevIOctl(lregs * r)
|
||||
case 0x0c:
|
||||
case 0x10:
|
||||
{
|
||||
unsigned attr, flags;
|
||||
unsigned flags;
|
||||
|
||||
/* Test that the handle is valid and */
|
||||
/* get the SFT block that contains the SFT */
|
||||
@ -195,7 +195,7 @@ COUNT DosDevIOctl(lregs * r)
|
||||
|
||||
if (r->AL <= 0x03)
|
||||
r->AX = CharReqHdr.r_count;
|
||||
else if (r->AL == 0x06 || r->AL == 0x07)
|
||||
else if (r->AL <= 0x07)
|
||||
r->AX = CharReqHdr.r_status & S_BUSY ? 0000 : 0x00ff;
|
||||
else /* 0x0c or 0x10 */
|
||||
r->AX = CharReqHdr.r_status;
|
||||
|
Loading…
Reference in New Issue
Block a user