Search found 59 matches

by xixpsychoxix
Mon Jul 09, 2012 1:16 pm
Forum: Beginning OS Development
Topic: using a non-tutorial bootloader?
Replies: 4
Views: 14345

using a non-tutorial bootloader?

Hi all! I have decided to try to use a different bootloader than the tutorial one for a couple different reasons, the main one being I want to be able to add different versions of my os to the disk and rather than reimplement all of that I would rather just use code that is in place. I first tried G...
by xixpsychoxix
Mon May 10, 2010 4:28 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

hey its no problem i'll post it. actually it's pretty much a copy of James Molloy's memory allocator from that kernel tutorial. It's actually been quite a while since i checked it but yes I'm almost positive that I got it working. Here is the code for kheap.cpp: #include <kheap.h> #include <phys_man...
by xixpsychoxix
Mon Mar 15, 2010 10:53 pm
Forum: Advanced OS Development
Topic: hard disk formatting
Replies: 1
Views: 12658

hard disk formatting

I don't know if you were planning on covering hard disks, but i am trying to add the capability to use hard disks from my operating system and I'm not sure quite where to begin. I've found a very good site that does a good job of explaining FAT16 (this is what i want to use because it's simple, sort...
by xixpsychoxix
Wed Feb 24, 2010 4:49 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

well i fixed all of the errors that i found but my pmmgr_alloc_block is still returning 0 for some reason. anything else anyone can think of?
by xixpsychoxix
Tue Feb 23, 2010 4:11 pm
Forum: Beginners
Topic: Creating a bootloader
Replies: 3
Views: 16782

Re: Creating a bootloader

is your kernel not being loaded at all or is it not executing properly (or not at all)?
by xixpsychoxix
Tue Feb 23, 2010 4:06 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

that was from the chapter on virtual memory. here is the exact code i am using to map those pages to their frames: //this is the initialization routine void InitializeSystem (multiboot_info *bootinfo) { clrscr32 (colors); setpos (0, 0); setcolor (colors); InitializeHAL (); enable (); setvect (0,(voi...
by xixpsychoxix
Tue Feb 23, 2010 3:56 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

oh ok. i thought that i took all of that code directly from the tutorial but i'll check to see if i did or not. if i did i think it's wrong in the tutorial too. i was wondering about this when i first looked at it. i'll fix it and see what happens. yeah, looking at demo 12 i found the following code...
by xixpsychoxix
Tue Feb 23, 2010 3:41 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

oh. sry. I guess you mean my kernel code, so here it is. this is the entire file kernel.cpp: #include <stdio.h> #include <ctype.h> #include <HAL.h> #include <exception.h> #include <mboot.h> #include <phys_manager.h> #include <virt_manager.h> #include <keyboard.h> #include <string.h> #include <floppy...
by xixpsychoxix
Tue Feb 23, 2010 3:23 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

ok, i dont think that the bitmap is being overwritten because the only code that could be doing it is after my trying to set the frames. If it would help i could post all of my kernel code too. here is the pmmgr initialize routine: void pmmgr_init (size_t memsize, physical_addr bitmap) { mmgr_memory...
by xixpsychoxix
Tue Feb 23, 2010 3:15 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

ok, i found one thing in the pmm code. I had:

Code: Select all


#define PMMGR_BLOCK_ALIGN pmmgr_BLOCK_SIZE

but im not sure if that's it or not. im gonna keep checking.
by xixpsychoxix
Mon Feb 22, 2010 11:00 pm
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

So i tried to use the new mapping routine to map pages to 0xD0000000 like so: MmMapPage (pmmgr_alloc_block (), (void *) 0xD0000000); but this would not work correctly. I narrowed down the problem to be that pmmgr_alloc_block is returning NULL even though the system has blocks available. Have there b...
by xixpsychoxix
Mon Feb 22, 2010 3:56 am
Forum: Beginners
Topic: Loading file data under fat12
Replies: 12
Views: 31230

Re: Loading file data under fat12

well im working along side the tutorial so i am using the current kernel routine GetCommand to get a line.
by xixpsychoxix
Sun Feb 21, 2010 7:34 am
Forum: Beginners
Topic: Loading file data under fat12
Replies: 12
Views: 31230

Re: Loading file data under fat12

yeah, i know this is another old topic but i took a break from OS Programming for awhile to work on games... anyhow, I am trying to write a routine to make a filename taken from the prompt into the format used to test for filename. so if my filename is this: test.txt i need to write a routine to mak...
by xixpsychoxix
Sun Feb 21, 2010 12:29 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

so then in order to map a 4mb section i would have to map all of the entries in a page table to consecutive addresses correct? also, do you have to call that routine after the virtual memory manager is initialized?
by xixpsychoxix
Sun Feb 21, 2010 12:21 am
Forum: Beginners
Topic: virtual memory
Replies: 33
Views: 113905

Re: virtual memory

thank you very much. i have been looking forward to finishing my code for FAT12 but couldn't get this stuff to work for me. One more question. Does the routine for mapping virtual addresses to physical addresses only map 4kb pages?