mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-27 07:44:09 +02:00
Added support for BUFFERSHIGH as alias to BUFFERS: No new code
but useful for people who are used to writing HIGH everywhere. Thanks to Christian Wallbaum the hint that config.txt had both. Removed code which called int 16.1 in a loop before 16.0 - this would only be useful if you invoke HLT before each int 16.1 ... git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1366 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
74167734ff
commit
31bc1f6149
@ -45,7 +45,9 @@ space will be used for further buffers until something else allocates
|
|||||||
the HMA space for something else. Even then, at least nn buffers will
|
the HMA space for something else. Even then, at least nn buffers will
|
||||||
always be available. You can set nn to a negative value to disable
|
always be available. You can set nn to a negative value to disable
|
||||||
the use of unused HMA space: BUFFERS=-10 only uses 10 buffers, further
|
the use of unused HMA space: BUFFERS=-10 only uses 10 buffers, further
|
||||||
free space in the HMA will just stay unused.
|
free space in the HMA will just stay unused. Because the buffers can
|
||||||
|
use the HMA anyway, BUFFERSHIGH does the same as BUFFERS for now, but
|
||||||
|
shows a note about that to inform the user that it does not use UMB.
|
||||||
Example: buffers=20
|
Example: buffers=20
|
||||||
|
|
||||||
COUNTRY
|
COUNTRY
|
||||||
|
@ -172,6 +172,7 @@ UCOUNT Menus BSS_INIT(0);
|
|||||||
STATIC VOID CfgMenuColor(BYTE * pLine);
|
STATIC VOID CfgMenuColor(BYTE * pLine);
|
||||||
|
|
||||||
STATIC VOID Config_Buffers(BYTE * pLine);
|
STATIC VOID Config_Buffers(BYTE * pLine);
|
||||||
|
STATIC VOID CfgBuffersHigh(BYTE * pLine);
|
||||||
STATIC VOID sysScreenMode(BYTE * pLine);
|
STATIC VOID sysScreenMode(BYTE * pLine);
|
||||||
STATIC VOID sysVersion(BYTE * pLine);
|
STATIC VOID sysVersion(BYTE * pLine);
|
||||||
STATIC VOID CfgBreak(BYTE * pLine);
|
STATIC VOID CfgBreak(BYTE * pLine);
|
||||||
@ -271,6 +272,7 @@ STATIC struct table commands[] = {
|
|||||||
|
|
||||||
{"BREAK", 1, CfgBreak},
|
{"BREAK", 1, CfgBreak},
|
||||||
{"BUFFERS", 1, Config_Buffers},
|
{"BUFFERS", 1, Config_Buffers},
|
||||||
|
{"BUFFERSHIGH", 1, CfgBuffersHigh}, /* as BUFFERS - we use HMA anyway */
|
||||||
{"COMMAND", 1, InitPgm},
|
{"COMMAND", 1, InitPgm},
|
||||||
{"COUNTRY", 1, Country},
|
{"COUNTRY", 1, Country},
|
||||||
{"DOS", 1, Dosmem},
|
{"DOS", 1, Dosmem},
|
||||||
@ -757,6 +759,7 @@ UWORD GetBiosKey(int timeout)
|
|||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
/* optionally HLT here - timer will IRQ even if no keypress */
|
||||||
r.a.x = 0x0100; /* are there keys available ? */
|
r.a.x = 0x0100; /* are there keys available ? */
|
||||||
init_call_intr(0x16, &r);
|
init_call_intr(0x16, &r);
|
||||||
if (!(r.flags & FLG_ZERO)) {
|
if (!(r.flags & FLG_ZERO)) {
|
||||||
@ -769,10 +772,13 @@ UWORD GetBiosKey(int timeout)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* blocking wait (timeout < 0): fetch it */
|
/* blocking wait (timeout < 0): fetch it */
|
||||||
|
#if 0
|
||||||
do {
|
do {
|
||||||
|
/* optionally HLT here */
|
||||||
r.a.x = 0x0100;
|
r.a.x = 0x0100;
|
||||||
init_call_intr(0x16, &r);
|
init_call_intr(0x16, &r);
|
||||||
} while (r.flags & FLG_ZERO);
|
} while (r.flags & FLG_ZERO);
|
||||||
|
#endif
|
||||||
r.a.x = 0x0000;
|
r.a.x = 0x0000;
|
||||||
init_call_intr(0x16, &r);
|
init_call_intr(0x16, &r);
|
||||||
return r.a.x;
|
return r.a.x;
|
||||||
@ -918,6 +924,12 @@ STATIC void Config_Buffers(BYTE * pLine)
|
|||||||
Config.cfgBuffers = nBuffers;
|
Config.cfgBuffers = nBuffers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STATIC void CfgBuffersHigh(BYTE * pLine)
|
||||||
|
{
|
||||||
|
Config_Buffers(pLine);
|
||||||
|
printf("Note: BUFFERS will be in HMA or low RAM, not in UMB\n");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set screen mode - rewritten to use init_call_intr() by RE / ICD
|
Set screen mode - rewritten to use init_call_intr() by RE / ICD
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user