a few new syscalls, init process
This commit is contained in:
1 parent
320a24e1a5
commit
cdf7ed4cea
12 files changed
+830
-480
No files matched your search
@@ -20,6 +20,7 @@ mkdir "obj\syscall" 2>nul
|
||||
mkdir "obj\win32" 2>nul
|
||||
mkdir "obj\posix" 2>nul
|
||||
mkdir "obj\drivers" 2>nul
|
||||
mkdir "obj\init" 2>nul
|
||||
mkdir "obj\shell" 2>nul
|
||||
mkdir "obj\video" 2>nul
|
||||
mkdir "bin" 2>nul
|
||||
@@ -112,6 +113,16 @@ cl %CFLAGS% /I"%SRC%\usb" /c /Fo"obj\drivers\usb.obj" "%SRC%\drivers\usb\usb.c"
|
||||
link /nologo /SUBSYSTEM:NATIVE /NODEFAULTLIB /DLL /OUT:"bin\usb.sys" /ENTRY:DriverEntry ^
|
||||
bin\hal.lib bin\kernel.lib obj\libc.obj obj\drivers\usb.obj || exit /b 1
|
||||
|
||||
:: ---- Compile init ----
|
||||
echo Compiling init...
|
||||
for %%f in (%SRC%\shell\*.c) do (
|
||||
cl %CFLAGS% /c /Fo"obj\shell\%%~nf.obj" "%%f" || exit /b 1
|
||||
)
|
||||
|
||||
:: ---- Link init.exe ----
|
||||
link %LFLAGS% /SUBSYSTEM:NATIVE /ENTRY:_start ^
|
||||
/OUT:"bin\init.exe" /PDB:"bin\init.pdb" bin\syscall.lib obj\libc.obj obj\init\init.obj || exit /b 1
|
||||
|
||||
:: ---- Compile shell ----
|
||||
echo Compiling shell...
|
||||
for %%f in (%SRC%\shell\*.c) do (
|
||||
@@ -168,11 +179,13 @@ copy /y "bin\ide.sys" "%DEST%\drivers\"
|
||||
copy /y "bin\ahci.sys" "%DEST%\drivers\"
|
||||
copy /y "bin\fat32.sys" "%DEST%\drivers\"
|
||||
copy /y "bin\usb.sys" "%DEST%\drivers\"
|
||||
copy /y "bin\init.exe" "%DEST%\"
|
||||
copy /y "bin\shell.exe" "%DEST%\"
|
||||
copy /y "bin\video.exe" "%DEST%\"
|
||||
copy /y "%SRC%\boot.ini" "%DEST%\"
|
||||
copy /y "%SRC%\drivers\drivers.ini" "%DEST%\drivers\"
|
||||
if exist "%SRC%\video\bink2w64.dll" copy /y "%SRC%\video\bink2w64.dll" "%DEST%\"
|
||||
if exist "video.bk2" copy /y "video.bk2" "%DEST%\"
|
||||
|
||||
:: ---- Unmount disk image ----
|
||||
echo Unmounting disk.vhd...
|
||||
|
||||
Reference in new issue
Block a user