Commit graph

  • 4f8f38e167 add license master mykola2312 2024-10-24 14:59:55 +03:00
  • c3c1cb4ef3 implement BIOS CHS encoding, but somewhere stack is being fucked up mykola2312 2024-08-07 18:40:51 +03:00
  • 2a66650ee0 fix bug when edx caused too big number for division mykola2312 2024-08-07 18:00:01 +03:00
  • c0e1b0efc2 implement LBA to CHS conversion in assembly mykola2312 2024-08-07 17:31:28 +03:00
  • 721cd172c8 damn it I got wrong formula for LBA CHS conversion mykola2312 2024-08-07 16:53:50 +03:00
  • c5498690c6 begin working on LBA to CHS conversion in assembly mykola2312 2024-08-07 16:39:35 +03:00
  • cadf502366 add reference links mykola2312 2024-08-07 15:32:52 +03:00
  • 2658cb74a9 implement CHS and LBA conversion functions. seem to be working right mykola2312 2024-08-07 15:30:29 +03:00
  • 9a0489c51d move MBR and CHS to its own files, so I can link them with other prorgrams mykola2312 2024-08-07 14:51:25 +03:00
  • 9820f1e14b done with readmbr tool mykola2312 2024-08-07 10:18:02 +03:00
  • 87a280ae0d begin working on MBR dump utility mykola2312 2024-08-07 09:33:29 +03:00
  • 9143073dd3 begin working on test bios disk reading subroutine mykola2312 2024-08-07 09:19:52 +03:00
  • b8b49b5ce6 add target disk params mykola2312 2024-08-07 09:11:33 +03:00
  • ed9ac96552 apparently "signed divide by 2" is "bit shift right" and I misread this shit documentation. Props to Intel for making up shit mykola2312 2024-08-07 07:35:48 +03:00
  • 7f35d3770b fix bugs, now it outputs legit info mykola2312 2024-08-07 07:13:12 +03:00
  • c1277230ce implement disk parameter reading, tho needs bug fixing mykola2312 2024-08-07 07:07:54 +03:00
  • ac89fe8c32 move disk enumeration to its own file for the sake of modularity mykola2312 2024-08-07 06:49:49 +03:00
  • a6a65f790d implement util function to print numbers with header mykola2312 2024-08-07 06:47:52 +03:00
  • f4c3b1b5a6 implement disk enumeration mykola2312 2024-08-07 06:13:29 +03:00
  • 677d65b4dd declare an entry symbol, that always would be on beginning of bootsector mykola2312 2024-08-07 05:47:29 +03:00
  • bafc09649c test hexadecimals mykola2312 2024-08-04 19:51:21 +03:00
  • 1a052f3a6c done with itoa function mykola2312 2024-08-04 19:50:13 +03:00
  • 285f77c4fe fix bugs mykola2312 2024-08-04 19:35:34 +03:00
  • 7b1e185790 improve linker script mykola2312 2024-08-04 19:28:15 +03:00
  • 4afc9680ab use section offsets instead of memory region origins, because that messes up addressing mykola2312 2024-08-04 19:07:12 +03:00
  • f86a560f3e begin working on itoa mykola2312 2024-08-04 18:22:24 +03:00
  • 8825664287 remove comment mykola2312 2024-08-04 16:01:27 +03:00
  • 259b7a4314 implement serial port output mykola2312 2024-08-04 16:00:08 +03:00
  • 7e35407942 implement rodata and bss sections mykola2312 2024-08-04 15:06:26 +03:00
  • 3aca81ddd4 add print subroutine (lol im actually doing stack frame thingy here) mykola2312 2024-08-04 14:46:09 +03:00
  • d8ab00c7cd fixed stupid bug - mov msg, %si actually translated to move r/m16 to %si instead of immediate move like mov $msg, %si. also implemented bootloader migration to 0050:0000 address just to be stable mykola2312 2024-08-03 04:30:31 +03:00
  • 9643f450ac define bootloader size in linker script so later I can use it for relocating bootloader to 0050:0000 memory region mykola2312 2024-08-03 03:38:24 +03:00
  • d62f1dad13 write linker script for MBR sector, as well as test MBR code mykola2312 2024-08-03 02:29:03 +03:00
  • 818b222f2a implement heuristic random filesystem filling. for boot its random modules + kernel, for root its recreation of FreeBSD's file structure, for stress testing purposes. The Makefile containts proper target doing all required steps to recreate disk image with 1 test partition and 2 real-life example EXT2 partitions. mykola2312 2024-08-03 00:29:36 +03:00
  • d63936c4f5 makefile now fills part 1 with test pattern and other two formats in EXT2 mykola2312 2024-08-02 20:26:17 +03:00
  • c8ba7e29e8 working on disk image generation mykola2312 2024-08-02 19:44:40 +03:00
  • eac04907e9 add readme mykola2312 2024-08-02 16:43:27 +03:00
  • 3bee772605 initial commit mykola2312 2024-08-02 16:41:13 +03:00