• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

How to change to UNI kernel

Started by lpino, 2009.04.29, 02:20:42

Previous topic - Next topic

lpino

I installed RC6a and I had problems running VAC 4.0 it hangs the computer evrytime I try to compile anything. I discover that the system is using the SMP kernel, even though my computer has only one CPU. How can I change back to UNI kernel?

Thanks in advance

Leonardo Pino

ivan

Remove the system, hidden and read only attributes from os2dump, os2krnl and os2ldr and copy the uni versions over them.  You also need to copy the uni versions of doscall1.dll and pmdd.sys.  Also I think you may need to rem out the ACPI statement in config.sys.

Andi

Another attempt would be to 'change the .exes' to use only on CPU. VAC4.0 works here with sample projects. Too bad I don't remember the name of the tool, but hope others jump in...

RobertM

I cant remember for sure, but I think I used OS2MT or a REXX tool on Hobbes to change mine - was the easiest and safest method I found.


|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


The Blue Warper

Quote from: Andi on 2009.04.30, 12:41:58
Another attempt would be to 'change the .exes' to use only on CPU. VAC4.0 works here with sample projects. Too bad I don't remember the name of the tool, but hope others jump in...

Probably Andi is referring to MARKEXE.  This is an utility to set various flags on an OS/2 executable.  There's an option that will allow marking an executable as SMP unsafe, thus instructing the kernel to run it using one CPU only.  The option is MPUNSAFE.  So the command syntax should be:
markexe MPUNSAFE yourfile.exe

You can find additional information here:
http://cyberkinetica.homeunix.net/os2tk45/toolsref/225_L2_CommandLineSyntax.html
http://cyberkinetica.homeunix.net/os2tk45/toolsref/226_L3_SyntaxDefinitions.html

and here:
http://en.ecomstation.ru/projects/acpitools/?action=faq-common
[see Q59]
The above document also has a link for getting MARKEXE (which I believe was part of the OS/2 Dev. Toolkit).

Note: While this procedure can work for you, perhaps you may still want to switch to the UNI kernel (keep in mind that some ACPI related enhancements only work with SMP kernel (even using one CPU only)).  There's a rexx script on hobbes to switch between UNI and SMP kernel.  It seems your candidate...  You can find it here:
http://hobbes2.nmsu.edu/download/pub/os2/util/system/uni-smp.zip

Hope the above helps.

Regards