forked from KolibriOS/kolibrios
Initialize APPDATA.{fd,bk}_ev fields for kernel threads.
This prevents crash in event.inc:RemoveEventTo because of zero pointer dereference. git-svn-id: svn://kolibrios.org@8087 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d48c9cc35c
commit
5e4de2dfd1
@ -1130,6 +1130,10 @@ proc setup_os_slot
|
||||
shr ecx, 2
|
||||
rep movsd
|
||||
|
||||
lea eax, [edx+APP_EV_OFFSET]
|
||||
mov dword [edx+APPDATA.fd_ev], eax
|
||||
mov dword [edx+APPDATA.bk_ev], eax
|
||||
|
||||
lea eax, [edx+APP_OBJ_OFFSET]
|
||||
mov dword [edx+APPDATA.fd_obj], eax
|
||||
mov dword [edx+APPDATA.bk_obj], eax
|
||||
|
Loading…
Reference in New Issue
Block a user