I've a strange problem in my OS ...
The communication between the kernel and the applications works with interrupts and the registers.
So if I want to send the kernel numbers it works fine here is an example:
Code: Select all
int main( void )
{
???unsigned int num1 = 100;
???unsigned int num2 = 200;
???asm("movl %0, %%ebx" :: "r" (num1));
???asm("movl %0, %%ecx" :: "r" (num2));
???asm("movl $0x0001, %eax");????????????// Funktionsnummer
???asm("int $0x30");??????????????????// Systeminterrupt
???return 0;
}
But if I want to send the kernel strings, there is a big problem and I can't find the mistake ... here is an other example:
Code: Select all
int main( void )
{
???unsigned char text[] = "Test Test Test";
???asm("movl %0, %%ebx" :: "r" (text));
???asm("movl $0x0002, %eax");????????????// Functionsnumber
???asm("int $0x30");??????????????????// Systeminterrupt
???return 0;
}


