Brans kernel development
Posted: Tue Oct 25, 2005 3:24 pm
Hi, all
i am learning kernel development throuugh the excellent bran's kernel development tutorials on osdever.net. although the code has compiled and executed after some tweaking but i have some problems. here are they..
1. my confusion is in the very first tut where we simply call the main() in the C file in our kernel setup assembly program.
peice of code :-
extern _k_main ; i have changed the name of the main function
; in c file
call _k_main
gives error on compilation :- invalid reference to _k_main.
and when i change this code to :-
extern k_main
call k_main
this code compiles and excecutes fine.
2. the second one is in the print onscreen section. i have compiles the print.c files as it is. all goes fine but when i execute it in bochs it does not prints anything.
3. this one is not related to kernel dev. does anyone know how to create floppy images in linux without use of any floppy's (i have a floppy drive). i have searched a lot regarding on google and net but found nothing. if anyone knows please let me know.
thanks in advance for any help.
i am learning kernel development throuugh the excellent bran's kernel development tutorials on osdever.net. although the code has compiled and executed after some tweaking but i have some problems. here are they..
1. my confusion is in the very first tut where we simply call the main() in the C file in our kernel setup assembly program.
peice of code :-
extern _k_main ; i have changed the name of the main function
; in c file
call _k_main
gives error on compilation :- invalid reference to _k_main.
and when i change this code to :-
extern k_main
call k_main
this code compiles and excecutes fine.
2. the second one is in the print onscreen section. i have compiles the print.c files as it is. all goes fine but when i execute it in bochs it does not prints anything.
3. this one is not related to kernel dev. does anyone know how to create floppy images in linux without use of any floppy's (i have a floppy drive). i have searched a lot regarding on google and net but found nothing. if anyone knows please let me know.
thanks in advance for any help.