[K42-discussion] Problem with changing FairLock class

Marc Auslander Marc_Auslander at us.ibm.com
Wed Dec 21 12:02:51 EST 2005


IIRC, fairlock has machine dependent assembler code that actually 
implements it.  You need to make sure that the assembler code is 
consistent with your code.  I'm not sure this is the problem but you need 
to check.

Marc Auslander <Marc_Auslander at us.ibm.com> 914 945-4346 (Fax x4282)



Alex Depoutovitch <siroko at gmail.com> 
Sent by: k42-discussion-bounces at ozlabs.org
12/20/2005 06:58 PM

To
k42-discussion at ozlabs.org
cc

Subject
[K42-discussion] Problem with changing FairLock class






Hi,
I tired to add data member to FairLock class. I changed size of
spinlock_t structure accordingly so that they have the same size.
But after I have done it K42 crashes during boot process with:
---
.......
NET: Registered protocol family 16
/lewis/d/d1/depout/k42/kitchsrc/os/kernel/proc/ProcessShared.C,255:
Invalid memory access: processID 0x0 addr 0x0, type
-6917529026567294926
GDB got trap: Data Storage Interrupt
vector=0x300, sr=0xa00000004000b032, pc=0x0 lr=0xc000000002338020
Kernel Connecting to GDB via thinwire channel
-----

Connecting with gdb does not help much as stack is corrupted and bt
command returns:
--
(gdb) bt
#0  0x0000000000000000 in ?? ()
--

Could anybody please tell me how to change size of FairLock structure
in a right way? Any suggestions are really appreciated.

Thank you,

Alex
_______________________________________________
K42-discussion mailing list
K42-discussion at ozlabs.org
https://ozlabs.org/mailman/listinfo/k42-discussion

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/k42-discussion/attachments/20051220/fff11f86/attachment.htm 


More information about the K42-discussion mailing list