|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Author |
Message |
AngelOS10
Joined: Tue Mar 02, 2010 4:50 am Posts: 11
|
WEIRD?!!?!?!?!?!
Today i was compiling my OS it went fine but then a minor change and Poof! stops and says unresolved symbol linker error 2021: unresolved symbol __aulshr refrenced in fuction i86_cpu_initialize();
|
Thu Mar 04, 2010 3:22 am |
|
|
thepowersgang
Joined: Mon Nov 16, 2009 9:37 am Posts: 2 Location: Perth, Western Australia
|
Re: WEIRD?!!?!?!?!?!
Google is your friend, my friend.
After a quick google, it seems that it is what VC uses to handle some sort of integer operation (I think "Unsigned Long SHift Right" or something) Do a little searching and you should solve your problem.
_________________ Acess 2 - Kernel Stable (IP/UDP Complete) Realmode Emulator - Testing
|
Thu Mar 04, 2010 4:04 am |
|
|
Terry A. Davis
Joined: Tue Jan 19, 2010 11:51 pm Posts: 66
|
Re: WEIRD?!!?!?!?!?!
My LoseThos 64-bit compiler converts all values to 64-bit before working on them. If you have a constant, it gets converted to 64-bits.
U0 DoIt() { I8 i=0x8000000000000000; coutln i>>1; }
That operates normally.
U0 DoIt() { U8 i=0x8000000000000000; coutln i>>1; }
That operates normally.
U0 DoIt() { I4 i=0x80000000; coutln i>>1; }
That operates unexpectedly, because the 0x80000000 value is converted to 64-bit and does not overflow. It's stored in a 64-bit register for the remainder.
This is the correct LoseThos code for what you want. U0 DoIt() { I4 i=-0x80000000; coutln i>>1; }
|
Thu Mar 04, 2010 5:00 am |
|
|
Agalloch
Joined: Tue Jul 28, 2009 4:09 am Posts: 58 Location: United Kingdom
|
Re: WEIRD?!!?!?!?!?!
This problem was already posted. http://forums.osdever.net/viewtopic.php?f=5&t=200It was also responded to, and moved to the correct forum. Moved and Locked.
|
Thu Mar 04, 2010 6:01 am |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|