forked from limine-bootloader/limine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Generally rework build system to easily allow 3rd party toolch…
…ains to be used. Drop reliance on libgcc for BIOS builds by shipping our own routines instead
- Loading branch information
Showing
9 changed files
with
101 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
section .text | ||
|
||
global __udivdi3 | ||
__udivdi3: | ||
mov eax, dword [esp+4] | ||
mov edx, dword [esp+8] | ||
div dword [esp+12] | ||
xor edx, edx | ||
ret | ||
|
||
global __divdi3 | ||
__divdi3: | ||
mov eax, dword [esp+4] | ||
mov edx, dword [esp+8] | ||
idiv dword [esp+12] | ||
xor edx, edx | ||
ret | ||
|
||
global __umoddi3 | ||
__umoddi3: | ||
mov eax, dword [esp+4] | ||
mov edx, dword [esp+8] | ||
div dword [esp+12] | ||
mov eax, edx | ||
xor edx, edx | ||
ret | ||
|
||
global __moddi3 | ||
__moddi3: | ||
mov eax, dword [esp+4] | ||
mov edx, dword [esp+8] | ||
idiv dword [esp+12] | ||
mov eax, edx | ||
xor edx, edx | ||
ret | ||
|
||
global __udivmoddi4 | ||
__udivmoddi4: | ||
mov eax, dword [esp+4] | ||
mov edx, dword [esp+8] | ||
div dword [esp+12] | ||
mov ecx, dword [esp+20] | ||
mov dword [ecx], edx | ||
xor edx, edx | ||
ret | ||
|
||
global __udivmoddi4 | ||
__divmoddi4: | ||
mov eax, dword [esp+4] | ||
mov edx, dword [esp+8] | ||
idiv dword [esp+12] | ||
mov ecx, dword [esp+20] | ||
mov dword [ecx], edx | ||
xor edx, edx | ||
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters