Search found 15 matches

by Fadekraft
Tue Jul 31, 2012 4:08 pm
Forum: Advanced OS Development
Topic: [Example] Heap Manager for brokenthorn
Replies: 8
Views: 30088

Re: [Example] Heap Manager for brokenthorn

Thanks a lot for taking the time to look through the code and giving comments, most you say i totally agree on, and that mistake with the macros is stupid haha. I have one counter-comment to the argument about this piece of code: hmmheader_t *cur_header = node4kb->head, *prev_header = 0; This does e...
by Fadekraft
Tue Jul 17, 2012 11:18 pm
Forum: Advanced OS Development
Topic: [Example] Heap Manager for brokenthorn
Replies: 8
Views: 30088

Re: [Example] Heap Manager for brokenthorn

Hehe, changed it!

Anyway, hope it helps some people :)
by Fadekraft
Fri Jul 13, 2012 4:50 pm
Forum: Advanced OS Development
Topic: [Example] Heap Manager for brokenthorn
Replies: 8
Views: 30088

Re: [Tutorial] Heap Manager for brokenthorn

No problem at all, tell me if you need any help or if im using something there isn't in the brokenthorn virtual memory manager.
It worked perfectly for me so if implemented correctly it will work perfectly for all of you ^^
by Fadekraft
Thu Jul 12, 2012 8:30 pm
Forum: Advanced OS Development
Topic: [Example] Heap Manager for brokenthorn
Replies: 8
Views: 30088

Re: [Tutorial] Heap Manager for brokenthorn

Oh, and i know this is not a tutorial, i just didn't know what to put.
by Fadekraft
Thu Jul 12, 2012 8:24 pm
Forum: Advanced OS Development
Topic: [Example] Heap Manager for brokenthorn
Replies: 8
Views: 30088

[Example] Heap Manager for brokenthorn

Hey everyone, today I finally was tired of seeing people needing help with a heap manager so i decided to share with you all a _SIMPLE_ heap manager i wrote a long time ago. Code is commented and you might need to replace the calls to mappage and allocblock to your own functions, but it will work wi...
by Fadekraft
Mon Dec 05, 2011 10:24 pm
Forum: General Questions
Topic: Any news about Chapter 24?
Replies: 0
Views: 16631

Any news about Chapter 24?

Like the title says, is there any news about the new chapter? I'm really intrigued ! :)
by Fadekraft
Sun Nov 06, 2011 11:04 pm
Forum: Beginning OS Development
Topic: Floppy IRQ wont fire
Replies: 4
Views: 9796

Re: Floppy IRQ wont fire

Well that settles that then, so much for an USB Floppy drive.

Thanks for the response!
by Fadekraft
Sun Nov 06, 2011 6:52 pm
Forum: Beginning OS Development
Topic: Floppy IRQ wont fire
Replies: 4
Views: 9796

Re: Floppy IRQ wont fire

1 Laptop, 2 desktop pc's. 1 of them 3 years old, the other new.

The floppy drive I'm using is a USB-floppy, so it would be through legacy support. I dunno if that would be a problem to be honest.
by Fadekraft
Sun Nov 06, 2011 1:04 am
Forum: Beginning OS Development
Topic: Floppy IRQ wont fire
Replies: 4
Views: 9796

Floppy IRQ wont fire

Well ok not completly true, it will fire in emulators, but not on real hardware, and I'm using the code given in the tutorial.

It hangs forever when waiting for the IRQ in ResetFloppy.

It works however on Bochs, VirtualPC and VMWarePlayer. Any ideas to what could cause this problem?
by Fadekraft
Mon Oct 03, 2011 8:21 pm
Forum: Beginning OS Development
Topic: Using the VMM & Kernel load trouble
Replies: 9
Views: 16039

Re: Using the VMM & Kernel load trouble

Okay, so narrowed it down to where it actually faults It gets a DIVIDE_BY_ZERO exception when accessing data from the struct: /** * Mounts the filesystem */ void fsysFatMount () { //! Boot sector info PBOOTSECTOR bootsector; //! read boot sector bootsector = (PBOOTSECTOR) flpydsk_read_sector (0); //...
by Fadekraft
Sat Oct 01, 2011 4:35 pm
Forum: Beginning OS Development
Topic: Using the VMM & Kernel load trouble
Replies: 9
Views: 16039

Re: Using the VMM & Kernel load trouble

I have the same problem with triple faulting if my kernel size exceeded 31.5 KB However, up until that point it runs just fine. Could you post the code that sets up the stack? I had a problem with the stack, as set up by the bootloader, that was overwriting parts of my kernel. I relocated the stack...
by Fadekraft
Thu Sep 29, 2011 6:48 pm
Forum: Beginning OS Development
Topic: Using the VMM & Kernel load trouble
Replies: 9
Views: 16039

Re: Using the VMM & Kernel load trouble

Okay, so i tried just making 32 KiB fully instead of 31,5 KB, now my kernel triple faults almost instantly on being jumped too (It triple faults instead of at the second dprintf(). So it only made the problem worse. I must be overwriting something in memory?? Looks like it's faulting here (when kern...
by Fadekraft
Thu Sep 29, 2011 6:36 pm
Forum: Beginning OS Development
Topic: Using the VMM & Kernel load trouble
Replies: 9
Views: 16039

Re: Using the VMM & Kernel load trouble

Thanks for replying, mmm so i tried. My bootloader prints a '.' for each sector read, counted it out to be 63 dots. My kernel is 32.256 bytes, divide that by 512 and you get 63, so it seems to load the complete kernel. So it seems that the full kernel is getting loaded to memory, which makes it even...
by Fadekraft
Thu Sep 29, 2011 4:42 pm
Forum: Beginning OS Development
Topic: Using the VMM & Kernel load trouble
Replies: 9
Views: 16039

Re: Using the VMM

Thank you for the response! The memory map for 1 mb says we have ;0x00007E00 - 0x0009FFFF - free And by loading it to 0x1000:0x0000, which translates to 0x10000 linear should not be a problem My kernel is 31 KiB so far. I tried loading it to 0x2000:0x3000 (0x23000), and it actually loads the kernel ...
by Fadekraft
Mon Sep 26, 2011 11:03 pm
Forum: Beginning OS Development
Topic: Using the VMM & Kernel load trouble
Replies: 9
Views: 16039

Using the VMM & Kernel load trouble

Hey there First of all, I love your tutorials, you guys have teached me a lot on OS development (After spending like, 3 months reading up on assembly and Machine Arcitechture I was real excited on getting started haha). Anyway, I've gotten past all the current tutorials and everything works, also ha...