duct taped posix.dll (just like microsoft), new cursor, more info in the fault handlers, processes now have a parse-it-yourself cmdline, add SYS_WAIT_THREAD and SYS_GET_PROCESS_PID, writing still doesn't work
This commit is contained in:
1 parent
a37f5b1581
commit
b5c831f593
26 files changed
+1107
-56
No files matched your search
@@ -13,6 +13,7 @@ mkdir "obj\kernel" 2>nul
|
||||
mkdir "obj\hal" 2>nul
|
||||
mkdir "obj\syscall" 2>nul
|
||||
mkdir "obj\win32" 2>nul
|
||||
mkdir "obj\posix" 2>nul
|
||||
mkdir "obj\drivers" 2>nul
|
||||
mkdir "obj\shell" 2>nul
|
||||
mkdir "obj\video" 2>nul
|
||||
@@ -80,6 +81,14 @@ for %%f in (%SRC%\win32\*.c) do (
|
||||
link /nologo /SUBSYSTEM:NATIVE /NODEFAULTLIB /DLL ^
|
||||
/OUT:"bin\win32.dll" bin\syscall.lib obj\libc.obj obj\win32\*.obj || exit /b 1
|
||||
|
||||
:: ---- Compile posix.dll ----
|
||||
echo Compiling posix.dll...
|
||||
for %%f in (%SRC%\posix\*.c) do (
|
||||
cl %CFLAGS% /c /Fo"obj\posix\%%~nf.obj" "%%f" || exit /b 1
|
||||
)
|
||||
link /nologo /SUBSYSTEM:NATIVE /NODEFAULTLIB /DLL ^
|
||||
/OUT:"bin\posix.dll" bin\syscall.lib obj\libc.obj obj\posix\*.obj || exit /b 1
|
||||
|
||||
:: ---- Compile drivers ----
|
||||
echo Compiling drivers...
|
||||
cl %CFLAGS% /I"%SRC%\hal" /c /Fo"obj\drivers\ide.obj" "%SRC%\drivers\ide\ide.c" || exit /b 1
|
||||
@@ -129,6 +138,7 @@ copy /y "bin\kernel.exe" "%DEST%\colonel.exe"
|
||||
copy /y "bin\hal.dll" "%DEST%\"
|
||||
copy /y "bin\syscall.dll" "%DEST%\"
|
||||
copy /y "bin\win32.dll" "%DEST%\"
|
||||
copy /y "bin\posix.dll" "%DEST%\"
|
||||
copy /y "bin\ide.sys" "%DEST%\drivers\"
|
||||
copy /y "bin\ahci.sys" "%DEST%\drivers\"
|
||||
copy /y "bin\fat32.sys" "%DEST%\drivers\"
|
||||
|
||||
Reference in new issue
Block a user