Search found 30 matches

by djsilence
Wed Oct 27, 2010 6:36 pm
Forum: News Discussion
Topic: OSDev Series Chapter 23
Replies: 21
Views: 58153

Re: OSDev Series Chapter 23

You mean you have this: //! Updates hardware cursor void DebugUpdateCur (int x, int y) { // get location uint16_t cursorLocation = y * 80 + x; // send location to vga controller to set cursor disable(); outportb(0x3D4, 14); outportb(0x3D5, cursorLocation >> 8); // Send the high byte. outportb(0x3D4,...
by djsilence
Wed Oct 27, 2010 5:28 am
Forum: News Discussion
Topic: OSDev Series Chapter 23
Replies: 21
Views: 58153

Re: OSDev Series Chapter 23

Just delete that #if 0 ...#endif statement, and the cursor moving will work properly.
by djsilence
Mon Oct 11, 2010 12:06 pm
Forum: News Discussion
Topic: OSDev Series Chapter 23
Replies: 21
Views: 58153

Re: OSDev Series Chapter 23

I guess we don't need IVT anymore, while we are in protected mode. (And it is [0x00 - 0x3FF] region of memory). You can set it as in use, but think before: will you use it? The only BIOS area that lefts untouchable - Extra Bios Data Region and ROM area (because type of that regions is Reserved, so t...
by djsilence
Mon Oct 11, 2010 12:14 am
Forum: News Discussion
Topic: OSDev Series Chapter 23
Replies: 21
Views: 58153

Re: OSDev Series Chapter 23

This 4088 bytes is physical memory map. Each bit in this area of bytes shows the state of physical memory block (each 4KB in size) (e.g. first bit of first byte 0 => your first 4KB are free for use, 1 => it is already used, or not used if memory region type is not available). So, to store informatio...
by djsilence
Tue Jan 12, 2010 1:24 pm
Forum: News Discussion
Topic: Chapter 21 Demo Released
Replies: 12
Views: 40906

Re: Chapter 21 Demo Released

yeah, just in vmware)) i don't know what can it be because even different versions of vmware gives that problem))
by djsilence
Tue Jan 05, 2010 9:43 pm
Forum: News Discussion
Topic: Chapter 21 Demo Released
Replies: 12
Views: 40906

Re: Chapter 21 Demo Released

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.
by djsilence
Sat Dec 19, 2009 5:24 am
Forum: Beginners
Topic: Help
Replies: 4
Views: 13353

Re: Help

simple cli and sti instructions.
by djsilence
Tue Dec 15, 2009 4:31 am
Forum: Beginners
Topic: Help
Replies: 4
Views: 13353

Re: Help

Thanks... My PIT stop working :(
by djsilence
Sat Dec 12, 2009 4:36 pm
Forum: Beginners
Topic: Help
Replies: 4
Views: 13353

Help

Can anybody do this in your kernel:

disable();
outportb(0x1F7, 0x20);
enable();

Will any interrupts (or, say, PIT) work after that?? (I ask because my - doesn't work.)
by djsilence
Wed Dec 09, 2009 10:24 am
Forum: Advanced OS Development
Topic: vmmngr problem
Replies: 6
Views: 16541

Re: vmmngr problem

Thanks, Mike.
by djsilence
Tue Dec 08, 2009 9:35 pm
Forum: Advanced OS Development
Topic: vmmngr problem
Replies: 6
Views: 16541

Re: vmmngr problem

Just of an interest - what is virtual address? See, 0x400000 - it is physicall adress, but how can I get virtual address of physical memory area??

Daniel.
by djsilence
Tue Dec 08, 2009 9:29 pm
Forum: Advanced OS Development
Topic: vmmngr problem
Replies: 6
Views: 16541

Re: vmmngr problem

I do not know how can it be, but when i do: if (pt_entry_is_writable(e)) printf("writable"); I get "writable". But actually I did not set it, and pt_entry_set_frame does not, and pt_entry_add_attrib() doesn't. And if I set it by doing pt_entry_add_attrib(&e, I86_PTE_WRITABLE)...
by djsilence
Mon Dec 07, 2009 2:17 pm
Forum: Advanced OS Development
Topic: vmmngr problem
Replies: 6
Views: 16541

vmmngr problem

Hi. I have some problem with vmmngr. See, it has vmmngr_alloc_page(). This function returns address of allocated memory. But actually it doesn't work properly. First of all: if you try to allocate page it returns addresses below first 4MB (because pmmngr_alloc_block() returns such). And doing this: ...
by djsilence
Fri Nov 13, 2009 2:50 pm
Forum: C and C++
Topic: Linked Code in external File
Replies: 20
Views: 43162

Re: Linked Code in external File

So, there is one way more:

look for binary 0xCC... but if function length is exactly 0x20 (or 0x40, 0x60, etc.) so there will no any 0xCC, but 0xC3 will be anyway.
by djsilence
Fri Nov 13, 2009 2:48 pm
Forum: C and C++
Topic: Linked Code in external File
Replies: 20
Views: 43162

Re: Linked Code in external File

No. 0xC3 is the binary for the ret instruction. There is no gurentee that there will be a single ret instruction per function. try on read it hex redactor... anyway, have your function one or more ret instructions. this will looks like that: B8 A0 C3 D9 E4 11 23 4F 3D 6A BB 7D 1A 2D 3E 49 8D E2 FE ...