structures in trunk kernel
Posted: Wed Feb 22, 2012 5:54 pm
In net branch, I used nested structures, for example:
Where UDP_SOCKET is a child of IP_SOCKET
For this i used struct.inc that is bundled with fasm.
The main (trunk) kernel however uses a simpler macro. The problem is that the macro in trunk uses a dot before all labels, while this macro does not.
Does anybody see a problem with me converting trunk kernel to use newer macro?
(I do not want to merge both kernels yet, but I need to update old code in net kernel, and it will be needed if i want to merge later.)
Code: Select all
struct UDP_SOCKET IP_SOCKET
LocalPort dw ?
RemotePort dw ?
firstpacket db ?
ends
For this i used struct.inc that is bundled with fasm.
The main (trunk) kernel however uses a simpler macro. The problem is that the macro in trunk uses a dot before all labels, while this macro does not.
Does anybody see a problem with me converting trunk kernel to use newer macro?
(I do not want to merge both kernels yet, but I need to update old code in net kernel, and it will be needed if i want to merge later.)