Commit Graph

  • ddd8c9fd71 split mm_map() and mm_page_alloc() into regular and "early" versions (mm_early_map() and mm_early_page_alloc()); removed mm_use_virtual_offset flag josh 2009-07-24 14:51:23 +00:00
  • d7be0159c9 created /kernel/isr subdir, moved isr.asm from boot to isr module, added interrupts.cc for isr() main function and isr_bootstrap() routine josh 2009-07-24 14:19:31 +00:00
  • d352afd079 added int_stack_t type in hos_types.h for interrupt stack access josh 2009-07-24 14:02:11 +00:00
  • 1105e6e203 optimized isr.asm a bit josh 2009-07-24 13:50:29 +00:00
  • 339eef5976 build process generating assembly list files for .asm sources; ignoring .lst files in /kernel/boot josh 2009-07-23 22:03:57 +00:00
  • 6a75fdfc10 Added isr.asm with 50 isr_%d labels defined, ready to call isr() josh 2009-07-23 22:02:11 +00:00
  • 2f810cc2ec Reduced grub timeout in menu.lst josh 2009-07-22 21:00:18 +00:00
  • 63289deade updated include/portio.h to not use gcc-specific "statement blocks" but instead have inportX() be static inline functions. Verified that the compiler does in fact inline them josh 2009-07-20 19:21:20 +00:00
  • e70b1a5213 removed special cases for formatting of lowest signed values due to Corrin' rationale; fixed formatting routines to handle formatting "0" values josh 2009-07-20 19:10:54 +00:00
  • c21caccb1f printing memory map, used pages, and free pages on boot josh 2009-07-16 00:05:44 +00:00
  • fd02ee26e1 added kputs_pad(); implemented padding in kprintf(); put some padding tests in k_main() josh 2009-07-15 14:53:58 +00:00
  • ecd74fe35b starting kio change josh 2009-07-15 02:47:46 +00:00
  • 08af04897c added include/portio.h; using it to update cursor position in kputc() josh 2009-07-14 20:37:10 +00:00
  • 1dd8250048 moved call to stack_bootstrap() into mm_bootstrap() since stack_bootstrap() relies on calling mm_map() and mm_use_virtual_offset was getting unset at the end of mm_bootstrap(); calling k_main() now works! josh 2009-07-14 16:08:06 +00:00
  • 118021a0f6 added Makefile commands to build a binary and an ELF kernel and do disassemble the ELF version josh 2009-07-14 13:50:29 +00:00
  • bf9c7d74eb added mm/stack module; initializing "permanent" stack for kernel use while paging, crashing when calling k_main() though... josh 2009-07-14 13:31:08 +00:00
  • cf2d28f5ce added k_main.cc, need to set up a stack before calling k_main() josh 2009-07-14 03:34:16 +00:00
  • 594625b0fa changed lgdt instruction to load from linear address instead of physical address for [mm_gdtr] josh 2009-07-14 00:26:40 +00:00
  • df719b4281 added code to reset segmentation and enable paging; added fmt_xl2a() in kio; added debug prints in k_bootstrap() since kernel is crashing when trying to enable paging josh 2009-07-13 22:58:48 +00:00
  • 0fb590a407 changed kio routines to accept const char *; added MAKE_DESCRIPTOR() macro to mm josh 2009-07-13 22:38:53 +00:00
  • 5b9651299e fixed a few formatting and string bugs, kprintf() working when called during bootstrapping! josh 2009-07-13 21:54:27 +00:00
  • a4d497544e added memcpy{,w,d}(), memset{,w,d}(); filled in kputc() josh 2009-07-13 21:42:18 +00:00
  • 6a69fd06ec filled in a few more formatting routines; linking with libgcc.a to work with 64-bit unsigned integer division/modulus josh 2009-07-13 20:08:16 +00:00
  • 6a8c7431ff hos_defines.h should include hos_types.h first josh 2009-07-13 17:15:39 +00:00
  • be17cde305 added devices and lang directories, added skeleton kio and string modules josh 2009-07-13 15:34:39 +00:00
  • 1aace858da Moved page_directory from an allocated object to a pointer to a run-time allocated page of RAM josh 2009-07-06 21:48:04 +00:00
  • 784978b131 boot.asm comments josh 2009-07-05 16:38:47 +00:00
  • 54b42c0226 added set_cr3() macro and called it to set the PDBR josh 2009-07-04 00:22:18 +00:00
  • e55f2cdfc4 mapping in kernel virtual address space josh 2009-07-03 20:48:51 +00:00
  • edb1a6426d minor mm.cc comment changes josh 2009-07-02 19:26:52 +00:00
  • f07e34c849 updated link script to pack things better josh 2009-07-02 03:43:44 +00:00
  • e907902ca0 changed mm functions to C++ linkage josh 2009-07-02 03:35:24 +00:00
  • a8947f8aa3 added mm_map() to map addresses and mm_page_alloc() to allocate physical pages josh 2009-07-02 03:28:25 +00:00
  • 2bddc1d428 filled out more of mm_bootstrap() including initializing the free page linked list josh 2009-07-02 01:09:09 +00:00
  • bfb4f3bdd0 changed k_bootstrap from C to C++ source file josh 2009-07-01 21:17:24 +00:00
  • db192f6d36 added CXXFLAGS to disable rtti and exceptions; added C++ support to header files; moved mm.c to mm.cc to use C++ functionality josh 2009-07-01 19:52:18 +00:00
  • 2faa2cc8d6 added mm_bootstrap() skeleton function josh 2009-07-01 17:34:52 +00:00
  • 02c2b25ded added DEPS definition in subdir.mak so dependency files are automatically generated again josh 2009-07-01 12:39:43 +00:00
  • 39ea3f231b added bootstrap_stack so the temporary stack is not in the same place as the page directory josh 2009-07-01 01:53:43 +00:00
  • 981a01ba9b added linker script symbols and address macros to hos_defines.h josh 2009-07-01 01:51:02 +00:00
  • 3eea1b4fd3 building in linux with i586-elf cross-compiler as well josh 2009-06-30 23:31:30 +00:00
  • be8d6015ff Added mm_record_mmap_entry() and calls to it in k_bootstrap(). josh 2009-06-30 21:29:44 +00:00
  • 6ea8fe1a27 Added k_bootstrap.c, k_early_panic.[ch] Calling k_bootstrap() from boot.asm in segmented mode josh 2009-06-30 20:12:39 +00:00
  • d4f5a0b244 Added multiboot.h josh 2009-06-30 18:17:20 +00:00
  • 1548e7327a added SUBDIRS support to subdir.mak for recursive building josh 2009-06-30 17:54:09 +00:00
  • 90e03d4f95 Added include folder with hos_types.h and hos_defines.h Added mm build subdir with mm.c Updated subdir.mak to build $(subdir)_all.o instead of $(subdir).o Updated main Makefile to pass SUBDIR in to subdirectory builds, add $(HOS_TOPLEVEL)/include to compiler include path, and made the linker write a map file Updated boot.asm to use the page_directory symbol from the .bss section defined in mm.o as its temporary stack area josh 2009-06-29 19:55:50 +00:00
  • fb807847bf fixed SUBDIRS_clean definition in Makefile josh 2009-06-29 13:40:33 +00:00
  • d8f7e731e1 moved boot.asm into kernel/boot, added kernel/boot/Makefile using new subdir.mak josh 2009-06-25 21:57:50 +00:00
  • a5ca4348d9 changing Makefile system a bit, again josh 2009-06-25 19:46:49 +00:00
  • 8fe8d78051 realigned assembly a bit josh 2009-06-25 19:12:25 +00:00
  • 1b0da72e5a moved PLATFORM and associated definitions from Makefile to kernel/Makefile so the kernel can be built by itself josh 2009-06-25 18:03:39 +00:00
  • 8493002072 removed jump at start symbol since the bootloader starts after the multiboot header anyway; added diagnostic characters "a", "b" josh 2009-06-25 15:16:01 +00:00
  • 1ba82ac77f added svn:ignore to a few directories; kernel linked to virtual address 0xE000_0000 and running there in segmented mode josh 2009-06-25 15:02:46 +00:00
  • 13f467ca47 i guess genisoimage likes to modify iso/boot/grub/stage2_eltorito josh 2009-06-25 13:17:48 +00:00
  • 81a56c9fcf build system works using i586-elf cross-compiler in cygwin josh 2009-06-25 13:16:22 +00:00
  • 788597b6f4 added linker script josh 2009-06-24 21:53:32 +00:00
  • 09fb19df15 little Makefile change josh 2009-06-24 18:30:57 +00:00
  • af529606e9 load address changed to 1MB josh 2007-07-25 03:30:16 +00:00
  • f58228c559 fixed sample boot.asm, changed Makefile target to $(ISO) josh 2007-07-25 03:16:59 +00:00
  • 8f00324b30 bootable with small multiboot kernel josh 2007-07-25 03:00:58 +00:00
  • bdf4ce8ae8 added clean target josh 2007-07-25 01:18:24 +00:00
  • e124ac5b1b Makefiles created, added initial iso directory josh 2007-07-25 01:08:19 +00:00
  • fba9e3ea54 created kernel directory josh 2007-07-23 03:32:19 +00:00
  • 43d1ca0e18 initial creation of trunk directory josh 2007-07-23 03:11:24 +00:00
  • 0aaf5db5ad Import backup from 2006-01-02 v0.16 v0.16 Josh Holtrop 2006-01-02 22:00:00 -05:00
  • 89d962e33a Import backup from 2005-12-31 Josh Holtrop 2005-12-31 22:00:00 -05:00
  • 712337c485 Import backup from 2005-12-30 Josh Holtrop 2005-12-30 22:00:00 -05:00
  • 761e3f0483 Import backup from 2005-12-26 Josh Holtrop 2005-12-26 22:00:00 -05:00
  • 98abfc2af0 Import backup from 2005-12-19 Josh Holtrop 2005-12-19 22:00:00 -05:00
  • 677551fba5 Import backup from 2005-11-03 Josh Holtrop 2005-11-03 22:00:00 -05:00
  • 7daa1c5336 Import backup from 2005-11-01 Josh Holtrop 2005-11-01 22:00:00 -05:00
  • 79ca453f66 Import backup from 2005-09-13 Josh Holtrop 2005-09-13 22:00:00 -04:00
  • 0521733e20 Import backup from 2005-09-11 Josh Holtrop 2005-09-11 22:00:00 -04:00
  • 396c5f3452 Import backup from 2005-09-01 Josh Holtrop 2005-09-01 22:00:00 -04:00
  • 9e03bfc8b6 Import backup from 2005-08-30 Josh Holtrop 2005-08-30 22:00:00 -04:00
  • 2b67ff6f49 Import backup from 2005-08-29 Josh Holtrop 2005-08-29 22:00:00 -04:00
  • daa29212d0 Import backup from 2005-08-27 Josh Holtrop 2005-08-27 22:00:00 -04:00
  • 83a5b032f8 Import backup from 2005-08-25 Josh Holtrop 2005-08-25 22:00:00 -04:00
  • 345ef6c9f3 Import backup from 2005-08-18 Josh Holtrop 2005-08-18 22:00:00 -04:00
  • e1682a2fe7 Import backup from 2005-08-17 Josh Holtrop 2005-08-17 22:00:00 -04:00
  • 2cefd9441c Import backup from 2005-06-21 Josh Holtrop 2005-06-21 22:00:00 -04:00
  • da90bcc164 Import backup from 2005-06-20 Josh Holtrop 2005-06-20 22:00:00 -04:00
  • 4689c11cc8 Import backup from 2005-06-13 Josh Holtrop 2005-06-13 22:00:00 -04:00
  • 692cf2fc08 Import backup from 2005-06-02 Josh Holtrop 2005-06-02 22:00:00 -04:00
  • b0132c866e Import backup from 2005-05-12 Josh Holtrop 2005-05-12 22:00:00 -04:00
  • 14792ef954 Import backup from 2005-03-21 Josh Holtrop 2005-03-21 22:00:00 -05:00
  • bb8ff09e3f Import backup from 2005-03-11 Josh Holtrop 2005-03-11 22:00:00 -05:00
  • dfeabc39aa Import backup from 2005-02-23 Josh Holtrop 2005-02-23 22:00:00 -05:00
  • 14148e4d80 Import backup from 2005-02-15 Josh Holtrop 2005-02-15 22:00:00 -05:00
  • 80774c48fe Import backup from 2005-02-07 Josh Holtrop 2005-02-07 22:00:00 -05:00
  • 862b36b37b Import backup from 2005-02-01 Josh Holtrop 2005-02-01 22:00:00 -05:00
  • 4638656aaf Import backup from 2005-01-31 Josh Holtrop 2005-01-31 22:00:00 -05:00
  • 3381041a8f Import backup from 2005-01-26 Josh Holtrop 2005-01-26 22:00:00 -05:00
  • f09ed66826 Import backup from 2005-01-18 Josh Holtrop 2005-01-18 22:00:00 -05:00
  • ba5906c7a3 Import backup from 2005-01-14 Josh Holtrop 2005-01-14 22:00:00 -05:00
  • 05183a3949 Import backup from 2005-01-05 Josh Holtrop 2005-01-05 22:00:00 -05:00
  • d8580a9393 Import backup from 2005-01-04 Josh Holtrop 2005-01-04 22:00:00 -05:00
  • 50285aa33b Import backup from 2005-01-01 Josh Holtrop 2005-01-01 22:00:00 -05:00
  • ee63a84c0e Import backup from 2004-12-31 Josh Holtrop 2004-12-31 22:00:00 -05:00
  • 76a243d894 Import backup from 2004-12-30 Josh Holtrop 2004-12-30 22:00:00 -05:00