├── evilos ├── README.md ├── tools │ ├── grub-vbe-patch │ │ ├── stamp-h1 │ │ ├── docs │ │ │ ├── .deps │ │ │ │ └── kernel-kernel.Po │ │ │ ├── help2man │ │ │ ├── stamp-vti │ │ │ ├── version.texi │ │ │ ├── src2texi │ │ │ ├── grub-terminfo.8 │ │ │ ├── mbchk.1 │ │ │ ├── grub-md5-crypt.8 │ │ │ ├── grub-install.8 │ │ │ ├── grub.8 │ │ │ ├── menu.lst │ │ │ └── boot.S │ │ ├── netboot │ │ │ ├── .deps │ │ │ │ ├── libdrivers_a-pci.Po │ │ │ │ ├── libdrivers_a-3c509.Po │ │ │ │ ├── libdrivers_a-3c595.Po │ │ │ │ ├── libdrivers_a-3c90x.Po │ │ │ │ ├── libdrivers_a-config.Po │ │ │ │ ├── libdrivers_a-cs89x0.Po │ │ │ │ ├── libdrivers_a-davicom.Po │ │ │ │ ├── libdrivers_a-depca.Po │ │ │ │ ├── libdrivers_a-eepro.Po │ │ │ │ ├── libdrivers_a-eepro100.Po │ │ │ │ ├── libdrivers_a-epic100.Po │ │ │ │ ├── libdrivers_a-fa311.Po │ │ │ │ ├── libdrivers_a-i82586.Po │ │ │ │ ├── libdrivers_a-lance.Po │ │ │ │ ├── libdrivers_a-main.Po │ │ │ │ ├── libdrivers_a-misc.Po │ │ │ │ ├── libdrivers_a-natsemi.Po │ │ │ │ ├── libdrivers_a-ni5010.Po │ │ │ │ ├── libdrivers_a-ns8390.Po │ │ │ │ ├── libdrivers_a-otulip.Po │ │ │ │ ├── libdrivers_a-rtl8139.Po │ │ │ │ ├── libdrivers_a-sis900.Po │ │ │ │ ├── libdrivers_a-sk_g16.Po │ │ │ │ ├── libdrivers_a-smc9000.Po │ │ │ │ ├── libdrivers_a-tiara.Po │ │ │ │ ├── libdrivers_a-timer.Po │ │ │ │ ├── libdrivers_a-tlan.Po │ │ │ │ ├── libdrivers_a-tulip.Po │ │ │ │ ├── libdrivers_a-w89c840.Po │ │ │ │ ├── libdrivers_a-fsys_tftp.Po │ │ │ │ └── libdrivers_a-via-rhine.Po │ │ │ ├── 3c509.c │ │ │ ├── main.c │ │ │ ├── smc9000.c │ │ │ ├── smc9000.h │ │ │ ├── nic.h │ │ │ ├── cs89x0.txt │ │ │ └── timer.h │ │ ├── stage2 │ │ │ ├── .deps │ │ │ │ ├── diskless_exec-md5.Po │ │ │ │ ├── diskless_exec-bios.Po │ │ │ │ ├── diskless_exec-boot.Po │ │ │ │ ├── diskless_exec-builtins.Po │ │ │ │ ├── diskless_exec-char_io.Po │ │ │ │ ├── diskless_exec-cmdline.Po │ │ │ │ ├── diskless_exec-common.Po │ │ │ │ ├── diskless_exec-console.Po │ │ │ │ ├── diskless_exec-disk_io.Po │ │ │ │ ├── diskless_exec-fsys_fat.Po │ │ │ │ ├── diskless_exec-fsys_ffs.Po │ │ │ │ ├── diskless_exec-fsys_jfs.Po │ │ │ │ ├── diskless_exec-fsys_xfs.Po │ │ │ │ ├── diskless_exec-gunzip.Po │ │ │ │ ├── diskless_exec-hercules.Po │ │ │ │ ├── diskless_exec-serial.Po │ │ │ │ ├── diskless_exec-smp-imps.Po │ │ │ │ ├── diskless_exec-stage2.Po │ │ │ │ ├── diskless_exec-terminfo.Po │ │ │ │ ├── diskless_exec-tparm.Po │ │ │ │ ├── diskless_exec-fsys_ext2fs.Po │ │ │ │ ├── diskless_exec-fsys_iso9660.Po │ │ │ │ ├── diskless_exec-fsys_minix.Po │ │ │ │ ├── diskless_exec-fsys_reiserfs.Po │ │ │ │ ├── diskless_exec-fsys_ufs2.Po │ │ │ │ ├── diskless_exec-fsys_vstafs.Po │ │ │ │ ├── pre_stage2_exec-bios.Po │ │ │ │ ├── fat_stage1_5_exec-bios.Po │ │ │ │ ├── ffs_stage1_5_exec-bios.Po │ │ │ │ ├── jfs_stage1_5_exec-bios.Po │ │ │ │ ├── xfs_stage1_5_exec-bios.Po │ │ │ │ ├── e2fs_stage1_5_exec-bios.Po │ │ │ │ ├── pre_stage2_exec-common.Po │ │ │ │ ├── ufs2_stage1_5_exec-bios.Po │ │ │ │ ├── fat_stage1_5_exec-common.Po │ │ │ │ ├── ffs_stage1_5_exec-common.Po │ │ │ │ ├── jfs_stage1_5_exec-common.Po │ │ │ │ ├── minix_stage1_5_exec-bios.Po │ │ │ │ ├── pre_stage2_exec-cmdline.Po │ │ │ │ ├── vstafs_stage1_5_exec-bios.Po │ │ │ │ ├── xfs_stage1_5_exec-common.Po │ │ │ │ ├── e2fs_stage1_5_exec-common.Po │ │ │ │ ├── iso9660_stage1_5_exec-bios.Po │ │ │ │ ├── minix_stage1_5_exec-common.Po │ │ │ │ ├── pre_stage2_exec-md5.Po │ │ │ │ ├── reiserfs_stage1_5_exec-bios.Po │ │ │ │ ├── ufs2_stage1_5_exec-common.Po │ │ │ │ ├── e2fs_stage1_5_exec-stage1_5.Po │ │ │ │ ├── fat_stage1_5_exec-stage1_5.Po │ │ │ │ ├── ffs_stage1_5_exec-stage1_5.Po │ │ │ │ ├── iso9660_stage1_5_exec-common.Po │ │ │ │ ├── jfs_stage1_5_exec-stage1_5.Po │ │ │ │ ├── ufs2_stage1_5_exec-stage1_5.Po │ │ │ │ ├── vstafs_stage1_5_exec-common.Po │ │ │ │ ├── xfs_stage1_5_exec-stage1_5.Po │ │ │ │ ├── minix_stage1_5_exec-stage1_5.Po │ │ │ │ ├── reiserfs_stage1_5_exec-common.Po │ │ │ │ ├── vstafs_stage1_5_exec-stage1_5.Po │ │ │ │ ├── iso9660_stage1_5_exec-stage1_5.Po │ │ │ │ ├── pre_stage2_exec-stage2.Po │ │ │ │ ├── pre_stage2_exec-tparm.Po │ │ │ │ ├── pre_stage2_exec-console.Po │ │ │ │ ├── reiserfs_stage1_5_exec-stage1_5.Po │ │ │ │ ├── pre_stage2_exec-gunzip.Po │ │ │ │ ├── pre_stage2_exec-hercules.Po │ │ │ │ ├── pre_stage2_exec-smp-imps.Po │ │ │ │ ├── pre_stage2_exec-fsys_minix.Po │ │ │ │ ├── pre_stage2_exec-fsys_ext2fs.Po │ │ │ │ ├── minix_stage1_5_exec-fsys_minix.Po │ │ │ │ ├── pre_stage2_exec-char_io.Po │ │ │ │ ├── pre_stage2_exec-fsys_reiserfs.Po │ │ │ │ ├── pre_stage2_exec-serial.Po │ │ │ │ ├── e2fs_stage1_5_exec-fsys_ext2fs.Po │ │ │ │ ├── pre_stage2_exec-boot.Po │ │ │ │ ├── pre_stage2_exec-fsys_fat.Po │ │ │ │ ├── pre_stage2_exec-fsys_jfs.Po │ │ │ │ ├── pre_stage2_exec-fsys_xfs.Po │ │ │ │ ├── e2fs_stage1_5_exec-char_io.Po │ │ │ │ ├── fat_stage1_5_exec-char_io.Po │ │ │ │ ├── fat_stage1_5_exec-fsys_fat.Po │ │ │ │ ├── ffs_stage1_5_exec-char_io.Po │ │ │ │ ├── jfs_stage1_5_exec-char_io.Po │ │ │ │ ├── jfs_stage1_5_exec-fsys_jfs.Po │ │ │ │ ├── pre_stage2_exec-disk_io.Po │ │ │ │ ├── pre_stage2_exec-fsys_ufs2.Po │ │ │ │ ├── pre_stage2_exec-terminfo.Po │ │ │ │ ├── ufs2_stage1_5_exec-char_io.Po │ │ │ │ ├── xfs_stage1_5_exec-char_io.Po │ │ │ │ ├── xfs_stage1_5_exec-fsys_xfs.Po │ │ │ │ ├── fat_stage1_5_exec-disk_io.Po │ │ │ │ ├── ffs_stage1_5_exec-disk_io.Po │ │ │ │ ├── jfs_stage1_5_exec-disk_io.Po │ │ │ │ ├── minix_stage1_5_exec-char_io.Po │ │ │ │ ├── vstafs_stage1_5_exec-char_io.Po │ │ │ │ ├── xfs_stage1_5_exec-disk_io.Po │ │ │ │ ├── e2fs_stage1_5_exec-disk_io.Po │ │ │ │ ├── iso9660_stage1_5_exec-char_io.Po │ │ │ │ ├── minix_stage1_5_exec-disk_io.Po │ │ │ │ ├── ufs2_stage1_5_exec-disk_io.Po │ │ │ │ ├── ufs2_stage1_5_exec-fsys_ufs2.Po │ │ │ │ ├── pre_stage2_exec-fsys_vstafs.Po │ │ │ │ ├── reiserfs_stage1_5_exec-char_io.Po │ │ │ │ ├── vstafs_stage1_5_exec-disk_io.Po │ │ │ │ ├── iso9660_stage1_5_exec-disk_io.Po │ │ │ │ ├── pre_stage2_exec-fsys_iso9660.Po │ │ │ │ ├── reiserfs_stage1_5_exec-disk_io.Po │ │ │ │ ├── reiserfs_stage1_5_exec-fsys_reiserfs.Po │ │ │ │ ├── vstafs_stage1_5_exec-fsys_vstafs.Po │ │ │ │ ├── iso9660_stage1_5_exec-fsys_iso9660.Po │ │ │ │ ├── pre_stage2_exec-fsys_ffs.Po │ │ │ │ ├── ffs_stage1_5_exec-fsys_ffs.Po │ │ │ │ ├── pre_stage2_exec-builtins.Po │ │ │ │ ├── libgrub_a-common.Po │ │ │ │ ├── libgrub_a-cmdline.Po │ │ │ │ ├── libgrub_a-md5.Po │ │ │ │ ├── libgrub_a-stage2.Po │ │ │ │ ├── libgrub_a-tparm.Po │ │ │ │ ├── libgrub_a-gunzip.Po │ │ │ │ ├── libgrub_a-fsys_ext2fs.Po │ │ │ │ ├── libgrub_a-fsys_minix.Po │ │ │ │ ├── libgrub_a-serial.Po │ │ │ │ ├── libgrub_a-char_io.Po │ │ │ │ ├── libgrub_a-fsys_reiserfs.Po │ │ │ │ ├── libgrub_a-boot.Po │ │ │ │ ├── libgrub_a-fsys_fat.Po │ │ │ │ ├── libgrub_a-fsys_jfs.Po │ │ │ │ ├── libgrub_a-fsys_xfs.Po │ │ │ │ ├── libgrub_a-terminfo.Po │ │ │ │ ├── libgrub_a-fsys_ufs2.Po │ │ │ │ ├── libgrub_a-fsys_vstafs.Po │ │ │ │ └── libgrub_a-fsys_iso9660.Po │ │ │ ├── stage2_size.h │ │ │ ├── stage2 │ │ │ ├── start │ │ │ ├── pre_stage2 │ │ │ ├── start.exec │ │ │ ├── terminfo.c │ │ │ ├── e2fs_stage1_5 │ │ │ ├── fat_stage1_5 │ │ │ ├── ffs_stage1_5 │ │ │ ├── jfs_stage1_5 │ │ │ ├── minix_stage1_5 │ │ │ ├── start_eltorito │ │ │ ├── ufs2_stage1_5 │ │ │ ├── xfs_stage1_5 │ │ │ ├── iso9660_stage1_5 │ │ │ ├── pre_stage2.exec │ │ │ ├── stage2_eltorito │ │ │ ├── vstafs_stage1_5 │ │ │ ├── e2fs_stage1_5.exec │ │ │ ├── fat_stage1_5.exec │ │ │ ├── ffs_stage1_5.exec │ │ │ ├── jfs_stage1_5.exec │ │ │ ├── minix_stage1_5.exec │ │ │ ├── reiserfs_stage1_5 │ │ │ ├── start_eltorito.exec │ │ │ ├── ufs2_stage1_5.exec │ │ │ ├── xfs_stage1_5.exec │ │ │ ├── iso9660_stage1_5.exec │ │ │ ├── vstafs_stage1_5.exec │ │ │ ├── reiserfs_stage1_5.exec │ │ │ ├── boot.c.rej │ │ │ ├── tparm.h │ │ │ ├── hercules.h │ │ │ ├── nbi.h │ │ │ ├── pxeloader.S │ │ │ ├── md5.h │ │ │ ├── size_test │ │ │ ├── terminfo.h │ │ │ └── stage1_5.c │ │ ├── ChangeLog │ │ ├── grub │ │ │ ├── grub │ │ │ ├── stage1 │ │ │ ├── stage2 │ │ │ ├── boot.img │ │ │ └── Makefile.am │ │ ├── util │ │ │ ├── mbchk │ │ │ └── Makefile.am │ │ ├── stage1 │ │ │ ├── stage1 │ │ │ ├── stage1.exec │ │ │ └── Makefile.am │ │ ├── Makefile.am │ │ ├── BUGS │ │ ├── lib │ │ │ ├── Makefile.am │ │ │ ├── .deps │ │ │ │ ├── getopt.Po │ │ │ │ └── getopt1.Po │ │ │ └── device.h │ │ ├── README │ │ └── ChangeLog.rej │ ├── grub.txt │ └── vbe.txt ├── dbug.bat ├── kernel ├── vesa.c ├── vesa.h ├── boot.img ├── boot.imga ├── run.bat ├── include │ ├── bmp.h │ ├── page.h │ ├── kb.h │ ├── mutex.h │ ├── mouse.h │ ├── timer.h │ ├── kprintf.h │ ├── isr.h │ ├── syscall.h │ ├── interrupt.h │ ├── libcc.h │ ├── type.h │ ├── mm.h │ ├── kernel.inc │ ├── asm.h │ ├── string.h.t │ ├── screen.h │ └── task.h ├── grub_0.97-64.diff ├── MyUnderstandProject.udb ├── kmalloc.h ├── lib │ ├── include │ │ ├── sys │ │ │ ├── file.h │ │ │ ├── un.h │ │ │ ├── utsname.h │ │ │ ├── times.h │ │ │ ├── uio.h │ │ │ ├── select.h │ │ │ ├── ipc.h │ │ │ ├── timeb.h │ │ │ ├── msg.h │ │ │ ├── mman.h │ │ │ ├── sem.h │ │ │ ├── time.h │ │ │ └── resource.h │ │ ├── strings.h │ │ ├── inttypes.h │ │ ├── ctype.h │ │ ├── stddef.h │ │ ├── stdint.h │ │ ├── stdarg.h │ │ ├── signal.h │ │ ├── string.h │ │ └── gettimeofday.h │ ├── errno.c │ ├── signal.c │ ├── utsname.c │ ├── timeb.c │ ├── stat.c │ ├── strings.c │ ├── Makefile │ ├── gettimeofday.c │ └── ctype.c ├── vmalloc.c ├── vmalloc.h ├── malloc.h ├── .gitignore ├── gui │ ├── box.h │ ├── display.h │ ├── canvas.h │ ├── box.c │ └── display.c ├── syscall.c ├── vbe.c ├── libcc.c ├── malloc.c ├── eeos.ld ├── kmalloc.c ├── menu.lst ├── sem.h ├── timer.c ├── kernel.ld ├── vfs.c ├── eeos_pipe.h ├── LICENSE ├── interrupt.c ├── bochsrc.bxrc ├── bochsrcdbg.bxrc ├── vfs.h ├── bochsrc └── mouse.c ├── README.md ├── .gitignore └── LICENSE /evilos/README.md: -------------------------------------------------------------------------------- 1 | evilos 2 | ====== 3 | 4 | evilos 5 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stamp-h1: -------------------------------------------------------------------------------- 1 | timestamp for config.h 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/.deps/kernel-kernel.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-pci.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-md5.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/dbug.bat: -------------------------------------------------------------------------------- 1 | E:\Programe\Bochs-2.3.pre3\bochsdbg.exe -q -f bochsrcdbg.bxrc -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-3c509.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-3c595.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-3c90x.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-config.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-cs89x0.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-davicom.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-depca.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-eepro.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-eepro100.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-epic100.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-fa311.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-i82586.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-lance.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-main.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-misc.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-natsemi.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-ni5010.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-ns8390.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-otulip.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-rtl8139.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-sis900.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-sk_g16.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-smc9000.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-tiara.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-timer.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-tlan.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-tulip.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-w89c840.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-bios.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-boot.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-builtins.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-cmdline.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-common.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-console.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_fat.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_ffs.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_jfs.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_xfs.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-gunzip.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-hercules.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-serial.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-smp-imps.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-stage2.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-terminfo.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-tparm.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | evilos 2 | ====== 3 | rootntsd@gmail.com evilbinary 小E 4 | evilos 5 | -------------------------------------------------------------------------------- /evilos/kernel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/kernel -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-fsys_tftp.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/.deps/libdrivers_a-via-rhine.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_ext2fs.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_iso9660.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_minix.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_reiserfs.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_ufs2.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/diskless_exec-fsys_vstafs.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/stage2_size.h: -------------------------------------------------------------------------------- 1 | #define STAGE2_SIZE 108082 2 | -------------------------------------------------------------------------------- /evilos/vesa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/vesa.c -------------------------------------------------------------------------------- /evilos/vesa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/vesa.h -------------------------------------------------------------------------------- /evilos/boot.img: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/boot.img -------------------------------------------------------------------------------- /evilos/boot.imga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/boot.imga -------------------------------------------------------------------------------- /evilos/run.bat: -------------------------------------------------------------------------------- 1 | cd "E:\Programe\Bochs-2.3.pre3\evilos" 2 | ..\bochs -q -f bochsrc.bxrc 3 | -------------------------------------------------------------------------------- /evilos/include/bmp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/include/bmp.h -------------------------------------------------------------------------------- /evilos/include/page.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/include/page.h -------------------------------------------------------------------------------- /evilos/grub_0.97-64.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/grub_0.97-64.diff -------------------------------------------------------------------------------- /evilos/include/kb.h: -------------------------------------------------------------------------------- 1 | #ifndef KB_H 2 | #define KB_H 3 | 4 | void kb_install(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /evilos/include/mutex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/include/mutex.h -------------------------------------------------------------------------------- /evilos/MyUnderstandProject.udb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/MyUnderstandProject.udb -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/ChangeLog -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/grub/grub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/grub/grub -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/grub/stage1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/grub/stage1 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/grub/stage2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/grub/stage2 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/util/mbchk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/util/mbchk -------------------------------------------------------------------------------- /evilos/include/mouse.h: -------------------------------------------------------------------------------- 1 | #ifndef _MOUSE_H 2 | #define _MOUSE_H 3 | 4 | void do_mouse(void); 5 | void mouse_install(); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/help2man: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/docs/help2man -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/grub/boot.img: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/grub/boot.img -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage1/stage1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage1/stage1 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/stage2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/stage2 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/start: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/start -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/3c509.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/netboot/3c509.c -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/netboot/main.c -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/stamp-vti: -------------------------------------------------------------------------------- 1 | @set UPDATED 8 May 2005 2 | @set UPDATED-MONTH May 2005 3 | @set EDITION 0.97 4 | @set VERSION 0.97 5 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/smc9000.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/netboot/smc9000.c -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/smc9000.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/netboot/smc9000.h -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage1/stage1.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage1/stage1.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/pre_stage2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/pre_stage2 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/start.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/start.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/terminfo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/terminfo.c -------------------------------------------------------------------------------- /evilos/kmalloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _KMALLOC_H 2 | #define _KMALLOC_H 3 | 4 | void *kmalloc(unsigned long size); 5 | void kfree(void *addr); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 8 May 2005 2 | @set UPDATED-MONTH May 2005 3 | @set EDITION 0.97 4 | @set VERSION 0.97 5 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/e2fs_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/e2fs_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/fat_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/fat_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/ffs_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/ffs_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/jfs_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/jfs_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/minix_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/minix_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/start_eltorito: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/start_eltorito -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/ufs2_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/ufs2_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/xfs_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/xfs_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/iso9660_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/iso9660_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/pre_stage2.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/pre_stage2.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/stage2_eltorito: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/stage2_eltorito -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/vstafs_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/vstafs_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/e2fs_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/e2fs_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/fat_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/fat_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/ffs_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/ffs_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/jfs_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/jfs_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/minix_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/minix_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/reiserfs_stage1_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/reiserfs_stage1_5 -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/start_eltorito.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/start_eltorito.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/ufs2_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/ufs2_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/xfs_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/xfs_stage1_5.exec -------------------------------------------------------------------------------- /evilos/lib/include/sys/file.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_FILES_H 2 | #define _SYS_FILES_H 3 | 4 | #warning NOT PART OF THE STANDARD 5 | #include 6 | 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/iso9660_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/iso9660_stage1_5.exec -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/vstafs_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/vstafs_stage1_5.exec -------------------------------------------------------------------------------- /evilos/vmalloc.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | //implements 4 | void *vmalloc(unsigned long size){ 5 | 6 | } 7 | 8 | void vfree(void *addr){ 9 | 10 | } -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/reiserfs_stage1_5.exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilbinary/evilos/master/evilos/tools/grub-vbe-patch/stage2/reiserfs_stage1_5.exec -------------------------------------------------------------------------------- /evilos/lib/errno.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | int errno = 0; 4 | 5 | 6 | /** Put in here for libm. Seems to want it. */ 7 | int *__errno_location(void) 8 | { 9 | return &errno; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /evilos/include/timer.h: -------------------------------------------------------------------------------- 1 | #ifndef TIMER_H 2 | #define TIMER_H 3 | 4 | void timer_install(int); 5 | void dotimer(void); 6 | 7 | extern volatile unsigned long timer_ticks; 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /evilos/vmalloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _VMALLOC_H 2 | #define _VMALLOC_H 3 | 4 | #define VMALLOC_END 0xfa000000UL 5 | void *vmalloc(unsigned long size); 6 | void vfree(void *addr); 7 | 8 | 9 | 10 | #endif -------------------------------------------------------------------------------- /evilos/include/kprintf.h: -------------------------------------------------------------------------------- 1 | #ifndef KPRINTF_H 2 | #define KPRINTF_H 3 | 4 | 5 | enum KP_LEVEL {KPL_DUMP, KPL_PANIC}; 6 | 7 | void kprintf(enum KP_LEVEL, const char *fmt, ...); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /evilos/tools/grub.txt: -------------------------------------------------------------------------------- 1 | losetup /dev/loop0 boot.img 2 | mount /dev/loop0 /mnt/floppy/ 3 | ./grub-install --root-directory=/mnt/floppy/boot/grub/ /dev/loop0 4 | umount /mnt/floppy 5 | losetup -d /dev/loop0 6 | -------------------------------------------------------------------------------- /evilos/include/isr.h: -------------------------------------------------------------------------------- 1 | #ifndef ISR_H 2 | #define ISR_H 3 | 4 | void default_isr(void); 5 | 6 | #define VALID_ISR (46+2) 7 | 8 | 9 | extern void (*isr[(VALID_ISR)<<1])(void); 10 | 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /evilos/malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _MALLOC_H 2 | #define _MALLOC_H 3 | 4 | void *malloc(unsigned long size); 5 | void free(void *addr); 6 | void * realloc (void *block,unsigned long size); 7 | 8 | 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/Makefile.am: -------------------------------------------------------------------------------- 1 | # Do not change this order if you don't know what you are doing. 2 | AUTOMAKE_OPTIONS = 1.7 gnu 3 | SUBDIRS = netboot stage2 stage1 lib grub util docs 4 | EXTRA_DIST = BUGS MAINTENANCE 5 | -------------------------------------------------------------------------------- /evilos/lib/signal.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | 5 | int raise(int sig) 6 | { 7 | int rc; 8 | 9 | //if ( os_signal( sig, &rc ) == NOTIMPLEMENTED ) 10 | // os_freakout(); 11 | 12 | return rc; 13 | } 14 | 15 | 16 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/BUGS: -------------------------------------------------------------------------------- 1 | See the Bug Tracking System for GNU GRUB on Savannah. The URL is: 2 | 3 | http://savannah.gnu.org/bugs/?group_id=68 (without SSL) 4 | 5 | or 6 | 7 | https://savannah.gnu.org/bugs/?group_id=68 (with SSL) 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | 5 | # Libraries 6 | *.lib 7 | *.a 8 | 9 | # Shared objects (inc. Windows DLLs) 10 | *.dll 11 | *.so 12 | *.so.* 13 | *.dylib 14 | 15 | # Executables 16 | *.exe 17 | *.out 18 | *.app 19 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/lib/Makefile.am: -------------------------------------------------------------------------------- 1 | noinst_LIBRARIES = libcommon.a 2 | 3 | AM_CFLAGS = $(GRUB_CFLAGS) -I$(top_srcdir)/stage2 \ 4 | -I$(top_srcdir)/stage1 5 | 6 | libcommon_a_SOURCES = getopt.c getopt1.c getopt.h device.c device.h 7 | -------------------------------------------------------------------------------- /evilos/.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | 5 | # Libraries 6 | *.lib 7 | *.a 8 | 9 | # Shared objects (inc. Windows DLLs) 10 | *.dll 11 | *.so 12 | *.so.* 13 | *.dylib 14 | 15 | # Executables 16 | *.exe 17 | *.out 18 | *.app 19 | -------------------------------------------------------------------------------- /evilos/gui/box.h: -------------------------------------------------------------------------------- 1 | #ifndef _DIRTYRECT_BOX_H 2 | #define _DIRTYRECT_BOX_H 3 | 4 | #include "canvas.h" 5 | 6 | struct box { 7 | COMMON_HEADER 8 | pixel color; 9 | }; 10 | 11 | void box_draw(struct canvas *c,struct box *b,int x,int y); 12 | 13 | #endif -------------------------------------------------------------------------------- /evilos/lib/include/sys/un.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UN_H 2 | #define _SYS_UN_H 3 | 4 | typedef unsigned int sa_family_t; 5 | 6 | struct sockaddr_un 7 | { 8 | sa_family_t sun_family; 9 | char sun_path[]; 10 | }; 11 | 12 | 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /evilos/include/syscall.h: -------------------------------------------------------------------------------- 1 | #ifndef SYSCALL_H 2 | #define SYSCALL_H 3 | 4 | #define SYS_CALL 0x80 5 | extern void sys_call(void); 6 | extern void sys_print(void); 7 | 8 | void syscall_init(void); 9 | void syscall_isr(void); 10 | void syscall_exit(void); 11 | 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-bios.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-bios.o pre_stage2_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/syscall.c: -------------------------------------------------------------------------------- 1 | #include "syscall.h" 2 | 3 | void syscall_init(){ 4 | int i; 5 | for (i=46+2; i<256; ++i) 6 | isr_entry(i, (unsigned int)syscall_isr); 7 | 8 | } 9 | void syscall_isr(void){ 10 | kprintf(0,"syscall isr\n"); 11 | printf("syscall isr\n"); 12 | } 13 | void syscall_exit(void){ 14 | 15 | } 16 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/fat_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | fat_stage1_5_exec-bios.o fat_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ffs_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | ffs_stage1_5_exec-bios.o ffs_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/jfs_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | jfs_stage1_5_exec-bios.o jfs_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/xfs_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | xfs_stage1_5_exec-bios.o xfs_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/e2fs_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | e2fs_stage1_5_exec-bios.o e2fs_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-common.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-common.o pre_stage2_exec-common.o: common.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ufs2_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | ufs2_stage1_5_exec-bios.o ufs2_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/fat_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | fat_stage1_5_exec-common.o fat_stage1_5_exec-common.o: common.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ffs_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | ffs_stage1_5_exec-common.o ffs_stage1_5_exec-common.o: common.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/jfs_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | jfs_stage1_5_exec-common.o jfs_stage1_5_exec-common.o: common.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/minix_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | minix_stage1_5_exec-bios.o minix_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-cmdline.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-cmdline.o pre_stage2_exec-cmdline.o: cmdline.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/vstafs_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | vstafs_stage1_5_exec-bios.o vstafs_stage1_5_exec-bios.o: bios.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/xfs_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | xfs_stage1_5_exec-common.o xfs_stage1_5_exec-common.o: common.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/include/interrupt.h: -------------------------------------------------------------------------------- 1 | #ifndef INTERRUPT_H 2 | #define INTERRUPT_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | void isr_entry(int index, unsigned long long offset); 9 | void idt_install(void); 10 | void pic_install(void); 11 | void gdt_install(void); 12 | 13 | #endif // INTERRUPT_H 14 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/e2fs_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | e2fs_stage1_5_exec-common.o e2fs_stage1_5_exec-common.o: common.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/iso9660_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | iso9660_stage1_5_exec-bios.o iso9660_stage1_5_exec-bios.o: bios.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/minix_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | minix_stage1_5_exec-common.o minix_stage1_5_exec-common.o: common.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-md5.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-md5.o pre_stage2_exec-md5.o: md5.c md5.h shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | md5.h: 5 | 6 | shared.h: 7 | 8 | ../config.h: 9 | 10 | ../stage1/stage1.h: 11 | 12 | mb_header.h: 13 | 14 | mb_info.h: 15 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/reiserfs_stage1_5_exec-bios.Po: -------------------------------------------------------------------------------- 1 | reiserfs_stage1_5_exec-bios.o reiserfs_stage1_5_exec-bios.o: bios.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ufs2_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | ufs2_stage1_5_exec-common.o ufs2_stage1_5_exec-common.o: common.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/e2fs_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | e2fs_stage1_5_exec-stage1_5.o e2fs_stage1_5_exec-stage1_5.o: stage1_5.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/fat_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | fat_stage1_5_exec-stage1_5.o fat_stage1_5_exec-stage1_5.o: stage1_5.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ffs_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | ffs_stage1_5_exec-stage1_5.o ffs_stage1_5_exec-stage1_5.o: stage1_5.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/iso9660_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | iso9660_stage1_5_exec-common.o iso9660_stage1_5_exec-common.o: common.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/jfs_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | jfs_stage1_5_exec-stage1_5.o jfs_stage1_5_exec-stage1_5.o: stage1_5.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ufs2_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | ufs2_stage1_5_exec-stage1_5.o ufs2_stage1_5_exec-stage1_5.o: stage1_5.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/vstafs_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | vstafs_stage1_5_exec-common.o vstafs_stage1_5_exec-common.o: common.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/xfs_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | xfs_stage1_5_exec-stage1_5.o xfs_stage1_5_exec-stage1_5.o: stage1_5.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/minix_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | minix_stage1_5_exec-stage1_5.o minix_stage1_5_exec-stage1_5.o: \ 2 | stage1_5.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/reiserfs_stage1_5_exec-common.Po: -------------------------------------------------------------------------------- 1 | reiserfs_stage1_5_exec-common.o reiserfs_stage1_5_exec-common.o: \ 2 | common.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/vstafs_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | vstafs_stage1_5_exec-stage1_5.o vstafs_stage1_5_exec-stage1_5.o: \ 2 | stage1_5.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/iso9660_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | iso9660_stage1_5_exec-stage1_5.o iso9660_stage1_5_exec-stage1_5.o: \ 2 | stage1_5.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-stage2.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-stage2.o pre_stage2_exec-stage2.o: stage2.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | 14 | term.h: 15 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-tparm.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-tparm.o pre_stage2_exec-tparm.o: tparm.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h tparm.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | 14 | tparm.h: 15 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-console.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-console.o pre_stage2_exec-console.o: console.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | 14 | term.h: 15 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/reiserfs_stage1_5_exec-stage1_5.Po: -------------------------------------------------------------------------------- 1 | reiserfs_stage1_5_exec-stage1_5.o reiserfs_stage1_5_exec-stage1_5.o: \ 2 | stage1_5.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h 3 | 4 | shared.h: 5 | 6 | ../config.h: 7 | 8 | ../stage1/stage1.h: 9 | 10 | mb_header.h: 11 | 12 | mb_info.h: 13 | -------------------------------------------------------------------------------- /evilos/lib/utsname.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | 6 | int uname(struct utsname *nm) 7 | { 8 | static struct utsname temp = 9 | { 10 | "libUNIX", 11 | "nodename", 12 | "development", 13 | "version", 14 | "machine" 15 | }; 16 | 17 | memcpy( nm, &temp, sizeof(struct utsname) ); 18 | return 0; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /evilos/include/libcc.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBCC_H 2 | #define LIBCC_H 3 | 4 | #define NULL ((void *)0) 5 | 6 | void bcopy(const void *src, void *dest, unsigned int n); 7 | void bzero(void *dest, unsigned int n); 8 | 9 | 10 | #define assert(s) do { if (! (s)) { \ 11 | kprintf(KPL_PANIC, "ASSERT: %s, %d", __FILE__, __LINE__); \ 12 | halt(); \ 13 | }} while (0) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-gunzip.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-gunzip.o pre_stage2_exec-gunzip.o: gunzip.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-hercules.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-hercules.o pre_stage2_exec-hercules.o: hercules.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h \ 3 | hercules.h term.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | hercules.h: 16 | 17 | term.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-smp-imps.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-smp-imps.o pre_stage2_exec-smp-imps.o: smp-imps.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h apic.h \ 3 | smp-imps.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | apic.h: 16 | 17 | smp-imps.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_minix.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_minix.o pre_stage2_exec-fsys_minix.o: fsys_minix.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_ext2fs.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_ext2fs.o pre_stage2_exec-fsys_ext2fs.o: \ 2 | fsys_ext2fs.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/minix_stage1_5_exec-fsys_minix.Po: -------------------------------------------------------------------------------- 1 | minix_stage1_5_exec-fsys_minix.o minix_stage1_5_exec-fsys_minix.o: \ 2 | fsys_minix.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-char_io.o pre_stage2_exec-char_io.o: char_io.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h hercules.h \ 3 | serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_reiserfs.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_reiserfs.o pre_stage2_exec-fsys_reiserfs.o: \ 2 | fsys_reiserfs.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-serial.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-serial.o pre_stage2_exec-serial.o: serial.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h serial.h term.h \ 3 | terminfo.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | serial.h: 16 | 17 | term.h: 18 | 19 | terminfo.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/e2fs_stage1_5_exec-fsys_ext2fs.Po: -------------------------------------------------------------------------------- 1 | e2fs_stage1_5_exec-fsys_ext2fs.o e2fs_stage1_5_exec-fsys_ext2fs.o: \ 2 | fsys_ext2fs.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-boot.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-boot.o pre_stage2_exec-boot.o: boot.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h freebsd.h \ 3 | imgact_aout.h i386-elf.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | freebsd.h: 16 | 17 | imgact_aout.h: 18 | 19 | i386-elf.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_fat.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_fat.o pre_stage2_exec-fsys_fat.o: fsys_fat.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h fat.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | fat.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_jfs.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_jfs.o pre_stage2_exec-fsys_jfs.o: fsys_jfs.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h jfs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | jfs.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_xfs.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_xfs.o pre_stage2_exec-fsys_xfs.o: fsys_xfs.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h xfs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | xfs.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/e2fs_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | e2fs_stage1_5_exec-char_io.o e2fs_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/fat_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | fat_stage1_5_exec-char_io.o fat_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/fat_stage1_5_exec-fsys_fat.Po: -------------------------------------------------------------------------------- 1 | fat_stage1_5_exec-fsys_fat.o fat_stage1_5_exec-fsys_fat.o: fsys_fat.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h fat.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | fat.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ffs_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | ffs_stage1_5_exec-char_io.o ffs_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/jfs_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | jfs_stage1_5_exec-char_io.o jfs_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/jfs_stage1_5_exec-fsys_jfs.Po: -------------------------------------------------------------------------------- 1 | jfs_stage1_5_exec-fsys_jfs.o jfs_stage1_5_exec-fsys_jfs.o: fsys_jfs.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h jfs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | jfs.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-disk_io.o pre_stage2_exec-disk_io.o: disk_io.c shared.h \ 2 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_ufs2.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_ufs2.o pre_stage2_exec-fsys_ufs2.o: fsys_ufs2.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h ufs2.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | ufs2.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-terminfo.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-terminfo.o pre_stage2_exec-terminfo.o: terminfo.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h \ 3 | terminfo.h tparm.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | terminfo.h: 16 | 17 | tparm.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ufs2_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | ufs2_stage1_5_exec-char_io.o ufs2_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/xfs_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | xfs_stage1_5_exec-char_io.o xfs_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/xfs_stage1_5_exec-fsys_xfs.Po: -------------------------------------------------------------------------------- 1 | xfs_stage1_5_exec-fsys_xfs.o xfs_stage1_5_exec-fsys_xfs.o: fsys_xfs.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h xfs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | xfs.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/fat_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | fat_stage1_5_exec-disk_io.o fat_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ffs_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | ffs_stage1_5_exec-disk_io.o ffs_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/jfs_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | jfs_stage1_5_exec-disk_io.o jfs_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/minix_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | minix_stage1_5_exec-char_io.o minix_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/vstafs_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | vstafs_stage1_5_exec-char_io.o vstafs_stage1_5_exec-char_io.o: char_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h term.h \ 3 | hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/xfs_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | xfs_stage1_5_exec-disk_io.o xfs_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/e2fs_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | e2fs_stage1_5_exec-disk_io.o e2fs_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/iso9660_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | iso9660_stage1_5_exec-char_io.o iso9660_stage1_5_exec-char_io.o: \ 2 | char_io.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h \ 3 | term.h hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/minix_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | minix_stage1_5_exec-disk_io.o minix_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ufs2_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | ufs2_stage1_5_exec-disk_io.o ufs2_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ufs2_stage1_5_exec-fsys_ufs2.Po: -------------------------------------------------------------------------------- 1 | ufs2_stage1_5_exec-fsys_ufs2.o ufs2_stage1_5_exec-fsys_ufs2.o: \ 2 | fsys_ufs2.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h ufs2.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | ufs2.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/util/Makefile.am: -------------------------------------------------------------------------------- 1 | bin_PROGRAMS = mbchk 2 | sbin_SCRIPTS = grub-install grub-md5-crypt grub-terminfo \ 3 | grub-set-default 4 | noinst_SCRIPTS = grub-image mkbimage 5 | 6 | EXTRA_DIST = mkbimage 7 | 8 | # XXX: Need to search for a header file in docs, because of multiboot.h. 9 | AM_CFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/docs 10 | 11 | mbchk_SOURCES = mbchk.c 12 | mbchk_LDADD = ../lib/libcommon.a 13 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_vstafs.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_vstafs.o pre_stage2_exec-fsys_vstafs.o: \ 2 | fsys_vstafs.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h vstafs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | vstafs.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/reiserfs_stage1_5_exec-char_io.Po: -------------------------------------------------------------------------------- 1 | reiserfs_stage1_5_exec-char_io.o reiserfs_stage1_5_exec-char_io.o: \ 2 | char_io.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h \ 3 | term.h hercules.h serial.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | term.h: 16 | 17 | hercules.h: 18 | 19 | serial.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/vstafs_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | vstafs_stage1_5_exec-disk_io.o vstafs_stage1_5_exec-disk_io.o: disk_io.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/iso9660_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | iso9660_stage1_5_exec-disk_io.o iso9660_stage1_5_exec-disk_io.o: \ 2 | disk_io.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h \ 3 | filesys.h pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_iso9660.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_iso9660.o pre_stage2_exec-fsys_iso9660.o: \ 2 | fsys_iso9660.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h iso9660.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | iso9660.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/reiserfs_stage1_5_exec-disk_io.Po: -------------------------------------------------------------------------------- 1 | reiserfs_stage1_5_exec-disk_io.o reiserfs_stage1_5_exec-disk_io.o: \ 2 | disk_io.c shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h \ 3 | filesys.h pc_slice.h freebsd.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | freebsd.h: 20 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/reiserfs_stage1_5_exec-fsys_reiserfs.Po: -------------------------------------------------------------------------------- 1 | reiserfs_stage1_5_exec-fsys_reiserfs.o \ 2 | reiserfs_stage1_5_exec-fsys_reiserfs.o: fsys_reiserfs.c shared.h \ 3 | ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 4 | pc_slice.h 5 | 6 | shared.h: 7 | 8 | ../config.h: 9 | 10 | ../stage1/stage1.h: 11 | 12 | mb_header.h: 13 | 14 | mb_info.h: 15 | 16 | filesys.h: 17 | 18 | pc_slice.h: 19 | -------------------------------------------------------------------------------- /evilos/vbe.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | extern multiboot_info_t *multiboot_info; 5 | 6 | vbe_mode_t* get_vbe_mode_info(){ 7 | return (vbe_mode_t*)multiboot_info->vbe_mode_info; 8 | } 9 | int get_vbe_mode(){ 10 | return multiboot_info->vbe_mode; 11 | } 12 | vbe_controller_t * get_vbe_controller_info(){ 13 | return (vbe_controller_t *)multiboot_info->vbe_control_info; 14 | } 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/utsname.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UTSNAME_H 2 | #define _SYS_UTSNAME_H 3 | 4 | 5 | 6 | struct utsname 7 | { 8 | char *sysname; 9 | char *nodename; 10 | char *release; 11 | char *version; 12 | char *machine; 13 | }; 14 | 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | 22 | int uname(struct utsname *); 23 | 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/vstafs_stage1_5_exec-fsys_vstafs.Po: -------------------------------------------------------------------------------- 1 | vstafs_stage1_5_exec-fsys_vstafs.o vstafs_stage1_5_exec-fsys_vstafs.o: \ 2 | fsys_vstafs.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h vstafs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | vstafs.h: 20 | -------------------------------------------------------------------------------- /evilos/libcc.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* result is currect, even when both area overlap */ 4 | void 5 | bcopy(const void *src, void *dest, unsigned int n) { 6 | const char *s = (const char *)src; 7 | char *d = (char *)dest; 8 | if (s <= d) 9 | for (; n>0; --n) 10 | d[n-1] = s[n-1]; 11 | else 12 | for (; n>0; --n) 13 | *d++ = *s++; 14 | } 15 | 16 | void 17 | bzero(void *dest, unsigned int n) { 18 | memset(dest, 0, n); 19 | } 20 | 21 | -------------------------------------------------------------------------------- /evilos/malloc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | //implements 4 | void *malloc(unsigned long size){ 5 | return kmalloc(size); 6 | } 7 | 8 | void free(void *addr){ 9 | kfree(addr); 10 | } 11 | void *realloc (void *block,unsigned long size){ 12 | void *p; 13 | //vesa_printf(0,300,"realloc %x",block); 14 | //for(;;); 15 | size+=mem_get_size(block); 16 | p=malloc(size); 17 | memcpy(p,block); 18 | free(block); 19 | return p; 20 | } 21 | -------------------------------------------------------------------------------- /evilos/gui/display.h: -------------------------------------------------------------------------------- 1 | #ifndef _DISPLAY_H 2 | #define _DISPLAY_H 3 | 4 | #include "canvas.h" 5 | 6 | struct gdi { 7 | draw_func flip; 8 | void *object; 9 | pixel *buffer; 10 | int width; 11 | int height; 12 | int pitch; 13 | }; 14 | 15 | struct gdi_object { 16 | //HWND wnd; 17 | //HDC dc; 18 | //BITMAPINFO bi; 19 | //RGBQUAD pal[2]; 20 | }; 21 | 22 | void gdi_create(struct gdi *g,int w,int h); 23 | void gdi_release(struct gdi *g); 24 | 25 | 26 | #endif -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/iso9660_stage1_5_exec-fsys_iso9660.Po: -------------------------------------------------------------------------------- 1 | iso9660_stage1_5_exec-fsys_iso9660.o iso9660_stage1_5_exec-fsys_iso9660.o: \ 2 | fsys_iso9660.c shared.h ../config.h ../stage1/stage1.h mb_header.h \ 3 | mb_info.h filesys.h pc_slice.h iso9660.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | iso9660.h: 20 | -------------------------------------------------------------------------------- /evilos/include/type.h: -------------------------------------------------------------------------------- 1 | #ifndef _TYPE_H 2 | #define _TYPE_H 3 | 4 | typedef char e8; 5 | typedef short e16; 6 | typedef int e32; 7 | typedef double e64; 8 | typedef int ebool; 9 | typedef unsigned char u8; 10 | typedef unsigned short u16; 11 | typedef unsigned int u32; 12 | typedef unsigned long long u64; 13 | 14 | typedef void (*function_handl)(); 15 | 16 | #define NULL 0 17 | 18 | struct point_t{ 19 | e32 x; 20 | e32 y; 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/times.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIMES_H 2 | #define _SYS_TIMES_H 3 | 4 | 5 | #include 6 | 7 | 8 | struct tms 9 | { 10 | clock_t tms_utime; 11 | clock_t tms_stime; 12 | clock_t tms_cutime; 13 | clock_t tms_cstime; 14 | }; 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | 22 | clock_t times(struct tms *); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | 29 | 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/uio.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UIO_H 2 | #define _SYS_UIO_H 3 | 4 | 5 | #include 6 | 7 | struct iovec 8 | { 9 | void *iov_base; 10 | size_t iov_len; 11 | }; 12 | 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | 19 | ssize_t readv(int, const struct iovec *, int); 20 | ssize_t writev(int, const struct iovec *, int); 21 | 22 | 23 | #ifdef __cplusplus 24 | } 25 | #endif 26 | 27 | 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /evilos/eeos.ld: -------------------------------------------------------------------------------- 1 | ENTRY (_start) 2 | 3 | SECTIONS 4 | { 5 | . = 0x00100000; 6 | 7 | .text ALIGN (0x1000) : 8 | { 9 | *(.text) 10 | } 11 | 12 | .rodata ALIGN (0x1000) : 13 | { 14 | *(.rodata) 15 | } 16 | 17 | .data ALIGN (0x1000) : 18 | { 19 | *(.data) 20 | } 21 | 22 | .bss ALIGN (0x1000) : 23 | { 24 | _sbss = .; 25 | *(COMMON) 26 | *(.bss) 27 | _ebss = .; 28 | } 29 | } -------------------------------------------------------------------------------- /evilos/include/mm.h: -------------------------------------------------------------------------------- 1 | #ifndef _MM_H 2 | #define _MM_H 3 | 4 | #define NR_BLOCKS 10240 5 | #define NULL 0 6 | #define MEM_FREE 1 7 | #define MEM_USED 0x10 8 | #define MEM_LOCK 3 9 | #define MEM_SHARE 4 10 | 11 | struct mem_block_t{ 12 | unsigned long addr; 13 | unsigned long size; 14 | int type; 15 | struct mem_block_t * next; 16 | }; 17 | 18 | void mem_init(); 19 | void* mem_malloc(unsigned long size); 20 | void mem_free(void* size); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/select.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_SELECT_H 2 | #define _SYS_SELECT_H 3 | 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | 10 | int pselect(int, fd_set *restrict, fd_set *restrict, fd_set *restrict, 11 | const struct timespec *restrict, const sigset_t *restrict); 12 | 13 | int select(int, fd_set *restrict, fd_set *restrict, fd_set *restrict, 14 | struct timeval *restrict); 15 | 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage1/Makefile.am: -------------------------------------------------------------------------------- 1 | pkglibdir = $(libdir)/$(PACKAGE)/$(host_cpu)-$(host_vendor) 2 | nodist_pkglib_DATA = stage1 3 | 4 | CLEANFILES = $(nodist_pkglib_DATA) 5 | 6 | # We can't use builtins or standard includes. 7 | AM_CCASFLAGS = $(STAGE1_CFLAGS) -fno-builtin -nostdinc 8 | LDFLAGS = -nostdlib -Wl,-N,-Ttext,7C00 9 | 10 | noinst_PROGRAMS = stage1.exec 11 | stage1_exec_SOURCES = stage1.S stage1.h 12 | 13 | SUFFIXES = .exec 14 | .exec: 15 | $(OBJCOPY) -O binary $< $@ 16 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/src2texi: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Convert a source file to a TeXinfo file. Stolen from glibc. 4 | # 5 | # Usage: src2texi SRCDIR SRC TEXI 6 | 7 | dir=$1 8 | src=`basename $2` 9 | texi=`basename $3` 10 | 11 | sed -e 's,[{}],@&,g' \ 12 | -e 's,/\*\(@.*\)\*/,\1,g' \ 13 | -e 's,/\* *,/* @r{,g' -e 's, *\*/,} */,' \ 14 | -e 's/\(@[a-z][a-z]*\)@{\([^}]*\)@}/\1{\2}/g' \ 15 | ${dir}/${src} | expand > ${texi}.new 16 | mv -f ${texi}.new ${dir}/${texi} 17 | -------------------------------------------------------------------------------- /evilos/lib/timeb.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | 5 | int ftime(struct timeb *fb ) 6 | { 7 | int rc; 8 | time_t sec; 9 | time_t milli; 10 | 11 | /*if ( os_system_time( &sec, &milli, &rc ) == NOTIMPLEMENTED ) 12 | os_freakout(); 13 | 14 | if ( rc != 0 ) return -1; 15 | 16 | fb->time = sec; 17 | fb->millitm = milli; 18 | 19 | /// \todo Complete timezone and dstflag correctly. 20 | fb->timezone = 0; 21 | fb->dstflag = 0; 22 | */ 23 | return 0; 24 | } 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/boot.c.rej: -------------------------------------------------------------------------------- 1 | *************** 2 | *** 87,99 **** 3 | } 4 | type = KERNEL_TYPE_MULTIBOOT; 5 | str2 = "Multiboot"; 6 | - 7 | - /* Check to see if the kernel wants a video mode */ 8 | - if ( (flags & MULTIBOOT_VIDEO_MODE) != 0 ) 9 | - { 10 | - // ... give it to the kernel 11 | - } 12 | - 13 | break; 14 | } 15 | } 16 | --- 87,92 ---- 17 | } 18 | type = KERNEL_TYPE_MULTIBOOT; 19 | str2 = "Multiboot"; 20 | break; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /evilos/kmalloc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | void *kmalloc(unsigned long size){ 6 | void *addr=NULL; 7 | size=((size+4096)/4096)*4096; 8 | addr= mem_malloc(size); 9 | /*printf("size:%d addr:%x\n",size,addr); 10 | addr= mem_malloc(size); 11 | printf("size:%d addr:%x\n",size,addr); 12 | addr= mem_malloc(size); 13 | printf("size:%d addr:%x\n",size,addr);*/ 14 | memset(addr,0,size); 15 | return addr; 16 | } 17 | void kfree(void *addr){ 18 | mem_free(addr); 19 | //vesa_printf(0,300,"kfree %x",addr); 20 | } 21 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-fsys_ffs.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-fsys_ffs.o pre_stage2_exec-fsys_ffs.o: fsys_ffs.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h defs.h disk_inode.h disk_inode_ffs.h dir.h fs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | defs.h: 20 | 21 | disk_inode.h: 22 | 23 | disk_inode_ffs.h: 24 | 25 | dir.h: 26 | 27 | fs.h: 28 | -------------------------------------------------------------------------------- /evilos/lib/stat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int mkdir(const char *dirname, mode_t mode) 5 | { 6 | int rc; 7 | 8 | /*if ( os_mkdir( dirname, mode, &rc ) == NOTIMPLEMENTED ) 9 | os_freakout(); 10 | */ 11 | return rc; 12 | } 13 | 14 | 15 | int fstat(int fd, struct stat *st) 16 | { 17 | int rc; 18 | /*FILE* file = support_retrieve_file( fd ); 19 | if ( file == NULL ) return -1; 20 | 21 | if ( os_stat( file->data, st, &rc ) == NOTIMPLEMENTED ) 22 | os_freakout(); 23 | */ 24 | return rc; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/ffs_stage1_5_exec-fsys_ffs.Po: -------------------------------------------------------------------------------- 1 | ffs_stage1_5_exec-fsys_ffs.o ffs_stage1_5_exec-fsys_ffs.o: fsys_ffs.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h defs.h disk_inode.h disk_inode_ffs.h dir.h fs.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | defs.h: 20 | 21 | disk_inode.h: 22 | 23 | disk_inode_ffs.h: 24 | 25 | dir.h: 26 | 27 | fs.h: 28 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/pre_stage2_exec-builtins.Po: -------------------------------------------------------------------------------- 1 | pre_stage2_exec-builtins.o pre_stage2_exec-builtins.o: builtins.c \ 2 | shared.h ../config.h ../stage1/stage1.h mb_header.h mb_info.h filesys.h \ 3 | pc_slice.h term.h serial.h terminfo.h apic.h smp-imps.h md5.h 4 | 5 | shared.h: 6 | 7 | ../config.h: 8 | 9 | ../stage1/stage1.h: 10 | 11 | mb_header.h: 12 | 13 | mb_info.h: 14 | 15 | filesys.h: 16 | 17 | pc_slice.h: 18 | 19 | term.h: 20 | 21 | serial.h: 22 | 23 | terminfo.h: 24 | 25 | apic.h: 26 | 27 | smp-imps.h: 28 | 29 | md5.h: 30 | -------------------------------------------------------------------------------- /evilos/menu.lst: -------------------------------------------------------------------------------- 1 | # Boot automatically after 30 secs. 2 | timeout 1 3 | # By default, boot the first entry. 4 | default 1 5 | 6 | # Fallback to the second entry. 7 | fallback 1 8 | 9 | # Set the color ;) 10 | color light-green/black blink-red/black 11 | 12 | # For booting EvilBinary OS 13 | title EvilBinary OS 14 | root (fd0) 15 | kernel /boot/kernel 16 | #vbeprobe 0x142 17 | vbeset 0x142 18 | #testvbe 0x142 19 | boot 20 | # For booting EvilBinary OS without gui 21 | title EvilBinary OS without gui 22 | root (fd0) 23 | kernel /boot/kernel 24 | boot 25 | -------------------------------------------------------------------------------- /evilos/lib/include/strings.h: -------------------------------------------------------------------------------- 1 | #ifndef _STRINGS_H 2 | #define _STRINGS_H 3 | 4 | 5 | #include 6 | 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | int bcmp(const void *, const void *, size_t); 13 | void bcopy(const void *, void *, size_t); 14 | void bzero(void *, size_t); 15 | int ffs(int); 16 | char *index(const char *, int); 17 | char *rindex(const char *, int); 18 | int strcasecmp(const char *, const char *); 19 | int strncasecmp(const char *, const char *, size_t); 20 | 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /evilos/lib/include/inttypes.h: -------------------------------------------------------------------------------- 1 | #ifndef _INTTYPES_H 2 | #define _INTTYPES_H 3 | 4 | 5 | 6 | typedef unsigned int u_int; 7 | 8 | typedef char int8_t; 9 | typedef short int16_t; 10 | typedef int int32_t; 11 | typedef long int int64_t; 12 | 13 | #ifndef STDINT_H 14 | #define STDINT_H 15 | typedef unsigned char uint8_t; 16 | typedef unsigned short uint16_t; 17 | typedef unsigned int uint32_t; 18 | typedef unsigned long int uint64_t; 19 | #endif 20 | 21 | typedef long int intptr_t; 22 | typedef unsigned long int uintptr_t; 23 | 24 | 25 | 26 | 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /evilos/sem.h: -------------------------------------------------------------------------------- 1 | #ifndef _SEM_H 2 | #define _SEM_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | struct task_t { 9 | int data; 10 | struct task_struct *task; 11 | SIMPLEQ_ENTRY(task_t) entries; 12 | }; 13 | 14 | // declare type 15 | SIMPLEQ_HEAD(taskqueue_t, task_t); 16 | // define variant 17 | 18 | struct semaphore_t{ 19 | e32 count; 20 | e32 mutex; 21 | struct taskqueue_t wq; 22 | }; 23 | 24 | void sem_init(struct semaphore_t* sem,int val); 25 | void sem_wait(struct semaphore_t* sem); 26 | void sem_post(struct semaphore_t* sem); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /evilos/lib/include/ctype.h: -------------------------------------------------------------------------------- 1 | #ifndef _CTYPE_H 2 | #define _CTYPE_H 3 | 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | int isalnum(int); 10 | int isalpha(int); 11 | int isascii(int); 12 | int iscntrl(int); 13 | int isdigit(int); 14 | int isgraph(int); 15 | int islower(int); 16 | int isprint(int); 17 | int ispunct(int); 18 | int isspace(int); 19 | int isupper(int); 20 | int isxdigit(int); 21 | int toascii(int); 22 | int tolower(int); 23 | int toupper(int); 24 | 25 | 26 | 27 | #define _toupper(i) toupper(i); 28 | #define _tolower(i) tolower(i); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | 35 | #endif 36 | 37 | 38 | -------------------------------------------------------------------------------- /evilos/include/kernel.inc: -------------------------------------------------------------------------------- 1 | .set CODE_SEL, 0x08 # code segment selector in kernel mode 2 | .set DATA_SEL, 0x10 # data segment selector in kernel mode 3 | .set IDT_ADDR, 0x80000 # IDT start address 4 | .set IDT_SIZE, (256*8) # IDT has fixed length 5 | .set GDT_ADDR, (IDT_ADDR+IDT_SIZE) 6 | # GDT starts after IDT 7 | .set GDT_ENTRIES, 5 # GDT has 5 descriptors 8 | # null descriptor 9 | # cs segment descriptor for kernel 10 | # ds segment descriptor for kernel 11 | # current process tss 12 | # current process ldt 13 | .set GDT_SIZE, (8*GDT_ENTRIES) 14 | # GDT length 15 | .set KERNEL_SECT, 72 # Kernel lenght, counted by sectors 16 | .set STACK_BOT, 0xa0000 # stack starts at 640K 17 | 18 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/grub/Makefile.am: -------------------------------------------------------------------------------- 1 | sbin_PROGRAMS = grub 2 | 3 | if SERIAL_SPEED_SIMULATION 4 | SERIAL_FLAGS = -DSUPPORT_SERIAL=1 -DSIMULATE_SLOWNESS_OF_SERIAL=1 5 | else 6 | SERIAL_FLAGS = -DSUPPORT_SERIAL=1 7 | endif 8 | 9 | AM_CPPFLAGS = -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 \ 10 | -DFSYS_ISO9660=1 -DFSYS_JFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 \ 11 | -DFSYS_UFS2=1 -DFSYS_VSTAFS=1 -DFSYS_XFS=1 \ 12 | -DUSE_MD5_PASSWORDS=1 -DSUPPORT_HERCULES=1 \ 13 | $(SERIAL_FLAGS) -I$(top_srcdir)/stage2 \ 14 | -I$(top_srcdir)/stage1 -I$(top_srcdir)/lib 15 | 16 | AM_CFLAGS = $(GRUB_CFLAGS) 17 | 18 | grub_SOURCES = main.c asmstub.c 19 | grub_LDADD = ../stage2/libgrub.a ../lib/libcommon.a $(GRUB_LIBS) 20 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/ipc.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_IPC_H 2 | #define _SYS_IPC_H 3 | 4 | 5 | #include 6 | 7 | #ifndef _HAVE_IPC_PERM 8 | #define _HAVE_IPC_PERM 9 | struct ipc_perm 10 | { 11 | uid_t uid; 12 | gid_t gid; 13 | uid_t cuid; 14 | gid_t cgid; 15 | mode_t mode; 16 | }; 17 | #endif 18 | 19 | 20 | 21 | 22 | #define IPC_CREAT 1 23 | #define IPC_EXCL 2 24 | #define IPC_NOWAIT 4 25 | 26 | 27 | #define IPC_PRIVATE 8 28 | 29 | 30 | #define IPC_RMID 1 31 | #define IPC_SET 2 32 | #define IPC_STAT 4 33 | 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | 39 | key_t ftok(const char *, int); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | 46 | #endif 47 | 48 | 49 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/timeb.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIMEB_H 2 | #define _SYS_TIMEB_H 3 | 4 | #include 5 | 6 | #ifndef _HAVE_TIME_T 7 | #define _HAVE_TIME_T 8 | typedef int32_t time_t; 9 | #endif 10 | 11 | 12 | 13 | struct timeb 14 | { 15 | time_t time; // the seconds portion of the current time 16 | unsigned short millitm; // the milliseconds portion of the current time 17 | short timezone; // the local timezone in minutes west of Greenwich 18 | short dstflag; // TRUE if Daylight Savings Time is in effect 19 | }; 20 | 21 | 22 | 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | int ftime(struct timeb *); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /evilos/gui/canvas.h: -------------------------------------------------------------------------------- 1 | #ifndef _DIRTYRECT_CANVAS_H 2 | #define _DIRTYRECT_CANVAS_H 3 | 4 | #define CANVAS_BLOCK_WIDTH 64 5 | #define CANVAS_BLOCK_HEIGHT 32 6 | #define DIRTY (~0) 7 | 8 | typedef unsigned short pixel; 9 | typedef void (*draw_func)(pixel *ptr,int pitch,void *object,int x,int y); 10 | struct canvas; 11 | 12 | #define COMMON_HEADER \ 13 | unsigned dirty; \ 14 | int width; \ 15 | int height; \ 16 | int kx; \ 17 | int ky; 18 | 19 | struct canvas* canvas_create(int w,int h,pixel *ptr,int pitch,draw_func flip,void *flip_object); 20 | void canvas_release(struct canvas *c); 21 | void canvas_draw(struct canvas *c,draw_func func,void *object,int x,int y); 22 | void canvas_update(struct canvas *c); 23 | void canvas_redraw(struct canvas *c); 24 | 25 | #endif -------------------------------------------------------------------------------- /evilos/lib/strings.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | 5 | int strcasecmp(const char *s1, const char *s2) 6 | { 7 | while(1) 8 | { 9 | int a = tolower( *s1++ ); 10 | int b = tolower( *s2++ ); 11 | 12 | if ( (a==b) ) 13 | { 14 | if ( a == 0 ) break; 15 | continue; 16 | } 17 | 18 | if ( a < b ) return -1; 19 | return 1; 20 | } 21 | 22 | return 0; 23 | } 24 | 25 | int strncasecmp(const char *s1, const char *s2, size_t n) 26 | { 27 | while( n-- > 0 ) 28 | { 29 | int a = tolower( *s1++ ); 30 | int b = tolower( *s2++ ); 31 | 32 | if ( (a==b) ) 33 | { 34 | if ( a == 0 ) break; 35 | continue; 36 | } 37 | 38 | if ( a < b ) return -1; 39 | return 1; 40 | } 41 | 42 | return 0; 43 | } 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /evilos/lib/include/stddef.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDDEF_H 2 | #define _STDDEF_H 3 | 4 | #ifndef NULL 5 | #define NULL 0 6 | #endif 7 | 8 | 9 | #ifndef _HAVE_PTRDIFF_T 10 | #define _HAVE_PTRDIFF_T 11 | typedef signed long int ptrdiff_t; 12 | #endif 13 | 14 | #ifndef _HAVE_SIZE_T 15 | #define _HAVE_SIZE_T 16 | //typedef unsigned int size_t; 17 | typedef long unsigned int size_t; 18 | #endif 19 | 20 | 21 | #if ( (! defined _HAVE_WCHAR_T) && (! defined __cplusplus ) ) 22 | #define _HAVE_WCHAR_T 23 | typedef int wchar_t; 24 | #endif 25 | 26 | #define offsetof(struct_type, member) \ 27 | (size_t) &(((struct_type *)0)->member) 28 | 29 | /*#define offsetof(type, memberdesig) \ 30 | ((const unsigned int)((ptrdiff_t)&(type.memberdesig) - (ptrdiff_t)&type)) 31 | */ 32 | 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /evilos/timer.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | void timer_install(int hz) { 7 | unsigned int divisor = 1193180/hz; 8 | outb(0x36, 0x43); 9 | outb(divisor&0xff, 0x40); 10 | outb(divisor>>8, 0x40); 11 | outb(inb(0x21)&0xfe, 0x21); 12 | } 13 | 14 | volatile unsigned int timer_ticks = 0; 15 | 16 | void do_timer(void) { 17 | struct task_struct *v = &TASK0; 18 | outb(0x20, 0x20); 19 | cli(); 20 | ++timer_ticks; 21 | for (; v; v=v->next) { 22 | if (v->state == TS_RUNNING) { 23 | if ((v->priority+=30) <= 0) 24 | v->priority = 0xffffffff; 25 | } if(v->state==TS_SLEEP){ 26 | //v->priority = 0; 27 | }else{ 28 | v->priority -= 10; 29 | } 30 | } 31 | if (! (timer_ticks%1)) 32 | scheduler(); 33 | sti(); 34 | } 35 | -------------------------------------------------------------------------------- /evilos/lib/include/stdint.h: -------------------------------------------------------------------------------- 1 | #ifndef STDINT_H 2 | #define STDINT_H 3 | 4 | #ifndef _HAVE_SIZE_T 5 | #define _HAVE_SIZE_T 6 | typedef unsigned size_t; 7 | #endif 8 | 9 | typedef unsigned char uint8_t; 10 | typedef unsigned short uint16_t; 11 | typedef unsigned long uint32_t; 12 | typedef unsigned long long uint64_t; 13 | 14 | typedef signed char int8_t; 15 | typedef signed short int16_t; 16 | typedef signed long int32_t; 17 | typedef signed long long int64_t; 18 | 19 | typedef signed char s8; 20 | typedef unsigned char u8; 21 | 22 | typedef signed short s16; 23 | typedef unsigned short u16; 24 | 25 | typedef signed int s32; 26 | typedef unsigned int u32; 27 | 28 | typedef signed long long s64; 29 | typedef unsigned long long u64; 30 | 31 | #endif /* STDINT_H */ 32 | -------------------------------------------------------------------------------- /evilos/tools/vbe.txt: -------------------------------------------------------------------------------- 1 | grub> 2 | ls *.c|awk '{sub(/\.c/,".o",$1);print "gui/"$1}' 3 | ls *.c|awk '{sub(/\.c/,".o",$1);print "gui/"$1"\\"}'>a.txt 4 | 5 | grub> vbeprobe 6 | VBE version 2.0 7 | 0x100: Packed pixel, 640x400x8 8 | 0x101: Packed pixel, 640x480x8 9 | 0x103: Packed pixel, 800x600x8 10 | 0x105: Packed pixel, 1024x768x8 11 | 0x110: Direct Color, 640x480x15 12 | 0x113: Direct Color, 800x600x15 13 | 0x116: Direct Color, 1024x768x15 14 | 0x111: Direct Color, 640x480x16 15 | 0x114: Direct Color, 800x600x16 16 | 0x117: Direct Color, 1024x768x16 17 | 0x112: Direct Color, 640x480x24 18 | 0x115: Direct Color, 800x600x24 19 | 0x118: Direct Color, 1024x768x24 20 | 0x142: Direct Color, 640x480x32 21 | 0x143: Direct Color, 800x600x32 22 | 0x144: Direct Color, 1024x768x32 23 | 0x146: Packed pixel, 320x200x8 24 | 25 | grub> 26 | -------------------------------------------------------------------------------- /evilos/include/asm.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_H_ 2 | #define _ASM_H_ 3 | 4 | #define cli() __asm__ ("cli\n\t") 5 | #define sti() __asm__ ("sti\n\t") 6 | #define critical_enter() __asm__("pushf;cli;\n\t") 7 | #define critical_exit() __asm__("popf\n\t") 8 | 9 | #define halt() __asm__ ("cli;hlt\n\t"); 10 | #define idle() __asm__ ("jmp .\n\t"); 11 | 12 | #define inb(port) (__extension__({ \ 13 | unsigned char __res; \ 14 | __asm__ ("inb %%dx, %%al\n\t" \ 15 | :"=a"(__res) \ 16 | :"dx"(port)); \ 17 | __res; \ 18 | })) 19 | 20 | #define outb(value, port) __asm__ ( \ 21 | "outb %%al, %%dx\n\t"::"al"(value), "dx"(port)) 22 | 23 | #define insl(port, buf, nr) \ 24 | __asm__ ("cld;rep;insl\n\t" \ 25 | ::"d"(port), "D"(buf), "c"(nr)) 26 | 27 | #define outsl(buf, nr, port) \ 28 | __asm__ ("cld;rep;outsl\n\t" \ 29 | ::"d"(port), "S" (buf), "c" (nr)) 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /evilos/gui/box.c: -------------------------------------------------------------------------------- 1 | #include "box.h" 2 | 3 | static void draw_box(pixel *ptr,int pitch,void *object,int x,int y) 4 | { 5 | struct box *obj=(struct box*)object; 6 | int w=obj->width; 7 | int h=obj->height; 8 | int i,j; 9 | pixel *buffer=ptr; 10 | pixel color=obj->color; 11 | if (y<0) { 12 | h+=y; 13 | y=0; 14 | } 15 | else { 16 | buffer=(pixel*)((char*)buffer+y*pitch); 17 | } 18 | if (x<0) { 19 | w+=x; 20 | x=0; 21 | } 22 | else { 23 | buffer+=x; 24 | } 25 | if (w+x>CANVAS_BLOCK_WIDTH) { 26 | w=CANVAS_BLOCK_WIDTH-x; 27 | } 28 | if (h+y>CANVAS_BLOCK_HEIGHT) { 29 | h=CANVAS_BLOCK_HEIGHT-y; 30 | } 31 | for (i=0;i. 18 | .SH "SEE ALSO" 19 | The full documentation for 20 | .B grub-terminfo 21 | is maintained as a Texinfo manual. If the 22 | .B info 23 | and 24 | .B grub-terminfo 25 | programs are properly installed at your site, the command 26 | .IP 27 | .B info grub-terminfo 28 | .PP 29 | should give you access to the complete manual. 30 | -------------------------------------------------------------------------------- /evilos/kernel.ld: -------------------------------------------------------------------------------- 1 | ENTRY(_start) 2 | 3 | K_VIR_ADDR = 0xC0100000; 4 | K_PHY_ADDR = 0x100000; 5 | PAGE_SIZE = 0x1000; 6 | /* 8KB stack size */ 7 | K_STACK_SIZE = 0x1000; 8 | 9 | SECTIONS 10 | { 11 | .text K_VIR_ADDR : AT(K_PHY_ADDR) 12 | { 13 | INIT_BEG = . ; 14 | *(.init) 15 | . = ALIGN(PAGE_SIZE); 16 | INIT_END = . ; 17 | *(.text) 18 | *(.rodata.*) 19 | . = ALIGN(PAGE_SIZE); 20 | } 21 | .data : AT(K_PHY_ADDR + (DATA_BEG - INIT_BEG) ) 22 | { 23 | DATA_BEG = . ; 24 | *(.data) 25 | *(.rodata) 26 | . = ALIGN(PAGE_SIZE); 27 | } 28 | .bss : AT(K_PHY_ADDR + (BSS_BEG - INIT_BEG)) 29 | { 30 | BSS_BEG = . ; 31 | *(.bss) 32 | . = ALIGN(PAGE_SIZE); 33 | } 34 | .stack : AT(K_PHY_ADDR +(_stack_end - INIT_BEG)) 35 | { 36 | _stack_end = . ; 37 | . += K_STACK_SIZE; 38 | _stack_start = . ; 39 | K_STACK_ADDR = . ; 40 | . = ALIGN( PAGE_SIZE ); 41 | } 42 | KERNEL_END = . ; 43 | . = ALIGN(PAGE_SIZE); 44 | } 45 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/msg.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_MSG_H 2 | #define _SYS_MSG_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | 9 | 10 | typedef uint32_t msgqnum_t; 11 | typedef uint32_t msglen_t; 12 | 13 | 14 | #define MSG_NOERROR 1 15 | 16 | 17 | struct msqid_ds 18 | { 19 | struct ipc_perm msg_perm; 20 | msgqnum_t msg_qnum; 21 | msglen_t msg_qbytes; 22 | pid_t msg_lspid; 23 | pid_t msg_lrpid; 24 | time_t msg_stime; 25 | time_t msg_rtime; 26 | time_t msg_ctime; 27 | }; 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | 34 | 35 | int msgctl(int, int, struct msqid_ds *); 36 | int msgget(key_t, int); 37 | ssize_t msgrcv(int, void *, size_t, long int, int); 38 | int msgsnd(int, const void *, size_t, int); 39 | 40 | #ifdef __cplusplus 41 | } 42 | #endif 43 | 44 | 45 | 46 | #endif 47 | 48 | 49 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/mbchk.1: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. 2 | .TH MBCHK "1" "May 2005" "mbchk (GNU GRUB 0.97)" FSF 3 | .SH NAME 4 | mbchk \- check the format of a Multiboot kernel 5 | .SH SYNOPSIS 6 | .B mbchk 7 | [\fIOPTION\fR]... [\fIFILE\fR]... 8 | .SH DESCRIPTION 9 | Check if the format of FILE complies with the Multiboot Specification. 10 | .PP 11 | \fB\-q\fR, \fB\-\-quiet\fR suppress all normal output 12 | \fB\-h\fR, \fB\-\-help\fR display this help and exit 13 | \fB\-v\fR, \fB\-\-version\fR output version information and exit. 14 | .SH "REPORTING BUGS" 15 | Report bugs to . 16 | .SH "SEE ALSO" 17 | The full documentation for 18 | .B mbchk 19 | is maintained as a Texinfo manual. If the 20 | .B info 21 | and 22 | .B mbchk 23 | programs are properly installed at your site, the command 24 | .IP 25 | .B info mbchk 26 | .PP 27 | should give you access to the complete manual. 28 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/grub-md5-crypt.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. 2 | .TH GRUB-MD5-CRYPT "8" "May 2005" "grub-md5-crypt (GNU GRUB )" FSF 3 | .SH NAME 4 | grub-md5-crypt \- Encrypt a password in MD5 format 5 | .SH SYNOPSIS 6 | .B grub-md5-crypt 7 | [\fIOPTION\fR] 8 | .SH DESCRIPTION 9 | Encrypt a password in MD5 format. 10 | .TP 11 | \fB\-h\fR, \fB\-\-help\fR 12 | print this message and exit 13 | .TP 14 | \fB\-v\fR, \fB\-\-version\fR 15 | print the version information and exit 16 | .TP 17 | \fB\-\-grub\-shell\fR=\fIFILE\fR 18 | use FILE as the grub shell 19 | .SH "REPORTING BUGS" 20 | Report bugs to . 21 | .SH "SEE ALSO" 22 | The full documentation for 23 | .B grub-md5-crypt 24 | is maintained as a Texinfo manual. If the 25 | .B info 26 | and 27 | .B grub-md5-crypt 28 | programs are properly installed at your site, the command 29 | .IP 30 | .B info grub-md5-crypt 31 | .PP 32 | should give you access to the complete manual. 33 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/nic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This program is free software; you can redistribute it and/or 3 | * modify it under the terms of the GNU General Public License as 4 | * published by the Free Software Foundation; either version 2, or (at 5 | * your option) any later version. 6 | */ 7 | 8 | #ifndef NIC_H 9 | #define NIC_H 10 | 11 | /* 12 | * Structure returned from eth_probe and passed to other driver 13 | * functions. 14 | */ 15 | 16 | struct nic 17 | { 18 | void (*reset)P((struct nic *)); 19 | int (*poll)P((struct nic *)); 20 | void (*transmit)P((struct nic *, const char *d, 21 | unsigned int t, unsigned int s, const char *p)); 22 | void (*disable)P((struct nic *)); 23 | int flags; /* driver specific flags */ 24 | struct rom_info *rom_info; /* -> rom_info from main */ 25 | unsigned char *node_addr; 26 | char *packet; 27 | unsigned int packetlen; 28 | void *priv_data; /* driver can hang private data here */ 29 | }; 30 | 31 | #endif /* NIC_H */ 32 | -------------------------------------------------------------------------------- /evilos/include/string.h.t: -------------------------------------------------------------------------------- 1 | #ifndef _STRING_H 2 | #define _STRING_H 3 | 4 | 5 | void* memchr(const void * m, int c, int n); 6 | int memcmp(const void * s1, const void * s2, int n); 7 | void* memcpy(void *dest, const void *src, int count); 8 | void* memset(void *dest, int c, int count); 9 | char* strcpy(char * s1, const char * s2); 10 | int strcmp(const char * s1, const char * s2); 11 | char* strcat(char* destination, const char* append); 12 | int strlen(const char * s); 13 | char* strchr(const char* s, int c); 14 | int strcspn(const char * s1, const char * s2); 15 | char* strncat(char* dst, const char* src, int n); 16 | int strncmp(const char * s1, const char * s2, int n); 17 | char* strncpy(char * s1, const char *s2, int n); 18 | char* strpbrk(const char * s1, const char * s2); 19 | int strspn(const char * s,const char * sep); 20 | char* strstr(const char * s, const char * find); 21 | char* strrchr(const char * s, int c); 22 | char* strtok(char * string,const char * separator); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/cs89x0.txt: -------------------------------------------------------------------------------- 1 | Permission is granted to distribute the enclosed cs89x0.[ch] driver 2 | only in conjunction with the Etherboot package. The code is 3 | ordinarily distributed under the GPL. 4 | 5 | Russ Nelson, January 2000 6 | 7 | CREDITS 8 | 9 | I want to thank 10 | 11 | Mike Cruse 12 | for providing an evaluation NIC and for sponsoring the 13 | development of this driver. 14 | 15 | Randall Sears 16 | Deva Bodas 17 | Andreas Kraemer 18 | Wolfgang Krause <100303.2673@compuserve.com> 19 | for excellent technical support and for providing the required 20 | programming information. I appreciate Crystal Semiconductor's 21 | commitment towards free software. 22 | 23 | Russell Nelson 24 | for writing the Linux device driver for the CS89x0 25 | chipset. Russel's code is very well designed and simplified my 26 | job a lot. 27 | -------------------------------------------------------------------------------- /evilos/vfs.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | u32 vread(vnode_t *node, u32 offset, u32 size, u8 *buffer){ 5 | if(node->read!=NULL){ 6 | return node->read(node,offset,size,buffer); 7 | }else{ 8 | return 0; 9 | } 10 | } 11 | u32 vwrite(vnode_t *node, u32 offset, u32 size, u8 *buffer){ 12 | if(node->write!=NULL){ 13 | return node->write(node,offset,size,buffer); 14 | }else{ 15 | return 0; 16 | } 17 | } 18 | void vopen(vnode_t *node){ 19 | if(node->open!=NULL){ 20 | return node->open(node); 21 | }else{ 22 | return 0; 23 | } 24 | } 25 | void vclose(vnode_t *node){ 26 | if(node->close!=NULL){ 27 | return node->close(node); 28 | }else{ 29 | return 0; 30 | } 31 | } 32 | struct vdirent *vreaddir(vnode_t *node, u32 index){ 33 | if((node->flags&0x7) == V_DIRECTORY&&node->readdir!=NULL){ 34 | return node->readdir(node,index); 35 | }else{ 36 | return 0; 37 | } 38 | } 39 | vnode_t *vfinddir(vnode_t *node, char *name){ 40 | if((node->flags&0x7) == V_DIRECTORY&&node->finddir!=NULL){ 41 | return node->finddir(node,name); 42 | }else{ 43 | return 0; 44 | } 45 | } -------------------------------------------------------------------------------- /evilos/eeos_pipe.h: -------------------------------------------------------------------------------- 1 | #ifndef _ETK_UCOS_PIPE_H 2 | #define _ETK_UCOS_PIPE_H 3 | 4 | #include "type.h" 5 | 6 | #ifndef FD_SETSIZE 7 | #define FD_SETSIZE 64 8 | #endif /* FD_SETSIZE */ 9 | 10 | typedef struct fd_set { 11 | u32 fd_count; /* how many are SET? */ 12 | u32 fd_array[FD_SETSIZE]; /* an array of SOCKETs */ 13 | } fd_set; 14 | 15 | typedef struct timeval { 16 | long tv_sec; /* seconds */ 17 | long tv_usec; /* microseconds*/ 18 | }time_t; 19 | 20 | #define FD_ZERO(set) (((fd_set *)(set))->fd_count=0) 21 | #define FD_SET(fd, set) do { \ 22 | if (((fd_set *)(set))->fd_count < FD_SETSIZE) \ 23 | ((fd_set *)(set))->fd_array[((fd_set *)(set))->fd_count++]=(fd);\ 24 | } while(0) 25 | 26 | 27 | int eeos_pipe_init(void); 28 | int eeos_pipe_deinit(void); 29 | int eeos_pipe_create(int fd[]); 30 | int eeos_pipe_read(int fd, void *buf, int count); 31 | int eeos_pipe_write(int fd, void *buf, int count); 32 | int eeos_pipe_close(int fd); 33 | int eeos_fd_select(fd_set *fdset, struct timeval *tv); 34 | int eeos_fd_isset(int fd, fd_set *fdset); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_MMAN_H 2 | #define _SYS_MMAN_H 3 | 4 | 5 | #include 6 | 7 | 8 | #define PROT_READ (1<<0) 9 | #define PROT_WRITE (1<<1) 10 | #define PROT_EXEC (1<<2) 11 | #define PROT_NONE (1<<3) 12 | 13 | 14 | 15 | #define MAP_SHARED (1<<0) 16 | #define MAP_PRIVATE (1<<1) 17 | #define MAP_FIXED (1<<2) 18 | 19 | 20 | #define MS_ASYNC (1<<0) 21 | #define MS_SYNC (1<<1) 22 | #define MS_INVALIDATE (1<<2) 23 | 24 | 25 | #define MCL_CURRENT (1<<0) 26 | #define MCL_FUTURE (1<<1) 27 | 28 | #define MAP_FAILED ((void*)-1) 29 | 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | 36 | int mlock(const void *, size_t); 37 | int mlockall(int); 38 | void *mmap(void *, size_t, int, int, int, off_t); 39 | int mprotect(void *, size_t, int); 40 | int msync(void *, size_t, int); 41 | int munlock(const void *, size_t); 42 | int munlockall(void); 43 | int munmap(void *, size_t); 44 | int shm_open(const char *, int, mode_t); 45 | int shm_unlink(const char *); 46 | 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | 52 | 53 | 54 | #endif 55 | 56 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 evilbinary 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /evilos/lib/include/signal.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIGNAL_H 2 | #define _SIGNAL_H 3 | 4 | #define SIGABRT 1 5 | #define SIGALRM 2 6 | #define SIGFPE 3 7 | #define SIGHUP 4 8 | #define SIGILL 5 9 | #define SIGINT 6 10 | #define SIGKILL 7 11 | #define SIGPIPE 8 12 | #define SIGQUIT 9 13 | #define SIGSEGV 10 14 | #define SIGTERM 11 15 | #define SIGUSR1 12 16 | #define SIGUSR2 13 17 | #define SIGCHLD 14 18 | #define SIGCONT 15 19 | #define SIGSTOP 16 20 | #define SIGTSTP 17 21 | #define SIGTTIN 18 22 | #define SIGTTOU 19 23 | #define SIGBUS 20 24 | #define SIGPOLL 21 25 | #define SIGPROF 22 26 | #define SIGSYS 23 27 | #define SIGTRAP 24 28 | #define SIGURG 25 29 | #define SIGVTALRM 26 30 | #define SIGXCPU 27 31 | #define SIGXFSZ 28 32 | 33 | 34 | #ifndef _HAVE_SIGSET_T 35 | #define _HAVE_SIGSET_T 36 | typedef struct 37 | { 38 | unsigned long bits[ (1024 / sizeof( unsigned long )) + 1 ]; 39 | } sigset_t; 40 | #endif 41 | 42 | 43 | 44 | 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | 50 | int raise(int); 51 | 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | 58 | #endif 59 | 60 | -------------------------------------------------------------------------------- /evilos/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 evilbinary 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/sem.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_SEM_H 2 | #define _SYS_SEM_H 3 | 4 | #include 5 | #include 6 | 7 | #define SEM_UNDO 1 8 | 9 | 10 | #define GETNCNT 1 11 | #define GETPID 2 12 | #define GETVAL 4 13 | #define GETALL 8 14 | #define GETZCNT 16 15 | #define SETVAL 32 16 | #define SETALL 64 17 | 18 | 19 | struct semid_ds 20 | { 21 | struct ipc_perm sem_perm; 22 | unsigned short int sem_nsems; 23 | time_t sem_otime; 24 | time_t sem_ctime; 25 | }; 26 | 27 | 28 | 29 | 30 | struct semaphore 31 | { 32 | unsigned short int semval; 33 | pid_t sempid; 34 | unsigned short int semncnt; 35 | unsigned short int semzcnt; 36 | }; 37 | 38 | 39 | struct sembuf 40 | { 41 | unsigned short int sem_num; 42 | short int sem_op; 43 | short int sem_flg; 44 | }; 45 | 46 | 47 | #ifdef __cplusplus 48 | extern "C" { 49 | #endif 50 | 51 | 52 | 53 | int semctl(int, int, int, ...); 54 | int semget(key_t, int, int); 55 | int semop(int, struct sembuf *, size_t); 56 | 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | 63 | 64 | #endif 65 | 66 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/README: -------------------------------------------------------------------------------- 1 | This is GNU GRUB, the GRand Unified Bootloader. GRUB is intended to 2 | provide important bootloader features that are missing from typical 3 | personal computer BIOSes: 4 | 5 | - provides fully-featured command line and graphical interfaces 6 | - recognizes fdisk partitions and BSD disklabels 7 | - can dynamically read Linux ext2fs, ReiserFS, JFS and XFS, BSD ufs, 8 | MS-DOS FAT16 and FAT32, Minix fs, and VSTa fs filesystems, plus 9 | hardcoded blocklists 10 | - can boot Multiboot-compliant kernels (such as GNU Mach), as well 11 | as standard Linux and *BSD kernels 12 | 13 | See the file NEWS for a description of recent changes to GRUB. 14 | 15 | If you are interested in the network support, see the file 16 | README.netboot under the directory netboot. 17 | 18 | See the file INSTALL for instructions on how to build and install the 19 | GRUB data and program files. See the GRUB manual for details about 20 | using GRUB as your boot loader. Type "info grub" in the shell prompt. 21 | 22 | Please visit the official web page of GNU GRUB, for more information. 23 | The URL is . 24 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/tparm.h: -------------------------------------------------------------------------------- 1 | /* tparm.h - parameter formatting of terminfo */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2002 Free Software Foundation, Inc. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef GRUB_TPARM_HEADER 22 | #define GRUB_TPARM_HEADER 1 23 | 24 | 25 | /* Function prototypes. */ 26 | char *grub_tparm (const char *string, ...); 27 | 28 | #endif /* ! GRUB_TERMCAP_HEADER */ 29 | -------------------------------------------------------------------------------- /evilos/gui/display.c: -------------------------------------------------------------------------------- 1 | #include "display.h" 2 | #include "vesa.h" 3 | 4 | static void gdi_flip(pixel *ptr,int pitch,void *object,int x,int y) 5 | { 6 | struct gdi_object *obj=(struct gdi_object *)object; 7 | /*SetDIBitsToDevice(obj->dc, 8 | x,y,CANVAS_BLOCK_WIDTH,CANVAS_BLOCK_HEIGHT, 9 | x,0, 10 | 0,CANVAS_BLOCK_HEIGHT, 11 | ptr-x,&(obj->bi),DIB_RGB_COLORS 12 | );*/ 13 | //vesa_printf(50,140,"gdi_flip"); 14 | //vesa_fill_rect(x,y,CANVAS_BLOCK_WIDTH,CANVAS_BLOCK_HEIGHT,GREEN); 15 | int i,j; 16 | for(i=0;ipitch=(w*sizeof(pixel)+3)&(~3); 29 | g->flip=gdi_flip; 30 | g->buffer=(pixel*)malloc(h*g->pitch); 31 | g->object=obj=(struct gdi_object *)malloc(sizeof(struct gdi_object)); 32 | g->width=w; 33 | g->height=h; 34 | } 35 | 36 | void gdi_release(struct gdi *g) 37 | { 38 | struct gdi_object *obj=(struct gdi_object *)g->object; 39 | //ReleaseDC(obj->wnd,obj->dc); 40 | free(g->buffer); 41 | free(g->object); 42 | } 43 | -------------------------------------------------------------------------------- /evilos/include/screen.h: -------------------------------------------------------------------------------- 1 | #ifndef SCREEN_H 2 | #define SCREEN_H 3 | 4 | #define MAX_LINES 25 5 | #define MAX_COLUMNS 80 6 | #define TAB_WIDTH 8 /* must be power of 2 */ 7 | 8 | #define VIDEO_RAM 0xb8000 9 | 10 | #define LINE_RAM (MAX_COLUMNS*2) 11 | 12 | #define PAGE_RAM (MAX_LINE*MAX_COLUMNS) 13 | 14 | #define BLANK_CHAR (' ') 15 | #define BLANK_ATTR (0x07) /* white fg, black bg */ 16 | 17 | #define CHAR_OFF(x,y) (LINE_RAM*(y)+2*(x)) 18 | 19 | 20 | /* Some screen stuff. */ 21 | /* The number of columns. */ 22 | #define COLUMNS 80 23 | /* The number of lines. */ 24 | #define LINES 24 25 | /* The attribute of an character. */ 26 | #define ATTRIBUTE 7 27 | /* The video memory address. */ 28 | #define VIDEO 0xB8000 29 | 30 | typedef enum COLOUR_TAG { 31 | BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, WHITE, 32 | GRAY, LIGHT_BLUE, LIGHT_GREEN, LIGHT_CYAN, 33 | LIGHT_RED, LIGHT_MAGENTA, YELLOW, BRIGHT_WHITE 34 | } COLOUR; 35 | 36 | void set_cursor(int, int); 37 | void get_cursor(int *, int *); 38 | void print_c(char c, COLOUR fg, COLOUR bg); 39 | 40 | void cls (void); 41 | void itoa (char *buf, int base, int d); 42 | void putchar (int c); 43 | void printf (const char *format, ...); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /evilos/lib/Makefile: -------------------------------------------------------------------------------- 1 | ########################################################################################## 2 | # Project: EvilBinary OS 3 | # Makefile Evilbinary 小E 4 | # Mail:rootntsd@gmail.com 5 | ########################################################################################## 6 | 7 | CC = gcc -m32 8 | AS =as --32 9 | LD =ld -m elf_i386 10 | INCLUDES = -I./include -I../include -I. 11 | LIBS = -L./lib -L../lib 12 | CFLAGS =-std=gnu99 -Wall -w -O -fstrength-reduce -fomit-frame-pointer\ 13 | -finline-functions -fno-builtin -ffreestanding -nostdinc #-Wextra -fno-stack-protector # 14 | ASFLAGS =-I./include -I../include -I. 15 | LDFLAGS =-s -Ttext 100000 #-T kernel.ld 16 | AR =ar 17 | ARFLAGS= rcs 18 | RM =rm -f 19 | SRCS = $(wildcard *.c) 20 | OBJS = signal.o sscanf.o stat.o stdio.o stdlib.o timeb.o utsname.o \ 21 | gettimeofday.o time.o ctype.o errno.o string.o vsprintf.o getopt.o strings.o 22 | TARGET=libc.a 23 | 24 | .PHONY : all clean 25 | 26 | all:$(TARGET) 27 | $(TARGET):$(OBJS) 28 | $(AR) $(ARFLAGS) $@ $? 29 | .s.o: 30 | $(AS) $(ASFLAGS) -o $@ $< 31 | .c.o: 32 | $(CC) $(CFLAGS) -c -o $@ $< $(INCLUDES) $(LIBS) 33 | .S.o: 34 | $(CC) $(CFLAGS) -c -o $@ $< $(INCLUDES) $(LIBS) 35 | clean: 36 | $(RM) $(OBJS) $(TARGET) 37 | 38 | -------------------------------------------------------------------------------- /evilos/lib/include/sys/time.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIME_H 2 | #define _SYS_TIME_H 3 | 4 | #include 5 | 6 | 7 | 8 | struct timeval 9 | { 10 | time_t tv_sec; 11 | suseconds_t tv_usec; 12 | }; 13 | 14 | struct itimerval 15 | { 16 | struct timeval it_interval; 17 | struct timeval it_value; 18 | }; 19 | 20 | 21 | 22 | typedef struct 23 | { 24 | int fds_bitlen; //< Length of fds_bits 25 | long fds_bits[]; 26 | } fd_set; 27 | 28 | 29 | 30 | #define ITIMER_REAL 1 31 | #define ITIMER_VIRTUAL 2 32 | #define ITIMER_PROF 3 33 | 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | 39 | 40 | void FD_CLR(int fd, fd_set *fdset); 41 | int FD_ISSET(int fd, fd_set *fdset); 42 | void FD_SET(int fd, fd_set *fdset); 43 | void FD_ZERO(fd_set *fdset); 44 | 45 | 46 | // TODO: check this constant 47 | #define FD_SETSIZE 1024 48 | 49 | 50 | 51 | int getitimer(int, struct itimerval *); 52 | int setitimer(int, const struct itimerval *, struct itimerval *); 53 | int gettimeofday(struct timeval *, void *); 54 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); 55 | int utimes(const char *, const struct timeval [2]); 56 | 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | 63 | 64 | #endif 65 | 66 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/hercules.h: -------------------------------------------------------------------------------- 1 | /* hercules.h - hercules console interface */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2001 Free Software Foundation, Inc. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef GRUB_HERCULES_HEADER 22 | #define GRUB_HERCULES_HEADER 1 23 | 24 | /* Macros. */ 25 | #define HERCULES_VIDEO_ADDR RAW_ADDR (0xB0000) 26 | #define HERCULES_WIDTH 80 27 | #define HERCULES_HEIGHT 25 28 | #define HERCULES_INDEX_REG 0x3b4 29 | #define HERCULES_DATA_REG 0x3b5 30 | 31 | #endif /* ! GRUB_HERCULES_HEADER */ 32 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/ChangeLog.rej: -------------------------------------------------------------------------------- 1 | *************** 2 | *** 1,23 **** 3 | - 2006-11-23 Brynet-Inc 4 | - 5 | - * updated grub 0.97 with a VBE patch by Durand J. Miller 6 | - from 2004-05-09. 7 | - * stage2/builtins.c (vbeset_func): New function to set the VBE 8 | - mode and mbi information during the booting sequence. 9 | - * stage2/builtins.c (vbematch_func): New function to locate a 10 | - matching Direct color VBE mode. If a multiboot kernel is loaded, 11 | - then the mode is passed on to the kernel on boot. 12 | - * stage2/builtins.c (builtin_table): Added a pointer to the 13 | - new VBE functions. 14 | - * stage2/common.c (mbi_vbe_controller): New variable and in ... 15 | - * stage2/shared.h (mbi_vbe_controller): ... this. 16 | - * stage2/common.c (mbi_vbe_mode_info): New variable and in ... 17 | - * stage2/shared.h (mbi_vbe_mode_info): ... this. 18 | - * docs/grub.texi (vbeset): Added some documentation for the 19 | - vbeset command. 20 | - * docs/grub.texi (vbematch): Added some documentation for the 21 | - vbematch command. 22 | - 23 | 2005-05-08 Yoshinori K. Okuji 24 | 25 | * configure.ac (AC_INIT): Upgraded to 0.97. 26 | --- 1,3 ---- 27 | 2005-05-08 Yoshinori K. Okuji 28 | 29 | * configure.ac (AC_INIT): Upgraded to 0.97. 30 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/nbi.h: -------------------------------------------------------------------------------- 1 | /* nbi.h - definitions for Net Boot Image */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2000 Free Software Foundation, Inc. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef GRUB_NBI_HEADER 22 | #define GRUB_NBI_HEADER 23 | 24 | #define NBI_MAGIC 0x1B031336 25 | #define NBI_DEST_ADDR 0x10000 26 | #define NBI_DEST_SEG 0x1000 27 | #define NBI_DEST_OFF 0x0000 28 | #define RELOCATED_ADDR 0x8000 29 | #define RELOCATED_SEG 0x0800 30 | #define RELOCATED_OFF 0x0000 31 | #define STAGE2_START_ADDR 0x8200 32 | 33 | #endif /* ! GRUB_NBI_HEADER */ 34 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/pxeloader.S: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2000 Free Software Foundation, Inc. 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program; if not, write to the Free Software 17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | */ 19 | 20 | .file "pxeloader.S" 21 | .text 22 | 23 | /* Start with the prehistoric environment... */ 24 | .code16 25 | 26 | /* Let's go */ 27 | .globl _start; _start: 28 | 29 | /* Jump to the real world */ 30 | ljmp $0, $0x8200 31 | 32 | /* This region is a junk. Do you say that this is wasteful? 33 | But I like that the memory layout of the body is consistent 34 | among different stage2s rather than scamping just for 1.5KB. */ 35 | . = _start + 0x8200 - 0x7C00 - 1 36 | .byte 0 37 | -------------------------------------------------------------------------------- /evilos/lib/gettimeofday.c: -------------------------------------------------------------------------------- 1 | /* 2 | * gettimeofday.c 3 | * Copyright (C) 2000-2003 Michel Lespinasse 4 | * Copyright (C) 1999-2000 Aaron Holtzman 5 | * 6 | * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. 7 | * See http://libmpeg2.sourceforge.net/ for updates. 8 | * 9 | * mpeg2dec is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * mpeg2dec is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program; if not, write to the Free Software 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 | */ 23 | 24 | 25 | #include "gettimeofday.h" 26 | 27 | #ifdef CUSTOM_GETTIMEOFDAY 28 | 29 | #include 30 | 31 | void gettimeofday (struct timeval * tp, void * dummy) 32 | { 33 | struct timeb tm; 34 | ftime (&tm); 35 | tp->tv_sec = tm.time; 36 | tp->tv_usec = tm.millitm * 1000; 37 | } 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/lib/.deps/getopt.Po: -------------------------------------------------------------------------------- 1 | getopt.o getopt.o: getopt.c ../config.h /usr/include/stdio.h \ 2 | /usr/include/features.h /usr/include/sys/cdefs.h \ 3 | /usr/include/gnu/stubs.h \ 4 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 5 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 6 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 7 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 8 | /usr/include/gconv.h \ 9 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 10 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 11 | /usr/include/bits/stdio.h /usr/include/gnu-versions.h 12 | 13 | ../config.h: 14 | 15 | /usr/include/stdio.h: 16 | 17 | /usr/include/features.h: 18 | 19 | /usr/include/sys/cdefs.h: 20 | 21 | /usr/include/gnu/stubs.h: 22 | 23 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 24 | 25 | /usr/include/bits/types.h: 26 | 27 | /usr/include/bits/wordsize.h: 28 | 29 | /usr/include/bits/typesizes.h: 30 | 31 | /usr/include/libio.h: 32 | 33 | /usr/include/_G_config.h: 34 | 35 | /usr/include/wchar.h: 36 | 37 | /usr/include/bits/wchar.h: 38 | 39 | /usr/include/gconv.h: 40 | 41 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 42 | 43 | /usr/include/bits/stdio_lim.h: 44 | 45 | /usr/include/bits/sys_errlist.h: 46 | 47 | /usr/include/bits/stdio.h: 48 | 49 | /usr/include/gnu-versions.h: 50 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/lib/.deps/getopt1.Po: -------------------------------------------------------------------------------- 1 | getopt1.o getopt1.o: getopt1.c ../config.h getopt.h /usr/include/stdio.h \ 2 | /usr/include/features.h /usr/include/sys/cdefs.h \ 3 | /usr/include/gnu/stubs.h \ 4 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 5 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 6 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 7 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 8 | /usr/include/gconv.h \ 9 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 10 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 11 | /usr/include/bits/stdio.h /usr/include/gnu-versions.h 12 | 13 | ../config.h: 14 | 15 | getopt.h: 16 | 17 | /usr/include/stdio.h: 18 | 19 | /usr/include/features.h: 20 | 21 | /usr/include/sys/cdefs.h: 22 | 23 | /usr/include/gnu/stubs.h: 24 | 25 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 26 | 27 | /usr/include/bits/types.h: 28 | 29 | /usr/include/bits/wordsize.h: 30 | 31 | /usr/include/bits/typesizes.h: 32 | 33 | /usr/include/libio.h: 34 | 35 | /usr/include/_G_config.h: 36 | 37 | /usr/include/wchar.h: 38 | 39 | /usr/include/bits/wchar.h: 40 | 41 | /usr/include/gconv.h: 42 | 43 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 44 | 45 | /usr/include/bits/stdio_lim.h: 46 | 47 | /usr/include/bits/sys_errlist.h: 48 | 49 | /usr/include/bits/stdio.h: 50 | 51 | /usr/include/gnu-versions.h: 52 | -------------------------------------------------------------------------------- /evilos/interrupt.c: -------------------------------------------------------------------------------- 1 | #include "interrupt.h" 2 | 3 | unsigned long long *idt = ((unsigned long long *)IDT_ADDR); 4 | unsigned long long *gdt = ((unsigned long long *)GDT_ADDR); 5 | 6 | void isr_entry(int index, unsigned long long offset) { 7 | unsigned long long idt_entry = 0x00008e0000000000ULL | 8 | ((unsigned long long)CODE_SEL<<16); 9 | idt_entry |= (offset<<32) & 0xffff000000000000ULL; 10 | idt_entry |= (offset) & 0xffff; 11 | idt[index] = idt_entry; 12 | } 13 | 14 | void idt_install(void) { 15 | unsigned int i = 0; 16 | struct DESCR { 17 | unsigned short length; 18 | unsigned long address; 19 | } __attribute__((packed)) idt_descr = {256*8-1, IDT_ADDR}; 20 | for (i=0; i 5 | #include 6 | 7 | 8 | #define PRIO_PROCESS 1 9 | #define PRIO_PGRP 2 10 | #define PRIO_USER 3 11 | 12 | 13 | #ifndef _HAVE_RLIM_T 14 | #define _HAVE_RLIM_T 15 | typedef uint32_t rlim_t; 16 | #endif 17 | 18 | 19 | // TODO: check these constants 20 | 21 | #define RLIM_INFINITY 0xfffffffful 22 | #define RLIM_SAVED_MAX 0xfffffffful 23 | #define RLIM_SAVED_CUR 0xfffffffful 24 | 25 | 26 | 27 | #define RUSAGE_SELF 1 28 | #define RUSAGE_CHILDREN 2 29 | 30 | #ifndef _HAVE_RLIMIT 31 | #define _HAVE_RLIMIT 32 | struct rlimit 33 | { 34 | rlim_t rlim_cur; 35 | rlim_t rlim_max; 36 | }; 37 | #endif 38 | 39 | 40 | 41 | #ifndef _HAVE_RUSAGE 42 | #define _HAVE_RUSAGE 43 | struct rusage 44 | { 45 | struct timeval ru_utime; 46 | struct timeval ru_stime; 47 | }; 48 | #endif 49 | 50 | 51 | 52 | #define RLIMIT_CORE 1 53 | #define RLIMIT_CPU 2 54 | #define RLIMIT_DATA 3 55 | #define RLIMIT_FSIZE 4 56 | #define RLIMIT_NOFILE 5 57 | #define RLIMIT_STACK 6 58 | #define RLIMIT_AS 7 59 | 60 | 61 | #ifdef __cplusplus 62 | extern "C" { 63 | #endif 64 | 65 | int getpriority(int, id_t); 66 | int getrlimit(int, struct rlimit *); 67 | int getrusage(int, struct rusage *); 68 | int setpriority(int, id_t, int); 69 | int setrlimit(int, const struct rlimit *); 70 | 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | 75 | 76 | 77 | #endif 78 | 79 | 80 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/md5.h: -------------------------------------------------------------------------------- 1 | /* md5.h - an implementation of the MD5 algorithm and MD5 crypt */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2000 Free Software Foundation, Inc. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | /* If CHECK is true, check a password for correctness. Returns 0 22 | if password was correct, and a value != 0 for error, similarly 23 | to strcmp. 24 | If CHECK is false, crypt KEY and save the result in CRYPTED. 25 | CRYPTED must have a salt. */ 26 | extern int md5_password (const char *key, char *crypted, int check); 27 | 28 | /* For convenience. */ 29 | #define check_md5_password(key,crypted) md5_password((key), (crypted), 1) 30 | #define make_md5_password(key,crypted) md5_password((key), (crypted), 0) 31 | -------------------------------------------------------------------------------- /evilos/lib/include/string.h: -------------------------------------------------------------------------------- 1 | #ifndef _STRING_H 2 | #define _STRING_H 3 | 4 | 5 | #include 6 | 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | void *memccpy(void *, const void *, int, size_t); 13 | void *memchr(const void *, int, size_t); 14 | int memcmp(const void *, const void *, size_t); 15 | void *memcpy(void *, const void *, size_t); 16 | void *memmove(void *, const void *, size_t); 17 | void *memset(void *, int, size_t); 18 | char *strcat(char *, const char *); 19 | char *strchr(const char *, int); 20 | int strcmp(const char *, const char *); 21 | int strcoll(const char *, const char *); 22 | char *strcpy(char *, const char *); 23 | size_t strcspn(const char *, const char *); 24 | char *strdup(const char *); 25 | char *strerror(int); 26 | size_t strlen(const char *); 27 | char *strncat(char *, const char *, size_t); 28 | int strncmp(const char *, const char *, size_t); 29 | char *strncpy(char *, const char *, size_t); 30 | char *strpbrk(const char *, const char *); 31 | char *strrchr(const char *, int); 32 | size_t strspn(const char *, const char *); 33 | char *strstr(const char *, const char *); 34 | char *strtok(char *, const char *); 35 | char *strtok_r(char *, const char *, char **); 36 | size_t strxfrm(char *, const char *, size_t); 37 | 38 | char* strndup(const char *s, size_t n); // This is not in the standard. 39 | char* strdup(const char *s); // This is not in the standard. 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/grub-install.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. 2 | .TH GRUB-INSTALL "8" "May 2005" "grub-install (GNU GRUB 0.97)" FSF 3 | .SH NAME 4 | grub-install \- install GRUB on your drive 5 | .SH SYNOPSIS 6 | .B grub-install 7 | [\fIOPTION\fR] \fIinstall_device\fR 8 | .SH DESCRIPTION 9 | Install GRUB on your drive. 10 | .TP 11 | \fB\-h\fR, \fB\-\-help\fR 12 | print this message and exit 13 | .TP 14 | \fB\-v\fR, \fB\-\-version\fR 15 | print the version information and exit 16 | .TP 17 | \fB\-\-root\-directory\fR=\fIDIR\fR 18 | install GRUB images under the directory DIR 19 | instead of the root directory 20 | .TP 21 | \fB\-\-grub\-shell\fR=\fIFILE\fR 22 | use FILE as the grub shell 23 | .TP 24 | \fB\-\-no\-floppy\fR 25 | do not probe any floppy drive 26 | .TP 27 | \fB\-\-force\-lba\fR 28 | force GRUB to use LBA mode even for a buggy 29 | BIOS 30 | .TP 31 | \fB\-\-recheck\fR 32 | probe a device map even if it already exists 33 | .PP 34 | INSTALL_DEVICE can be a GRUB device name or a system device filename. 35 | .PP 36 | grub-install copies GRUB images into the DIR/boot directory specfied by 37 | \fB\-\-root\-directory\fR, and uses the grub shell to install grub into the boot 38 | sector. 39 | .SH "REPORTING BUGS" 40 | Report bugs to . 41 | .SH "SEE ALSO" 42 | The full documentation for 43 | .B grub-install 44 | is maintained as a Texinfo manual. If the 45 | .B info 46 | and 47 | .B grub-install 48 | programs are properly installed at your site, the command 49 | .IP 50 | .B info grub-install 51 | .PP 52 | should give you access to the complete manual. 53 | -------------------------------------------------------------------------------- /evilos/bochsrc.bxrc: -------------------------------------------------------------------------------- 1 | ############################################################### 2 | # bochsrc.txt file for DLX Linux disk image. 3 | ############################################################### 4 | 5 | # how much memory the emulated machine will have 6 | megs:64 7 | 8 | # filename of ROM images 9 | romimage: file=../BIOS-bochs-latest, address=0xf0000 10 | vgaromimage: file=../VGABIOS-lgpl-latest 11 | 12 | 13 | # what disk images will be used 14 | floppya: 1_44=boot.img, status=inserted 15 | #floppyb: 1_44=floppyb.img, status=inserted 16 | 17 | 18 | 19 | # choose the boot disk. 20 | boot: a 21 | 22 | # default config interface is textconfig. 23 | #config_interface: textconfig 24 | #config_interface: wx 25 | 26 | 27 | #display_library: x 28 | # other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga 29 | # where do we send log messages? 30 | log: bochsout.txt 31 | 32 | # disable the mouse, since DLX is text only 33 | mouse: enabled=0 34 | 35 | # enable key mapping, using US layout as default. 36 | # 37 | # NOTE: In Bochs 1.4, keyboard mapping is only 100% implemented on X windows. 38 | # However, the key mapping tables are used in the paste function, so 39 | # in the DLX Linux example I'm enabling keyboard_mapping so that paste 40 | # will work. Cut&Paste is currently implemented on win32 and X windows only. 41 | 42 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map 43 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-fr.map 44 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-de.map 45 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-es.map 46 | -------------------------------------------------------------------------------- /evilos/include/task.h: -------------------------------------------------------------------------------- 1 | #ifndef TASK_H 2 | #define TASK_H 3 | 4 | #include 5 | 6 | #define TS_RUNNING 0 7 | #define TS_RUNABLE 1 8 | #define TS_STOPPED 2 9 | #define TS_WAITING 3 10 | #define TS_SLEEP 4 11 | #define TS_UNINTERRUPTIBLE 15 12 | 13 | struct tss_struct { 14 | unsigned int back_link; 15 | unsigned int esp0, ss0; 16 | unsigned int esp1, ss1; 17 | unsigned int esp2, ss2; 18 | unsigned int cr3; 19 | unsigned int eip; 20 | unsigned int eflags; 21 | unsigned int eax,ecx,edx,ebx; 22 | unsigned int esp, ebp; 23 | unsigned int esi, edi; 24 | unsigned int es, cs, ss, ds, fs, gs; 25 | unsigned int ldt; 26 | unsigned int trace_bitmap; 27 | }; 28 | 29 | struct task_struct { 30 | struct tss_struct tss; 31 | unsigned long long tss_entry; 32 | unsigned long long ldt[2]; 33 | unsigned long long ldt_entry; 34 | int state; 35 | int priority; 36 | struct task_struct *next; 37 | }; 38 | 39 | 40 | #define DEFAULT_LDT_CODE 0x00cffa000000ffffULL 41 | #define DEFAULT_LDT_DATA 0x00cff2000000ffffULL 42 | 43 | #define INITIAL_PRIO 200 44 | 45 | extern struct task_struct TASK0; 46 | extern struct task_struct *current; 47 | 48 | unsigned long long set_tss(unsigned long long tss); 49 | unsigned long long set_ldt(unsigned long long ldt); 50 | unsigned long long get_tss(void); 51 | unsigned long long get_ldt(void); 52 | 53 | void scheduler(void); 54 | void new_task(struct task_struct *task, unsigned int eip, 55 | unsigned int stack0, unsigned int stack3); 56 | void insert_task(struct task_struct *task,int state); 57 | void wake_up(struct task_struct **p); 58 | struct task_struct *get_current_task(); 59 | void sleep_on(struct task_struct **p); 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /evilos/bochsrcdbg.bxrc: -------------------------------------------------------------------------------- 1 | ############################################################### 2 | # bochsrc.txt file for DLX Linux disk image. 3 | ############################################################### 4 | 5 | # how much memory the emulated machine will have 6 | megs: 32 7 | magic_break: enabled=1 8 | # filename of ROM images 9 | romimage: file=../BIOS-bochs-latest, address=0xf0000 10 | vgaromimage: file=../VGABIOS-lgpl-latest 11 | 12 | # what disk images will be used 13 | floppya: 1_44=boot.img, status=inserted 14 | floppyb: 1_44=floppyb.img, status=inserted 15 | 16 | 17 | 18 | # choose the boot disk. 19 | boot: a 20 | 21 | # default config interface is textconfig. 22 | #config_interface: textconfig 23 | #config_interface: wx 24 | 25 | #display_library: x 26 | # other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga 27 | #display_library: win32, options="windebug" 28 | # where do we send log messages? 29 | log: bochsout.txt 30 | 31 | # disable the mouse, since DLX is text only 32 | mouse: enabled=0 33 | 34 | # enable key mapping, using US layout as default. 35 | # 36 | # NOTE: In Bochs 1.4, keyboard mapping is only 100% implemented on X windows. 37 | # However, the key mapping tables are used in the paste function, so 38 | # in the DLX Linux example I'm enabling keyboard_mapping so that paste 39 | # will work. Cut&Paste is currently implemented on win32 and X windows only. 40 | 41 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map 42 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-fr.map 43 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-de.map 44 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-es.map 45 | -------------------------------------------------------------------------------- /evilos/lib/include/gettimeofday.h: -------------------------------------------------------------------------------- 1 | /* 2 | * gettimeofday.h 3 | * Copyright (C) 2000-2003 Michel Lespinasse 4 | * Copyright (C) 1999-2000 Aaron Holtzman 5 | * 6 | * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. 7 | * See http://libmpeg2.sourceforge.net/ for updates. 8 | * 9 | * mpeg2dec is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * mpeg2dec is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program; if not, write to the Free Software 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 | */ 23 | 24 | #if defined(HAVE_STRUCT_TIMEVAL) && defined(HAVE_GETTIMEOFDAY) 25 | #if defined(TIME_WITH_SYS_TIME) 26 | #include 27 | #include 28 | #elif defined(HAVE_SYS_TIME_H) 29 | #include 30 | #else 31 | #include 32 | #endif 33 | #elif defined(HAVE_SYS_TIMEB_H) && defined(HAVE_FTIME) 34 | 35 | #define HAVE_GETTIMEOFDAY 1 36 | #define CUSTOM_GETTIMEOFDAY 1 37 | 38 | struct timeval { 39 | long tv_sec; 40 | long tv_usec; 41 | }; 42 | 43 | void gettimeofday (struct timeval * tp, void * dummy); 44 | 45 | #else 46 | #undef HAVE_GETTIMEOFDAY 47 | #endif 48 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/netboot/timer.h: -------------------------------------------------------------------------------- 1 | /* Defines for routines to implement a low-overhead timer for drivers */ 2 | 3 | /* 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License as 6 | * published by the Free Software Foundation; either version 2, or (at 7 | * your option) any later version. 8 | */ 9 | 10 | #ifndef TIMER_H 11 | #define TIMER_H 12 | 13 | /* Ports for the 8254 timer chip */ 14 | #define TIMER2_PORT 0x42 15 | #define TIMER_MODE_PORT 0x43 16 | 17 | /* Meaning of the mode bits */ 18 | #define TIMER0_SEL 0x00 19 | #define TIMER1_SEL 0x40 20 | #define TIMER2_SEL 0x80 21 | #define READBACK_SEL 0xC0 22 | 23 | #define LATCH_COUNT 0x00 24 | #define LOBYTE_ACCESS 0x10 25 | #define HIBYTE_ACCESS 0x20 26 | #define WORD_ACCESS 0x30 27 | 28 | #define MODE0 0x00 29 | #define MODE1 0x02 30 | #define MODE2 0x04 31 | #define MODE3 0x06 32 | #define MODE4 0x08 33 | #define MODE5 0x0A 34 | 35 | #define BINARY_COUNT 0x00 36 | #define BCD_COUNT 0x01 37 | 38 | /* Timers tick over at this rate */ 39 | #define TICKS_PER_MS 1193 40 | 41 | /* Parallel Peripheral Controller Port B */ 42 | #define PPC_PORTB 0x61 43 | 44 | /* Meaning of the port bits */ 45 | #define PPCB_T2OUT 0x20 /* Bit 5 */ 46 | #define PPCB_SPKR 0x02 /* Bit 1 */ 47 | #define PPCB_T2GATE 0x01 /* Bit 0 */ 48 | 49 | /* Ticks must be between 0 and 65535 (0 == 65536) 50 | because it is a 16 bit counter */ 51 | extern void load_timer2(unsigned int ticks); 52 | extern inline int timer2_running(void) 53 | { 54 | return ((inb(PPC_PORTB) & PPCB_T2OUT) == 0); 55 | } 56 | 57 | extern inline void waiton_timer2(unsigned int ticks) 58 | { 59 | load_timer2(ticks); 60 | while ((inb(PPC_PORTB) & PPCB_T2OUT) == 0) 61 | ; 62 | } 63 | 64 | #endif /* TIMER_H */ 65 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/size_test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check the sizes of Stage 2 and Stage 1.5's. 4 | # Copyright (C) 1999,2004 Free Software Foundation, Inc. 5 | 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 2, or (at your option) 9 | # any later version. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software Foundation, 18 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | # Written by OKUJI Yoshinori 21 | 22 | 23 | # This function checks if the size of the first argument (filename) is 24 | # greater than the second argument (limit). If so, then exit with the 25 | # status 1, otherwise do nothing. 26 | check () 27 | { 28 | file=$1 29 | limit=$2 30 | set dummy `ls -l $file` 31 | size=$6 32 | if test $size -gt $limit; then 33 | echo "$file is too big ($size > $limit)." 34 | exit 1 35 | fi 36 | } 37 | 38 | # The bootloader area of a FFS partition is 14 sectors. 39 | check ffs_stage1_5 7168 40 | 41 | check ufs2_stage1_5 7168 42 | 43 | # Stage 1.5 can be installed in the sectors immediately after MBR in the 44 | # first cylinder, so the size is (63 - 1) sectors. 45 | check fat_stage1_5 31744 46 | 47 | # Likewise. 48 | check e2fs_stage1_5 31744 49 | 50 | # Likewise. 51 | check minix_stage1_5 31744 52 | 53 | # Success. 54 | exit 0 55 | -------------------------------------------------------------------------------- /evilos/vfs.h: -------------------------------------------------------------------------------- 1 | #ifndef _VFS_H 2 | #define _VFS_H 3 | #include "type.h" 4 | 5 | 6 | #define V_FILE 0x01 7 | #define V_DIRECTORY 0x02 8 | #define V_CHARDEVICE 0x03 9 | #define V_BLOCKDEVICE 0x04 10 | #define V_PIPE 0x05 11 | #define V_SYMLINK 0x06 12 | #define V_MOUNTPOINT 0x08 13 | 14 | struct vnode; 15 | 16 | struct vdirent{ 17 | char name[128]; // Filename. 18 | u32 ino; // Inode number. Required by POSIX. 19 | }; 20 | 21 | typedef u32 (*vread_t)(struct vnode*,u32,u32,u8*); 22 | typedef u32 (*vwrite_t)(struct vnode*,u32,u32,u8*); 23 | typedef void (*vopen_t)(struct vnode*); 24 | typedef void (*vclose_t)(struct vnode*); 25 | typedef struct vdirent * (*vreaddir_t)(struct vnode*,u32); 26 | typedef struct vnode * (*vfinddir_t)(struct vnode*,char *name); 27 | 28 | typedef struct vnode{ 29 | char name[128]; // The filename. 30 | u32 mask; // The permissions mask. 31 | u32 uid; // The owning user. 32 | u32 gid; // The owning group. 33 | u32 flags; // Includes the node type. See #defines above. 34 | u32 inode; // This is device-specific - provides a way for a filesystem to identify files. 35 | u32 length; // Size of the file, in bytes. 36 | u32 impl; // An implementation-defined number. 37 | vread_t read; 38 | vwrite_t write; 39 | vopen_t open; 40 | vclose_t close; 41 | vreaddir_t readdir; 42 | vfinddir_t finddir; 43 | struct vnode *ptr; // Used by mountpoints and symlinks. 44 | } v_node_t,vnode_t; 45 | 46 | 47 | u32 vread(vnode_t *node, u32 offset, u32 size, u8 *buffer); 48 | u32 vwrite(vnode_t *node, u32 offset, u32 size, u8 *buffer); 49 | void vopen(vnode_t *node); 50 | void vclose(vnode_t *node); 51 | struct vdirent *vreaddir(vnode_t *node, u32 index); 52 | vnode_t *vfinddir(vnode_t *node, char *name); 53 | 54 | #endif -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/grub.8: -------------------------------------------------------------------------------- 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. 2 | .TH GRUB "8" "May 2005" "grub (GNU GRUB 0.97)" FSF 3 | .SH NAME 4 | grub \- the grub shell 5 | .SH SYNOPSIS 6 | .B grub 7 | [\fIOPTION\fR]... 8 | .SH DESCRIPTION 9 | Enter the GRand Unified Bootloader command shell. 10 | .TP 11 | \fB\-\-batch\fR 12 | turn on batch mode for non-interactive use 13 | .TP 14 | \fB\-\-boot\-drive\fR=\fIDRIVE\fR 15 | specify stage2 boot_drive [default=0x0] 16 | .TP 17 | \fB\-\-config\-file\fR=\fIFILE\fR 18 | specify stage2 config_file [default=/boot/grub/menu.lst] 19 | .TP 20 | \fB\-\-device\-map\fR=\fIFILE\fR 21 | use the device map file FILE 22 | .TP 23 | \fB\-\-help\fR 24 | display this message and exit 25 | .TP 26 | \fB\-\-hold\fR 27 | wait until a debugger will attach 28 | .TP 29 | \fB\-\-install\-partition\fR=\fIPAR\fR 30 | specify stage2 install_partition [default=0x20000] 31 | .TP 32 | \fB\-\-no\-config\-file\fR 33 | do not use the config file 34 | .TP 35 | \fB\-\-no\-curses\fR 36 | do not use curses 37 | .TP 38 | \fB\-\-no\-floppy\fR 39 | do not probe any floppy drive 40 | .TP 41 | \fB\-\-no\-pager\fR 42 | do not use internal pager 43 | .TP 44 | \fB\-\-preset\-menu\fR 45 | use the preset menu 46 | .TP 47 | \fB\-\-probe\-second\-floppy\fR 48 | probe the second floppy drive 49 | .TP 50 | \fB\-\-read\-only\fR 51 | do not write anything to devices 52 | .TP 53 | \fB\-\-verbose\fR 54 | print verbose messages 55 | .TP 56 | \fB\-\-version\fR 57 | print version information and exit 58 | .SH "REPORTING BUGS" 59 | Report bugs to . 60 | .SH "SEE ALSO" 61 | The full documentation for 62 | .B grub 63 | is maintained as a Texinfo manual. If the 64 | .B info 65 | and 66 | .B grub 67 | programs are properly installed at your site, the command 68 | .IP 69 | .B info grub 70 | .PP 71 | should give you access to the complete manual. 72 | -------------------------------------------------------------------------------- /evilos/bochsrc: -------------------------------------------------------------------------------- 1 | ############################################################### 2 | # bochsrc.txt file for DLX Linux disk image. 3 | ############################################################### 4 | 5 | # how much memory the emulated machine will have 6 | megs: 32 7 | #magic_break: enabled=1 8 | 9 | # filename of ROM images 10 | romimage: file=$BXSHARE/BIOS-bochs-latest 11 | vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest 12 | 13 | # what disk images will be used 14 | floppya: 1_44=boot.img, status=inserted 15 | #floppyb: 1_44=floppyb.img, status=inserted 16 | 17 | # hard disk 18 | #ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14 19 | #ata0-master: type=disk, path="hd10meg.img", cylinder#s=306, heads=4, spt=17 20 | 21 | # choose the boot disk. 22 | boot: a 23 | 24 | # default config interface is textconfig. 25 | #config_interface: textconfig 26 | #config_interface: wx 27 | 28 | #display_library: sdl 29 | display_library: x 30 | # other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga 31 | 32 | # where do we send log messages? 33 | log: bochsout.txt 34 | 35 | # disable the mouse, since DLX is text only 36 | mouse: enabled=0 37 | 38 | #gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0 39 | # enable key mapping, using US layout as default. 40 | # 41 | # NOTE: In Bochs 1.4, keyboard mapping is only 100% implemented on X windows. 42 | # However, the key mapping tables are used in the paste function, so 43 | # in the DLX Linux example I'm enabling keyboard_mapping so that paste 44 | # will work. Cut&Paste is currently implemented on win32 and X windows only. 45 | 46 | keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map 47 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-fr.map 48 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-de.map 49 | #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-es.map 50 | -------------------------------------------------------------------------------- /evilos/mouse.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | char mousemoves=0; 6 | char mouse_byte[4]; //signed char 7 | char mouse_haswheel=0; // zero indicates mouse has no wheel 8 | char wasdrag=0; 9 | 10 | void do_mouse(void){ 11 | static unsigned char mousecount=0; 12 | mousemoves=0; 13 | if ((inb(0x64) & 0x01) != 0) { 14 | mouse_byte[mousecount++]=inb(0x60); 15 | if (mousecount >= 3+mouse_haswheel) { 16 | mousecount=0; 17 | mousemoves=1; 18 | 19 | } 20 | } 21 | print_c('0'+mousecount, WHITE, BLACK); 22 | //vesa_draw_string(0,180,"aaddddddddddddddddtt"); 23 | outb(0x20,0x20); 24 | outb(0x20,0xA0); 25 | } 26 | 27 | 28 | void mouse_wait(char type){ 29 | unsigned int time_out=100000; //unsigned int 30 | if(type==0){ 31 | while(time_out--){//data 32 | if((inb(0x64) & 1)==1){ 33 | break; 34 | } 35 | } 36 | return; 37 | }else{ 38 | while(time_out--){//siga 39 | if((inb(0x64) & 2)==0){ 40 | return; 41 | } 42 | } 43 | return; 44 | } 45 | } 46 | void mouse_write(unsigned char data){ 47 | mouse_wait(1); 48 | outb( 0xD4,0x64); 49 | mouse_wait(1); 50 | outb(data,0x60); 51 | } 52 | unsigned char mouse_read(){ 53 | mouse_wait(0); 54 | return inb(0x60); 55 | } 56 | 57 | void mouse_install(){ 58 | unsigned char status; 59 | mouse_wait(1); 60 | outb(0xa8,0x64);//enable device 61 | mouse_wait(1); 62 | outb(0x20,0x64); 63 | mouse_wait(0); 64 | status=(inb(0x60)|2);//enable interrupt 65 | mouse_wait(1); 66 | outb(0x60,0x64); 67 | mouse_wait(1); 68 | outb(status,0x60); 69 | mouse_write(0xF6); 70 | mouse_read(); 71 | mouse_write(0xF4); 72 | mouse_read(); 73 | //vesa_draw_string(0,100,"mouse_install"); 74 | 75 | /*outb(0xa8,0x64); 76 | outb(0xd4,0x64); 77 | outb(0xf4,0x60); 78 | outb(0x60,0x64); 79 | outb(0x47,0x60);*/ 80 | outb(inb(0x21)&0xfb, 0x21); 81 | outb(inb(0xa1)&0xef, 0xa1); 82 | } -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/terminfo.h: -------------------------------------------------------------------------------- 1 | /* terminfo.h - read a terminfo entry from the command line */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2002,2003,2004 Free Software Foundation, Inc. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef GRUB_TERMCAP_HEADER 22 | #define GRUB_TERMCAP_HEADER 1 23 | 24 | #define TERMINFO_LEN 40 25 | 26 | typedef struct terminfo 27 | { 28 | char name[TERMINFO_LEN]; 29 | char cursor_address[TERMINFO_LEN]; 30 | char clear_screen[TERMINFO_LEN]; 31 | char enter_standout_mode[TERMINFO_LEN]; 32 | char exit_standout_mode[TERMINFO_LEN]; 33 | } 34 | terminfo; 35 | 36 | 37 | /* Function prototypes. */ 38 | char *ti_escape_memory (const char *in, const char *end); 39 | char *ti_escape_string (const char *in); 40 | char *ti_unescape_memory (const char *in, const char *end); 41 | char *ti_unescape_string (const char *in); 42 | 43 | void ti_set_term (const struct terminfo *new); 44 | void ti_get_term (struct terminfo *copy); 45 | 46 | void ti_cursor_address (int x, int y); 47 | void ti_clear_screen (void); 48 | void ti_enter_standout_mode (void); 49 | void ti_exit_standout_mode (void); 50 | 51 | #endif /* ! GRUB_TERMCAP_HEADER */ 52 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/lib/device.h: -------------------------------------------------------------------------------- 1 | /* device.h - Define macros and declare prototypes for device.c */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 1999,2000,2004 Free Software Foundation, Inc. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef DEVICE_MAP_HEADER 22 | #define DEVICE_MAP_HEADER 1 23 | 24 | /* The maximum number of BIOS disks. */ 25 | #define NUM_DISKS 256 26 | 27 | /* Simulated disk sizes. */ 28 | #define DEFAULT_FD_CYLINDERS 80 29 | #define DEFAULT_FD_HEADS 2 30 | #define DEFAULT_FD_SECTORS 18 31 | #define DEFAULT_HD_CYLINDERS 620 32 | #define DEFAULT_HD_HEADS 128 33 | #define DEFAULT_HD_SECTORS 63 34 | 35 | /* Function prototypes. */ 36 | extern void get_drive_geometry (struct geometry *geom, char **map, int drive); 37 | extern int check_device (const char *device); 38 | extern int init_device_map (char ***map, const char *map_file, 39 | int no_floppies); 40 | extern void restore_device_map (char **map); 41 | 42 | #ifdef __linux__ 43 | extern int is_disk_device (char **map, int drive); 44 | extern int write_to_partition (char **map, int drive, int partition, 45 | int offset, int size, const char *buf); 46 | #endif /* __linux__ */ 47 | 48 | #endif /* DEVICE_MAP_HEADER */ 49 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/menu.lst: -------------------------------------------------------------------------------- 1 | # 2 | # Sample boot menu configuration file 3 | # 4 | 5 | # Boot automatically after 30 secs. 6 | timeout 30 7 | 8 | # By default, boot the first entry. 9 | default 0 10 | 11 | # Fallback to the second entry. 12 | fallback 1 13 | 14 | # For booting GNU/Hurd 15 | title GNU/Hurd 16 | root (hd0,0) 17 | kernel /boot/gnumach.gz root=hd0s1 18 | module /boot/serverboot.gz 19 | 20 | # For booting GNU/Linux 21 | title GNU/Linux 22 | root (hd1,0) 23 | kernel /vmlinuz root=/dev/hdb1 24 | #initrd /initrd.img 25 | 26 | # For booting GNU/kFreeBSD 27 | title GNU/kFreeBSD 28 | root (hd0,2,a) 29 | kernel /boot/loader.gz 30 | 31 | # For booting GNU/kNetBSD 32 | title GNU/kNetBSD 33 | root (hd0,2,a) 34 | kernel --type=netbsd /boot/knetbsd.gz 35 | 36 | # For booting Mach (getting kernel from floppy) 37 | title Utah Mach4 multiboot 38 | root (hd0,2) 39 | pause Insert the diskette now!! 40 | kernel (fd0)/boot/kernel root=hd0s3 41 | module (fd0)/boot/bootstrap 42 | 43 | # For booting FreeBSD 44 | title FreeBSD 45 | root (hd0,2,a) 46 | kernel /boot/loader 47 | 48 | # For booting NetBSD 49 | title NetBSD 50 | root (hd0,2,a) 51 | kernel --type=netbsd /netbsd 52 | 53 | # For booting OpenBSD 54 | title OpenBSD 55 | root (hd0,2,a) 56 | kernel --type=netbsd /bsd 57 | 58 | # For booting OS/2 59 | title OS/2 60 | root (hd0,1) 61 | makeactive 62 | # chainload OS/2 bootloader from the first sector 63 | chainloader +1 64 | # This is similar to "chainload", but loads a specific file 65 | #chainloader /boot/chain.os2 66 | 67 | # For booting Windows NT or Windows95 68 | title Windows NT / Windows 95 boot menu 69 | rootnoverify (hd0,0) 70 | makeactive 71 | chainloader +1 72 | # For loading DOS if Windows NT is installed 73 | # chainload /bootsect.dos 74 | 75 | # For installing GRUB into the hard disk 76 | title Install GRUB into the hard disk 77 | root (hd0,0) 78 | setup (hd0) 79 | 80 | # Change the colors. 81 | title Change the colors 82 | color light-green/brown blink-red/blue 83 | -------------------------------------------------------------------------------- /evilos/lib/ctype.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int isalnum(int c) 4 | { 5 | if ( isdigit(c) != 0 ) return 1; 6 | if ( isalpha(c) != 0 ) return 1; 7 | return 0; 8 | } 9 | 10 | int isalpha(int c) 11 | { 12 | if ( isupper(c) != 0 ) return 1; 13 | if ( islower(c) != 0 ) return 1; 14 | return 0; 15 | } 16 | 17 | 18 | int isascii(int c) 19 | { 20 | if ( (c - (c & 0x7F)) != 0 ) return 0; 21 | return 1; 22 | } 23 | 24 | int iscntrl(int c) 25 | { 26 | if ( (c >= 0x00) && (c <= 0x1F) ) return 1; 27 | if ( c == 0x7F ) return 1; 28 | return 0; 29 | } 30 | 31 | int isdigit(int c) 32 | { 33 | if ( (c <= '9') && (c >= '0') ) return 1; 34 | return 0; 35 | } 36 | 37 | int isgraph(int c) 38 | { 39 | if ( isspace(c) == 0 ) return 1; 40 | return 0; 41 | } 42 | 43 | int islower(int c) 44 | { 45 | if ( (c >= 'a') && (c <= 'z') ) return 1; 46 | return 0; 47 | } 48 | 49 | int isprint(int c) 50 | { 51 | if ( (c <= 0x7E) && ( c >= 0x20 ) ) return 1; 52 | return 0; 53 | } 54 | 55 | int ispunct(int c) 56 | { 57 | if ( isalnum(c) != 0 ) return 0; 58 | if ( isspace(c) != 0 ) return 0; 59 | return 1; 60 | } 61 | 62 | int isspace(int c) 63 | { 64 | switch (c) 65 | { 66 | case ' ' : 67 | case '\f': 68 | case '\n': 69 | case '\r': 70 | case '\t': 71 | case '\v': 72 | return 1; 73 | } 74 | return 0; 75 | } 76 | 77 | int isupper(int c) 78 | { 79 | if ( (c >= 'A') && (c <= 'Z') ) return 1; 80 | return 0; 81 | } 82 | 83 | int isxdigit(int c) 84 | { 85 | if ( (toupper(c) <= 'F') && (toupper(c) >= 'A') ) return 1; 86 | if ( (toupper(c) <= '9') && (toupper(c) >= '0') ) return 1; 87 | return 0; 88 | } 89 | 90 | int toascii(int c) 91 | { 92 | return (c & 0x7F); 93 | } 94 | 95 | 96 | int tolower(int c) 97 | { 98 | if ( (c >= 'A') && (c <= 'Z') ) return (c - 'A' + 'a'); 99 | return c; 100 | } 101 | 102 | int toupper(int c) 103 | { 104 | if ( (c >= 'a') && (c <= 'z') ) return (c - 'a' + 'A'); 105 | return c; 106 | } 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/stage1_5.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2001,2002 Free Software Foundation, Inc. 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation; either version 2 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program; if not, write to the Free Software 17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | */ 19 | 20 | #include "shared.h" 21 | 22 | static int saved_sector = -1; 23 | 24 | static void 25 | disk_read_savesect_func (int sector, int offset, int length) 26 | { 27 | saved_sector = sector; 28 | } 29 | 30 | void 31 | cmain (void) 32 | { 33 | grub_printf ("\n\nGRUB loading, please wait...\n"); 34 | 35 | /* 36 | * Here load the true second-stage boot-loader. 37 | */ 38 | 39 | if (grub_open (config_file)) 40 | { 41 | int ret; 42 | 43 | disk_read_hook = disk_read_savesect_func; 44 | grub_read ((char *) 0x8000, SECTOR_SIZE * 2); 45 | disk_read_hook = NULL; 46 | 47 | /* Sanity check: catch an internal error. */ 48 | if (saved_sector == -1) 49 | { 50 | grub_printf ("internal error: the second sector of Stage 2 is unknown."); 51 | stop (); 52 | } 53 | 54 | ret = grub_read ((char *) 0x8000 + SECTOR_SIZE * 2, -1); 55 | 56 | grub_close (); 57 | 58 | if (ret) 59 | chain_stage2 (0, 0x8200, saved_sector); 60 | } 61 | 62 | /* 63 | * If not, then print error message and die. 64 | */ 65 | 66 | print_error (); 67 | 68 | stop (); 69 | } 70 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-common.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-common.o libgrub_a-common.o: common.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-cmdline.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-cmdline.o libgrub_a-cmdline.o: cmdline.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-md5.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-md5.o libgrub_a-md5.o: md5.c md5.h shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h 17 | 18 | md5.h: 19 | 20 | shared.h: 21 | 22 | ../config.h: 23 | 24 | ../stage1/stage1.h: 25 | 26 | /usr/include/ncurses/curses.h: 27 | 28 | /usr/include/ncurses/ncurses_dll.h: 29 | 30 | /usr/include/stdio.h: 31 | 32 | /usr/include/features.h: 33 | 34 | /usr/include/sys/cdefs.h: 35 | 36 | /usr/include/gnu/stubs.h: 37 | 38 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 39 | 40 | /usr/include/bits/types.h: 41 | 42 | /usr/include/bits/wordsize.h: 43 | 44 | /usr/include/bits/typesizes.h: 45 | 46 | /usr/include/libio.h: 47 | 48 | /usr/include/_G_config.h: 49 | 50 | /usr/include/wchar.h: 51 | 52 | /usr/include/bits/wchar.h: 53 | 54 | /usr/include/gconv.h: 55 | 56 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 57 | 58 | /usr/include/bits/stdio_lim.h: 59 | 60 | /usr/include/bits/sys_errlist.h: 61 | 62 | /usr/include/bits/stdio.h: 63 | 64 | /usr/include/ncurses/unctrl.h: 65 | 66 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 67 | 68 | mb_header.h: 69 | 70 | mb_info.h: 71 | 72 | /usr/include/setjmp.h: 73 | 74 | /usr/include/bits/setjmp.h: 75 | 76 | /usr/include/bits/sigset.h: 77 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-stage2.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-stage2.o libgrub_a-stage2.o: stage2.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h term.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | term.h: 77 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-tparm.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-tparm.o libgrub_a-tparm.o: tparm.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h tparm.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | tparm.h: 77 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-gunzip.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-gunzip.o libgrub_a-gunzip.o: gunzip.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_ext2fs.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_ext2fs.o libgrub_a-fsys_ext2fs.o: fsys_ext2fs.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_minix.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_minix.o libgrub_a-fsys_minix.o: fsys_minix.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-serial.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-serial.o libgrub_a-serial.o: serial.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h serial.h term.h terminfo.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | serial.h: 77 | 78 | term.h: 79 | 80 | terminfo.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-char_io.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-char_io.o libgrub_a-char_io.o: char_io.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h term.h hercules.h serial.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | term.h: 77 | 78 | hercules.h: 79 | 80 | serial.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_reiserfs.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_reiserfs.o libgrub_a-fsys_reiserfs.o: fsys_reiserfs.c \ 2 | shared.h ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-boot.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-boot.o libgrub_a-boot.o: boot.c shared.h ../config.h \ 2 | ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h freebsd.h imgact_aout.h i386-elf.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | freebsd.h: 77 | 78 | imgact_aout.h: 79 | 80 | i386-elf.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_fat.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_fat.o libgrub_a-fsys_fat.o: fsys_fat.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h fat.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | 80 | fat.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_jfs.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_jfs.o libgrub_a-fsys_jfs.o: fsys_jfs.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h jfs.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | 80 | jfs.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_xfs.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_xfs.o libgrub_a-fsys_xfs.o: fsys_xfs.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h xfs.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | 80 | xfs.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-terminfo.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-terminfo.o libgrub_a-terminfo.o: terminfo.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h terminfo.h tparm.h serial.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | terminfo.h: 77 | 78 | tparm.h: 79 | 80 | serial.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/docs/boot.S: -------------------------------------------------------------------------------- 1 | /* boot.S - bootstrap the kernel */ 2 | /* Copyright (C) 1999, 2001 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 2 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #define ASM 1 19 | #include 20 | 21 | .text 22 | 23 | .globl start, _start 24 | start: 25 | _start: 26 | jmp multiboot_entry 27 | 28 | /* Align 32 bits boundary. */ 29 | .align 4 30 | 31 | /* Multiboot header. */ 32 | multiboot_header: 33 | /* magic */ 34 | .long MULTIBOOT_HEADER_MAGIC 35 | /* flags */ 36 | .long MULTIBOOT_HEADER_FLAGS 37 | /* checksum */ 38 | .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS) 39 | #ifndef __ELF__ 40 | /* header_addr */ 41 | .long multiboot_header 42 | /* load_addr */ 43 | .long _start 44 | /* load_end_addr */ 45 | .long _edata 46 | /* bss_end_addr */ 47 | .long _end 48 | /* entry_addr */ 49 | .long multiboot_entry 50 | #endif /* ! __ELF__ */ 51 | 52 | multiboot_entry: 53 | /* Initialize the stack pointer. */ 54 | movl $(stack + STACK_SIZE), %esp 55 | 56 | /* Reset EFLAGS. */ 57 | pushl $0 58 | popf 59 | 60 | /* Push the pointer to the Multiboot information structure. */ 61 | pushl %ebx 62 | /* Push the magic value. */ 63 | pushl %eax 64 | 65 | /* Now enter the C main function... */ 66 | call EXT_C(cmain) 67 | 68 | /* Halt. */ 69 | pushl $halt_message 70 | call EXT_C(printf) 71 | 72 | loop: hlt 73 | jmp loop 74 | 75 | halt_message: 76 | .asciz "Halted." 77 | 78 | /* Our stack area. */ 79 | .comm stack, STACK_SIZE 80 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_ufs2.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_ufs2.o libgrub_a-fsys_ufs2.o: fsys_ufs2.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h ufs2.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | 80 | ufs2.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_vstafs.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_vstafs.o libgrub_a-fsys_vstafs.o: fsys_vstafs.c shared.h \ 2 | ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h vstafs.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | 80 | vstafs.h: 81 | -------------------------------------------------------------------------------- /evilos/tools/grub-vbe-patch/stage2/.deps/libgrub_a-fsys_iso9660.Po: -------------------------------------------------------------------------------- 1 | libgrub_a-fsys_iso9660.o libgrub_a-fsys_iso9660.o: fsys_iso9660.c \ 2 | shared.h ../config.h ../stage1/stage1.h /usr/include/ncurses/curses.h \ 3 | /usr/include/ncurses/ncurses_dll.h /usr/include/stdio.h \ 4 | /usr/include/features.h /usr/include/sys/cdefs.h \ 5 | /usr/include/gnu/stubs.h \ 6 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h \ 7 | /usr/include/bits/types.h /usr/include/bits/wordsize.h \ 8 | /usr/include/bits/typesizes.h /usr/include/libio.h \ 9 | /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ 10 | /usr/include/gconv.h \ 11 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/ncurses/unctrl.h \ 14 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h mb_header.h \ 15 | mb_info.h /usr/include/setjmp.h /usr/include/bits/setjmp.h \ 16 | /usr/include/bits/sigset.h filesys.h pc_slice.h iso9660.h 17 | 18 | shared.h: 19 | 20 | ../config.h: 21 | 22 | ../stage1/stage1.h: 23 | 24 | /usr/include/ncurses/curses.h: 25 | 26 | /usr/include/ncurses/ncurses_dll.h: 27 | 28 | /usr/include/stdio.h: 29 | 30 | /usr/include/features.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/wordsize.h: 41 | 42 | /usr/include/bits/typesizes.h: 43 | 44 | /usr/include/libio.h: 45 | 46 | /usr/include/_G_config.h: 47 | 48 | /usr/include/wchar.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | /usr/include/gconv.h: 53 | 54 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h: 55 | 56 | /usr/include/bits/stdio_lim.h: 57 | 58 | /usr/include/bits/sys_errlist.h: 59 | 60 | /usr/include/bits/stdio.h: 61 | 62 | /usr/include/ncurses/unctrl.h: 63 | 64 | /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdbool.h: 65 | 66 | mb_header.h: 67 | 68 | mb_info.h: 69 | 70 | /usr/include/setjmp.h: 71 | 72 | /usr/include/bits/setjmp.h: 73 | 74 | /usr/include/bits/sigset.h: 75 | 76 | filesys.h: 77 | 78 | pc_slice.h: 79 | 80 | iso9660.h: 81 | --------------------------------------------------------------------------------