I am creating an opeating ystem, and for my bootloader I need to call function with argument, my function without argument work but when I add argument the program totaly bug, it don't launch I don't understand why. The last question is Can't launch function in c in low-level. It's the same problem but not the good explaination.
Asked
Active
Viewed 47 times
-1
-
1[This](https://stackoverflow.com/questions/57931806/cannot-call-real-mode-c-function-from-bootloader-nasm-gcc-toolchain/57932741#57932741) might be of help. – Silidrone Feb 13 '21 at 12:43
-
Yeah it is that thank you for your answer – Konect Team Feb 13 '21 at 12:50
1 Answers
0
If you had the same problem, just add -Os -mregparm=3 -fomit-frame-pointer
in the option of the compiler. This could help you.

Konect Team
- 87
- 6