Bona Fide OS Developer
View unanswered posts | View active topics It is currently Mon Aug 19, 2019 3:24 am



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
 WEIRD?!!?!?!?!?! 
Author Message

Joined: Tue Mar 02, 2010 4:50 am
Posts: 11
Post 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
Profile

Joined: Mon Nov 16, 2009 9:37 am
Posts: 2
Location: Perth, Western Australia
Post 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
Profile WWW

Joined: Tue Jan 19, 2010 11:51 pm
Posts: 66
Post 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
Profile

Joined: Tue Jul 28, 2009 4:09 am
Posts: 58
Location: United Kingdom
Post Re: WEIRD?!!?!?!?!?!
This problem was already posted.

http://forums.osdever.net/viewtopic.php?f=5&t=200

It was also responded to, and moved to the correct forum.

Moved and Locked.


Thu Mar 04, 2010 6:01 am
Profile
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.