Chapter 21 Demo Released

News discussions

Moderator: Moderators

Chapter 21 Demo Released

Postby Mike » Sun Nov 01, 2009 7:10 pm

Hello everyone,

The VPC compatibility bug has been fixed in this new demo, and the demo builds off of the code in the chapter and last demo to read sectors from disk using our new DMAC interface. Everything is set up for us now to read and execute a program - coming up in chapter 22. The chapter has also been officially released with some new content.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Chapter 21 Demo Released

Postby djsilence » Tue Nov 03, 2009 4:07 am

1. You wrote in help cmd about reset but forgot to implement case of that :mrgreen:
2. Like prevoius chapter, demo of this one doesn't work in VMWare (very seldom it works).

Daniel.
Thinking of great - thinking of little, thinking of little - thinking of great.
User avatar
djsilence
 
Posts: 30
Joined: Sun Feb 15, 2009 8:49 pm
Location: Kyiv, Ukraine

Re: Chapter 21 Demo Released

Postby Mike » Tue Nov 03, 2009 5:32 am

Hello,

I must have messed the reset command - I will be sure to fix that. I have not tested in VMWare. If it is possible to explain the exact issue and what happens I will be sure to look into resolving them. :)
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Chapter 21 Demo Released

Postby djsilence » Wed Nov 04, 2009 2:31 pm

See, while trying to read some sector you can get to results:

1. You get right values of sector, but after it if you try to read one more you get infinity loop (I guess, because nothing is displayed).

2. You get wrong values of sector (some strange values like a 0x00, 0x01, etc.) but then you can read it more and more.

Conclusion: if reading is right - you can read just one sector, if reading is wrong - you can read any number of sectors.

Daniel.
Thinking of great - thinking of little, thinking of little - thinking of great.
User avatar
djsilence
 
Posts: 30
Joined: Sun Feb 15, 2009 8:49 pm
Location: Kyiv, Ukraine

Re: Chapter 21 Demo Released

Postby ehenkes » Mon Nov 09, 2009 5:03 pm

The VPC compatibility bug

Could you please comment about this bug? (before/after)
ehenkes
 
Posts: 34
Joined: Fri Jul 24, 2009 5:35 pm

Re: Chapter 21 Demo Released

Postby Mike » Mon Nov 09, 2009 11:48 pm

ehenkes wrote:
The VPC compatibility bug

Could you please comment about this bug? (before/after)

Hello,

Basically VPC does not seem to like setting the DMAC to auto-reinitialize. It is fixed after clearing that bit and re-initializing the DMAC before every read or write. This was verified to be the case when we tested both demos.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Chapter 21 Demo Released

Postby Tubash88 » Wed Dec 16, 2009 12:32 am

:) Hey Great series, Love it. I have read each chapter 2 times. :D and am planning on Reading them all for a 3rd time. Everytime I read it I learn something new and I also get something better. :P

Just a question. When will chapter 22 be released? No pressure, Just wondering. Do you have an Estimated Time/Date?

Keep up the great work. :) I am learning a lot from these tutorials, and I am also reading the Documents from OSDEV.com. =]

Well, I am eagerly awaiting the release of the next chapter.

Keep up the great work Mike.
Tubash88
 
Posts: 5
Joined: Sat Jun 20, 2009 2:09 pm
Location: USA, San Diego

Re: Chapter 21 Demo Released

Postby Mike » Thu Dec 31, 2009 4:40 am

Hello,

I apologize for the late response. I am planning some updates in earlier chapters (more specifically, the virtual memory management chapter) before continuing. I plan to add a stronger emphases on virtual address spaces and their use in multitasking to the chapter and managing and working with virtual address spaces. Possibly an update to the demo as well to make it easier to work with.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Chapter 21 Demo Released

Postby djsilence » Tue Jan 05, 2010 9:43 pm

Hi, Mike!

I had a real problem with demo 21 in vmware - because of strange things happened. now i installed vmware 7 and got more "excatly" problem: I just get Error reading from disk at any time with any sector I'd like to read.

Daniel.
Thinking of great - thinking of little, thinking of little - thinking of great.
User avatar
djsilence
 
Posts: 30
Joined: Sun Feb 15, 2009 8:49 pm
Location: Kyiv, Ukraine

Re: Chapter 21 Demo Released

Postby Mike » Sat Jan 09, 2010 1:57 pm

Hello,

Do you only get the problem with VMWare? ie; does it work in Bochs and Virtual PC?
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Chapter 21 Demo Released

Postby djsilence » Tue Jan 12, 2010 1:24 pm

yeah, just in vmware)) i don't know what can it be because even different versions of vmware gives that problem))
Thinking of great - thinking of little, thinking of little - thinking of great.
User avatar
djsilence
 
Posts: 30
Joined: Sun Feb 15, 2009 8:49 pm
Location: Kyiv, Ukraine

Re: Chapter 21 Demo Released

Postby Mike » Fri Jan 15, 2010 2:58 am

Hello,

I am going to have to mark it as a compatibility bug with the series. The demos are only tested in 2 versions of Bochs and Virtual PC before releasing. The issue will be looked into.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Chapter 21 Demo Released

Postby chibicitiberiu » Tue Nov 02, 2010 4:02 pm

While going through the code, I noticed this:

Code: Select all
//! resets flipflop
void dma_reset_flipflop(int dma){

   if (dma < 2)  // <- ERROR! Correct would be: if (dma >=2 ) return;
      return;

   //! it doesnt matter what is written to this register
   outportb( (dma==0) ? DMA0_CLEARBYTE_FLIPFLOP_REG : DMA1_CLEARBYTE_FLIPFLOP_REG, 0xff);
}



I found it in demo22, but since it is built based on this one, it probably has the same error.
chibicitiberiu
 
Posts: 22
Joined: Sat Jul 17, 2010 7:55 am


Return to News Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron