OS/2, eCS & ArcaOS - Technical > Setup & Installation

I think I've found the magic number

(1/2) > >>

roberto:
The edm2 web site :
#define ORD_DOS32PERFSYSCALL            976

This number is 31.25 pwr 2 = 976.5625 (I do not know, but maybe in an era with two processors, it could be valid, But they did not include the decimal part.)
I have tried many numbers and there is one that is especially good.

         31.25 pwr 6 = 931322574.615478067200

If defined in the config.sys (only one line)
SET ORD_DOS32PERFSYSCALL=931322574.615478067200
SET ORD_DOS32PERFSYSCALL=931322.574615478067200
SET ORD_DOS32PERFSYSCALL=931.322574615478067200
SET ORD_DOS32PERFSYSCALL=0.93132257461547806720

The position in the config.sys will be after the line:
SET IPF_KEYS=SBCS

I understand that they all work, but in some computers will work better one number or another.
Maybe it that the number that shows more available memory after booting is the best option for that computer,
 but this I have little tested

I have been able to be with the Dooble, playing a music video for more than an hour, without it closing.
Without touching it, when I touch it first cease the image and then the sound ceases.
But it didn't shut down. I can change the flap, but not on operational.
The dbexpert also works better.

Saludos

Roderick Klein:
I mean how does this set statement influence the complete system stability ?
You previously made some sort of basic file that runs in a DOS VDM (where you not that person ).
How can the OS2KRNL and other ring 0 code be influenced by a VDM basic program ?
I am not saying your work does not work, I am just puzzled how it exactly works.

Thanks,

Roderick

Roderick Klein:
The only thing the SET ORD_DOS32PERFSYSCALL=931322574.615478067200 is set the environment variable.
But OS/2 will never pick this up, best I can tell. Is there any code in OS/2 that uses this SET statement ?

Roderick

Tom:
A DLL contains functions that are available for use by other programs. These functions may be referenced by their name or by their "ordinal number", which must be an integer. What "#define ORD_DOS32PERFSYSCALL            976" does, is making clear that the ordinal number for the function DOS32PERFSYSCALL is 976.

Fractions cannot be used as an ordinal number for a function. If you would look inside a DLL for function number 931.322574615478067200 , you will not find it. You may find function number 931 or 932, but not 931.322574615478067200.


roberto:

--- Quote from: Tom on October 23, 2022, 03:05:39 pm ---A DLL contains functions that are available for use by other programs. These functions may be referenced by their name or by their "ordinal number", which must be an integer. What "#define ORD_DOS32PERFSYSCALL            976" does, is making clear that the ordinal number for the function DOS32PERFSYSCALL is 976.

Fractions cannot be used as an ordinal number for a function. If you would look inside a DLL for function number 931.322574615478067200 , you will not find it. You may find function number 931 or 932, but not 931.322574615478067200.

--- End quote ---

But aren't they different variables?
ORD_DOS32PERFSYSCALL <> DOS32PERFSYSCALL
saludos

Navigation

[0] Message Index

[#] Next page

Go to full version