Search found 59 matches
- Mon Jul 09, 2012 1:16 pm
- Forum: Beginning OS Development
- Topic: using a non-tutorial bootloader?
- Replies: 4
- Views: 36865
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...
- Mon May 10, 2010 4:28 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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...
- Mon Mar 15, 2010 10:53 pm
- Forum: Advanced OS Development
- Topic: hard disk formatting
- Replies: 1
- Views: 30029
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...
- Wed Feb 24, 2010 4:49 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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?
- Tue Feb 23, 2010 4:11 pm
- Forum: Beginners
- Topic: Creating a bootloader
- Replies: 3
- Views: 38151
Re: Creating a bootloader
is your kernel not being loaded at all or is it not executing properly (or not at all)?
- Tue Feb 23, 2010 4:06 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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...
- Tue Feb 23, 2010 3:56 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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...
- Tue Feb 23, 2010 3:41 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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...
- Tue Feb 23, 2010 3:23 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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...
- Tue Feb 23, 2010 3:15 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
Re: virtual memory
ok, i found one thing in the pmm code. I had:
but im not sure if that's it or not. im gonna keep checking.
Code: Select all
#define PMMGR_BLOCK_ALIGN pmmgr_BLOCK_SIZE
- Mon Feb 22, 2010 11:00 pm
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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...
- Mon Feb 22, 2010 3:56 am
- Forum: Beginners
- Topic: Loading file data under fat12
- Replies: 12
- Views: 67018
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.
- Sun Feb 21, 2010 7:34 am
- Forum: Beginners
- Topic: Loading file data under fat12
- Replies: 12
- Views: 67018
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...
- Sun Feb 21, 2010 12:29 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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?
- Sun Feb 21, 2010 12:21 am
- Forum: Beginners
- Topic: virtual memory
- Replies: 33
- Views: 192511
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?