Search found 22 matches
- Sat Oct 01, 2011 5:10 pm
- Forum: General Questions
- Topic: Have you been hacked?
- Replies: 2
- Views: 55273
Re: Have you been hacked?
Looks like this forum has a serious spam problem.
- Fri Sep 02, 2011 7:04 pm
- Forum: Beginners
- Topic: problems in tutorial 4
- Replies: 3
- Views: 51394
Re: problems in tutorial 4
Firstly, you should put the print function above the loader. And then call it using 'call'. Also, there is no reason you should change the video mode, you are already in text mode 03h.
And in 'done' you return with 'ret'.
Also, I think you should use quotes for strings, not ' .
And in 'done' you return with 'ret'.
Also, I think you should use quotes for strings, not ' .
- Sun Aug 21, 2011 10:27 am
- Forum: Beginning OS Development
- Topic: Enabling paging outside bootloader?
- Replies: 2
- Views: 47755
Re: Enabling paging outside bootloader?
Cant you edit a flag in your multiboot header to cause grub to initialise paging? Otherwise, the alternative is to link your kernel to 0xC0000000 and have a short stub at the entry point which sets up identitiy paging, then jumps to main. ~Andrew Thank you for your reply. I'm not sure, I can't find...
- Sat Aug 20, 2011 10:16 am
- Forum: News Discussion
- Topic: OSDev Series Chapter 21
- Replies: 3
- Views: 63024
Re: OSDev Series Chapter 21
I noticed some errors in this chapter: 1. According to http://wiki.osdev.org/DMA, the mask channel function is bugged. Single Channel Mask Registers 0x0A and 0xD4 (Write): Bit2: ON/OFF Bit0-1: Channel In the tutorial, you were in fact using the bit mask for the MultiChannel Mask Register (0x0F). The...
- Fri Aug 19, 2011 7:45 am
- Forum: Beginning OS Development
- Topic: Enabling paging outside bootloader?
- Replies: 2
- Views: 47755
Enabling paging outside bootloader?
I am using Grub instead of my own bootloader, I decided to drop it because it had some bugs on real hardware. However, in the tutorial paging is enabled from the bootloader, and Grub doesn't enable paging. So my guess is that I have to do that in the loader (the asm code executed just before enterin...
- Fri Aug 19, 2011 7:22 am
- Forum: Beginning OS Development
- Topic: MyOS Problem
- Replies: 6
- Views: 67988
Re: MyOS Problem
Here is an article which may be useful: http://wiki.osdev.org/GRUB#Installing_to_floppy
And as a tip, you can type #!/bin/bash in the first line of your shell script, then enable permission to execute file (from Properties - Permissions), and then you can launch it as executable.
And as a tip, you can type #!/bin/bash in the first line of your shell script, then enable permission to execute file (from Properties - Permissions), and then you can launch it as executable.
- Wed Nov 10, 2010 11:51 am
- Forum: General Questions
- Topic: VFS error
- Replies: 5
- Views: 72980
Re: VFS error
Please note that the floppy driver that is used in this series is bugged, it has several problems. You can check it for yourself, find the bugs, and fix them, and use as reference this article: http://wiki.osdev.org/Floppy_Disk_Controller I found personally some nasty bugs, you should check it. It m...
- Tue Nov 02, 2010 4:02 pm
- Forum: News Discussion
- Topic: Chapter 21 Demo Released
- Replies: 12
- Views: 128392
Re: Chapter 21 Demo Released
While going through the code, I noticed this: //! 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_FLIPFL...
- Sat Oct 30, 2010 11:10 am
- Forum: Software Engineering
- Topic: Software
- Replies: 7
- Views: 91524
Re: Software
I use the following software: *NetBeans and Notepad2 for writing the code *Windows 98 (really weird, huh?) for building, and putting to floppy (my laptop doesn't have laptop support, so I use virtual pc with win98) *Batch scripts for building, haven't learned yet to work with makefiles :P *Crayon an...
- Fri Aug 13, 2010 6:33 pm
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 404419
Re: Problem with floppy driver - IRQ6 not firing
I was going through the code you posted in your first post, and I found this bit: // Install handler i86_irq_install_handler(6, i86_floppy_handler); Now I'm wondering; how does your i86_irq_install_handler() work, because in my OS, and the tutorials here as well, IR vector 6 is the 'invalid opcode ...
- Fri Aug 13, 2010 9:16 am
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 404419
Re: Problem with floppy driver - IRQ6 not firing
Okay, so it is unnecessary to disable interrupts during the execution of the handler, thank you for the information. 
Now back on the topic... the not working floppy interrupt.

Now back on the topic... the not working floppy interrupt.
- Fri Aug 13, 2010 6:45 am
- Forum: Beginners
- Topic: Simplest c++ os dev tutorial help????????
- Replies: 3
- Views: 56288
Re: Simplest c++ os dev tutorial help????????
Hello, Is there is a simplest os tutorial if not so please help me and write a tutorial on a simple c++ os which just print line on the screen and print also colours not words. If you want to use the BIOS interrupts, you need to be in real mode, 16 bits, and you also need a 16bits C++ compiler, lik...
- Fri Aug 13, 2010 6:39 am
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 404419
Re: Problem with floppy driver - IRQ6 not firing
I don't get it. Should I or should I not disable interrupts during the execution of a handler?Andyhhp wrote:
Basically, dont go messing with the interrupt flag in your interrupt routines.
You are saying like I shouldn't, the intel manuals from what I understand are saying like I should.
- Thu Aug 12, 2010 7:29 pm
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 404419
Re: Problem with floppy driver - IRQ6 not firing
When looking at the difference between our two handlers, I got an idea; are you informing the PIC(s) that the interrupt has been handled? If not, no other interrupt will be serviced, or intercepted by your kernel, once the first floppy interrupt has been triggered. That is, assuming the other inter...
- Thu Aug 12, 2010 4:42 am
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 404419
Re: Problem with floppy driver - IRQ6 not firing
I don't think that's the problem. And if you take a closer look, the wait function is commented, and a macro similar to your function is actually used. void i86_floppy_handler(ISR_stack_regs *r) { i86_floppy_new_interrupt = 1; printf ("[FLOPPY] [INT]\n"); } It should print on the screen when the int...