Commit Graph

204 Commits

Author SHA1 Message Date
mintsuki
155362570e Reimplement memcpy, memmove, memcmp, and memset in assembly to work around potentially buggy compilers generating references to those function recursively within the function bodies 2020-08-28 01:25:17 +02:00
mintsuki
e2a87ca33e Fix handling of return value for strcmp and strncmp 2020-08-27 01:31:32 +02:00
mintsuki
fc23258aa7 Handle intel style inline assembly via macros for compatibility with clang, remove TempleOS protocol support 2020-08-27 00:44:16 +02:00
mintsuki
b2d24ecca3 Update binary image 2020-08-26 22:49:19 +02:00
atomicbit
45033e8186
Better firmware compatibility. (#19)
Co-authored-by: atomicbit <atomicbit.gg@gmail.com>
2020-08-26 22:45:32 +02:00
atomicbit
97b8d367be
Force IPV4 in toolchain script (#18)
* Force IPV4 in toolchain script

I was gonna build a toolchain for qloader2 and wget simply hanged. This patch fixes it.

* additional comment in wget

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>

* other additional comment in wget

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>
2020-08-26 02:25:18 +02:00
atomicbit
008b6e691e
Mark the partition as bootable (#17)
* Mark the partition as bootable

Some BIOSes (eg. my laptop's) require at least one partition to be marked as bootable, this patch can save one from frustration.

* change loader.img to test.img

i made a mistake

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>

* additional comment

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>
2020-08-26 01:21:06 +02:00
mintsuki
c97fc83bbf Fix up compile flags 2020-08-24 23:35:06 +02:00
mintsuki
f67f022d73 Bump binutils to 2.35 2020-08-19 22:49:00 +02:00
mintsuki
a223f9c308 Update STIVALE2.md 2020-08-11 18:10:38 +02:00
mintsuki
a002f05110 Fix broken memory types in stivale 2020-08-11 18:00:51 +02:00
mintsuki
6296d27c11 Restore old stivale specification and move stivale2 spec to own file 2020-08-11 17:53:37 +02:00
mint
9fcb13c2a2
Tagging stivale (#16)
* Initial tagging system

* stivale: Report bootloader brand and version, change structure of memory map tag

* Reintroduce legacy stivale protocol and rename tagging stivale to stivale2
2020-08-11 17:43:39 +02:00
mintsuki
32278a690f Add reference screenshot 2020-08-05 00:08:40 +02:00
mintsuki
6d349d8062 Bump GCC to 10.2.0 2020-07-24 15:56:58 +02:00
mintsuki
ddd4172dcd Add memory clobbers where missing and remove useless stivale signature 2020-07-24 15:38:55 +02:00
mintsuki
e45f8ac41a stivale: Zero out unused GPRs and add a signature 2020-07-09 03:24:54 +02:00
mintsuki
1bbe7f9385 FAT32: fail if computing the 8.3 filename goes wrong 2020-07-08 04:33:54 +02:00
mintsuki
bb96bab7f6 Fix another FAT32 bug (introduced by me) 2020-07-08 04:15:26 +02:00
mintsuki
6d5efbdc15 Make test cases buildable on FreeBSD 2020-07-06 22:59:28 +02:00
mintsuki
e7669cadae Fix config bug (2) 2020-07-02 16:20:18 +02:00
mintsuki
78d1b8a8fc Fix config bug 2020-07-02 16:14:09 +02:00
mintsuki
21490a84d3 Teach qloader2 to handle windows line endings 2020-07-02 02:51:06 +02:00
mintsuki
8ac26c40eb Fix fat32 bug 2020-07-02 02:31:27 +02:00
mintsuki
94ff47ea0e Fix issues in qloader2-install.c 2020-07-01 04:34:16 +02:00
mintsuki
43918c96c3 Add C version of qloader2-install script 2020-06-30 21:02:55 +02:00
mintsuki
bf86dbd55d Fix bug where BIOS flag was not set in stivale, add TempleOS to list of supported boot protocols 2020-06-25 18:51:54 +02:00
mintsuki
5a26305981 vbe: Add fallback resolutions 2020-06-12 01:17:24 +02:00
mintsuki
2e96f8fe6a fat32: Fix handling of non-lfn files 2020-06-11 12:13:27 +02:00
mintsuki
22ac79080e Add support for TempleOS boot protocol 2020-06-10 19:49:04 +02:00
mintsuki
925631ccaf Fix bug in FAT32 code 2020-06-10 17:19:14 +02:00
mintsuki
9f5baf2f12 Fix markdown issue in stivale spec 2020-06-06 18:47:21 +02:00
mintsuki
e658faff8a Adjust stivale spec 2020-06-06 17:09:52 +02:00
mintsuki
d8b9a2bb3b Rework memmap 2020-06-06 16:52:21 +02:00
mintsuki
dddfe43874 Make memmap less verbose 2020-06-05 21:40:34 +02:00
mintsuki
5a6d6afb94 Fix bug in memmap and vga textmode 2020-06-05 21:34:11 +02:00
mintsuki
c05c652057 Add more verbose memory map logging 2020-06-05 20:57:09 +02:00
mintsuki
ab1e871023 Rework boot menu 2020-06-05 20:27:52 +02:00
Shreyas Lad
24ddd20e89
Handle improper file paths (#14)
* Sort memmap entries

* fixed improper module path fault

* Sort memmap entries

* removed bin yet again

* Sort memmap entries

* build

Co-authored-by: mintsuki <mintsuki@protonmail.com>
2020-06-05 19:33:51 +02:00
mintsuki
b616e8014a Sort memmap entries 2020-06-05 19:09:57 +02:00
mintsuki
e91cb82222 Added improved memmap 2020-06-05 17:51:33 +02:00
mintsuki
3d75644e2c Add a call to BIOS int 15h AX EC00h before entering Long Mode in stivale proto 2020-06-03 13:54:54 +02:00
mintsuki
7336f2b819 Increase randomness quality by adding rdseed instruction support 2020-06-01 10:50:09 +02:00
mintsuki
42906fef15 Add a more proper rand implementation 2020-06-01 10:20:34 +02:00
mintsuki
045c4078a0 Update binary image 2020-06-01 09:12:51 +02:00
mint
df4931e2d8
Merge pull request #13 from N00byEdge/fixstacksmash
Fixed stack smashing with fread() in relocation code
2020-06-01 09:07:08 +02:00
N00byEdge
359cdb08f6 Fixed stack smashing with fread() 2020-06-01 09:02:54 +02:00
mintsuki
b08abed015 Fix segment register issues in pit_sleep_and_quit_on_keypress() 2020-06-01 07:51:06 +02:00
mintsuki
4947a84591 Make sure to mask and flush IRQs for stivale protocol 2020-06-01 04:47:55 +02:00
mintsuki
9fbfb676f5 Update copyright notice 2020-05-31 05:18:04 +02:00