LD kernel memory allocation (important for all)
Posted: Thu Oct 02, 2003 1:47 am
Hi,
I have one problem, my kernel size is 21 KB and I've allocaded kernel text section to 0x100000 (1MB).
When I create a pointer to structure and try to write to it, it works but after a few other commands, when I read it it shows not correct values. When i try to make this pointer with 5 elements, kernel crashes:
struct{
short some_variable;
...
} *pointer; // it shows not correct values
struct{
...
} pointer[5]; // kernel crashes
P.S. on win32 program test it works fine it both ways.
Can the problem be connected with bss and data allocation?
I have one problem, my kernel size is 21 KB and I've allocaded kernel text section to 0x100000 (1MB).
When I create a pointer to structure and try to write to it, it works but after a few other commands, when I read it it shows not correct values. When i try to make this pointer with 5 elements, kernel crashes:
struct{
short some_variable;
...
} *pointer; // it shows not correct values
struct{
...
} pointer[5]; // kernel crashes
P.S. on win32 program test it works fine it both ways.
Can the problem be connected with bss and data allocation?