You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make an effort to deduplicate assembly code that is needed for different use cases but is largely the same. One such example is code in src/arch/x86/x86_64/src/bootblock.S and src/arch/x86/x86_64/src/bootblock_nomem.S. They contain identical code for entering long mode, ISA constants, and some other things. Maintaining assembly is a pain, it's best to reduce the burden as much as possible.
My recommendation would be to just run assembly files through the C preprocessor to enable the use of #include and #define. I'm happy to work on this, just want to post it here to make sure folks agree with the approach.
The text was updated successfully, but these errors were encountered:
I couldn't actually get it to work. For some reason the string replacement doesn't quite work right.
You have to so some extra work every time you include some assembly. This is maybe not so bad if you just wrap arch-specific asm in a rust library so you don't include the same asm in multiple places.
We should make an effort to deduplicate assembly code that is needed for different use cases but is largely the same. One such example is code in
src/arch/x86/x86_64/src/bootblock.S
andsrc/arch/x86/x86_64/src/bootblock_nomem.S
. They contain identical code for entering long mode, ISA constants, and some other things. Maintaining assembly is a pain, it's best to reduce the burden as much as possible.My recommendation would be to just run assembly files through the C preprocessor to enable the use of
#include
and#define
. I'm happy to work on this, just want to post it here to make sure folks agree with the approach.The text was updated successfully, but these errors were encountered: