Trying to get a simple sysgen script running under win32 --
Errors found in dependency searching:
Could not resolve NDA dependency 'sys/pii/win32/exception_saved' of tool './sys/pii/win32/fleh.04'
Referenced by tool 'sys/pii/win32/protect'
Not sure how to correct this.
test.sys
.trans ("sys/tr/pentium");
.toolext ("24");
.toolext ("23");
.toolext ("15");
.toolext ("14");
.toolext ("04");
.toolext ("03");
.toolext ("00");
.scheduler
{
.priority (range=0-255, timeslice=true, policy="sys/kn/sched/fixed" );
}
.memory (name="RAM", attr="rwx", base=$0, manager="sys/kn/mem/nstd/_new", image="sys/platform/win32/k15stpc.img" )
{
.map_region (defaultstack);
.map_region (defaultdata);
.map_region (system);
.map_region (defaultcode);
.map_region (defaultmail);
.map_region (staticdata);
#include /sys/pii/win32/boot.sys
/sys/kn/init/relocate
/sys/kn/init/makedata
/sys/kn/init/tlfixup
/sys/kn/init/p_start
.call ("sys/pii/win32/meminit");
.call ("sys/kn/init/makememobj");
.call ("sys/kn/init/sched");
.call ("sys/kn/proc/pid/init");
.call ("sys/kn/init/toolflush");
#include /sys/kn/ramdata.sys
// not in win32 system??
// #include /sys/pii/pcstand/data.sys
#include /sys/pii/win32/init.sys
#include /sys/pii/win32/tools.sys
.obj (newtool="dev/timer/win32/_new", mountstr="/device/timer", cmdline="timer -r6");
.obj (newtool="dev/display/win32/_new", mountstr="/device/display", cmdline="display -p");
//.spawn (tool="mike/hello", cmdline="hello");
}
mike |
Trying to get a simple sysgen script running under win32 --
Errors found in dependency searching:
Could not resolve NDA dependency 'sys/pii/win32/exception_saved' of tool './sys/pii/win32/fleh.04'
Referenced by tool 'sys/pii/win32/protect'
Not sure how to correct this.
test.sys
.trans ("sys/tr/pentium");
.toolext ("24");
.toolext ("23");
.toolext ("15");
.toolext ("14");
.toolext ("04");
.toolext ("03");
.toolext ("00");
.scheduler
{
.priority (range=0-255, timeslice=true, policy="sys/kn/sched/fixed" );
}
.memory (name="RAM", attr="rwx", base=$0, manager="sys/kn/mem/nstd/_new", image="sys/platform/win32/k15stpc.img" )
{
.map_region (defaultstack);
.map_region (defaultdata);
.map_region (system);
.map_region (defaultcode);
.map_region (defaultmail);
.map_region (staticdata);
#include /sys/pii/win32/boot.sys
/sys/kn/init/relocate
/sys/kn/init/makedata
/sys/kn/init/tlfixup
/sys/kn/init/p_start
.call ("sys/pii/win32/meminit");
.call ("sys/kn/init/makememobj");
.call ("sys/kn/init/sched");
.call ("sys/kn/proc/pid/init");
.call ("sys/kn/init/toolflush");
#include /sys/kn/ramdata.sys
// not in win32 system??
// #include /sys/pii/pcstand/data.sys
#include /sys/pii/win32/init.sys
#include /sys/pii/win32/tools.sys
.obj (newtool="dev/timer/win32/_new", mountstr="/device/timer", cmdline="timer -r6");
.obj (newtool="dev/display/win32/_new", mountstr="/device/display", cmdline="display -p");
//.spawn (tool="mike/hello", cmdline="hello");
}
mike |
You should use SYSBUILD instead of SYSGEN.
SYSBUILD is friendlier.
I've written a simple window program called "win.00"
I want to create an .img file that spawns it.
I simply create the .sys script as below called
"win.sys" and SYSBUILD it:
Assuming "win.sys" exists in your "/sys/platform/"
and your are creating it under Windows,
at the prompt type:
sysbuild win32 /sys/platform/win.sys
and SYSBUILD creates win.img in your
/sys/platform/win32 directory.
//***************************************************
// Test WIN.SYS FILE
//***************************************************
//***********************************
//***** Application Setup Stage *****
//***********************************
#if $(BUILD_STAGE) == $(BUILD_STAGE_SETUP)
// sysgen image filename
#ifndef IMAGE_FILE
#define IMAGE_FILE win
#endif
#redefine WANT_KEYBOARD
#redefine WANT_AVE
#endif // $(BUILD_STAGE) == $(BUILD_STAGE_SETUP)
//*************************************
//***** Application Depends Stage *****
//*************************************
#if $(BUILD_STAGE) == $(BUILD_STAGE_DEPENDS)
#endif // $(BUILD_STAGE) == $(BUILD_STAGE_DEPENDS)
//***********************************
//***** Application Tools Stage *****
//***********************************
#if $(BUILD_STAGE) == $(BUILD_STAGE_ROMTOOLS)
//******************
//* Tools required *
//******************
progs/win
.spawn(tool="progs/win");
#endif // $(BUILD_STAGE) == $(BUILD_STAGE_ROMTOOLS)
//***************************************************
mugal |