Search found 92 matches

by halofreak1990
Sat Nov 27, 2010 8:12 pm
Forum: Beginning OS Development
Topic: help needed - routine for reading product string from cpuid
Replies: 3
Views: 5164

Re: help needed - routine for reading product string from cpuid

What I was requesting was help with the assembly code. The assembly code does not check for cpuid support, for the moment it assumes that the information is there and available. My kernel can check for many CPU features using this function: static int eflag_supported(unsigned long flag) { unsigned ...
by halofreak1990
Mon Nov 15, 2010 12:01 am
Forum: General Questions
Topic: VFS error
Replies: 5
Views: 16139

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: m I found personally some nasty bugs, you should check it. It may run okay in emulators, but it doesn't c...
by halofreak1990
Tue Oct 12, 2010 6:34 pm
Forum: Lounge
Topic: Music :D
Replies: 8
Views: 23301

Re: Music :D

My music preference includes:
Hardstyle (Technoboy, D-Block & S-Te-Fan, Headhunterz etc.)
Trance (Basshunter, Gigi d'Agostino, Brooklyn Bounce etc.)
HardHouse (DJ Zany etc.)
Hard Rock (Rammstein)

and a couple of artists that fit into none of the above
by halofreak1990
Mon Sep 06, 2010 1:31 pm
Forum: Beginning OS Development
Topic: Q: I download any of the samples and try to build from VS?
Replies: 5
Views: 13803

Re: Q: I download any of the samples and try to build from VS?

This is ONE OF the ERRORS: ====================================== Error 4 error LNK1295: '/DYNAMICBASE' not compatible with '/DRIVER' specification; link without '/DYNAMICBASE' A:\KRNL32.EXE Kernel ====================================== I'm not sure what difference the /DRIVER command makes during ...
by halofreak1990
Fri Aug 13, 2010 5:16 pm
Forum: Beginning OS Development
Topic: which operations need "motor on" at floppy disk device?
Replies: 2
Views: 5424

Re: which operations need "motor on" at floppy disk device?

Yes, those are the only functions that need the floppy motor to be on.
by halofreak1990
Fri Aug 13, 2010 10:49 am
Forum: Beginning OS Development
Topic: Problem with floppy driver - IRQ6 not firing
Replies: 17
Views: 19941

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 f...
by halofreak1990
Fri Aug 13, 2010 12:21 am
Forum: General Programming
Topic: OS Development Series code question
Replies: 34
Views: 57770

Re: OS Development Series code question

Just to let you guys know, I've finally slaughtered the Floppy disk read problem. Somehow there was a flaw in the floppy driver, though I've changed so much it'd be impossible to say where. I added lots of debug output to the floppy commands like SEEK and CALIBRATE, and found out it couldn't find th...
by halofreak1990
Thu Aug 12, 2010 7:42 pm
Forum: Beginning OS Development
Topic: Problem with floppy driver - IRQ6 not firing
Replies: 17
Views: 19941

Re: Problem with floppy driver - IRQ6 not firing

And by the way, it isn't a very good idea to clear interrupts during the execution of the handler... for example the PIT may loose ticks and system clock would suffer, a keypress/release may be ignored... could cause trouble. Since I'm only setting a variable and execute one function, the time I ha...
by halofreak1990
Thu Aug 12, 2010 1:04 pm
Forum: Beginning OS Development
Topic: Problem with floppy driver - IRQ6 not firing
Replies: 17
Views: 19941

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"); } Sorry, I must've missed that on...
by halofreak1990
Thu Aug 12, 2010 12:28 am
Forum: Beginning OS Development
Topic: loading second stage bootloader
Replies: 4
Views: 7878

Re: loading second stage bootloader

this is your problem: ; End of sector 1, beginning of sector 2 --------------------------------- org 0x1000 cli hlt You can only have one 'org' statement in any asm file. And, may I ask why you want the second stage to start at 0x1000, and not where the 1st stage bootloader ended?
by halofreak1990
Wed Aug 11, 2010 11:27 pm
Forum: Beginning OS Development
Topic: loading second stage bootloader
Replies: 4
Views: 7878

Re: loading second stage bootloader

could you post the contents of the asm file, so we can see what's wrong?
by halofreak1990
Wed Aug 11, 2010 11:09 pm
Forum: Beginning OS Development
Topic: Problem with floppy driver - IRQ6 not firing
Replies: 17
Views: 19941

Re: Problem with floppy driver - IRQ6 not firing

You could test it on real hardware, if available. Anyways, are you sure the for loop actually runs? /*inline unsigned char i86_floppy_wait() { unsigned temp = 2000000000; for (;i86_floppy_new_interrupt==0; temp--) if (!temp) return 0; i86_floppy_new_interrupt = 0; return 1; }*/ you could do this ins...
by halofreak1990
Tue Aug 10, 2010 6:55 pm
Forum: General Programming
Topic: OS Development Series code question
Replies: 34
Views: 57770

Re: OS Development Series code question

In inserted the mov esp, 0xBFFFFFFB into the asm block before the kernel entry, right after the cli command. I guess my problem lies in the paging. It's enabled before the kernel is loaded, and I'm not dealing with it atm. Also, I noticed the kernel is loaded at RealMode address 0x3000, and the stac...
by halofreak1990
Mon Aug 09, 2010 10:21 pm
Forum: General Programming
Topic: OS Development Series code question
Replies: 34
Views: 57770

Re: OS Development Series code question

Just a question... Does your homebrew kernel run on real hardware without problems? I can't for the life of me figure out why the floppy reading is so god damned buggy outside VirtualPC, because its keeping me from continuing on other aspects of the kernel. Also, mov esp, somevalue should adjust the...
by halofreak1990
Sat Aug 07, 2010 8:17 pm
Forum: General Programming
Topic: OS Development Series code question
Replies: 34
Views: 57770

Re: OS Development Series code question

Jarvix wrote:Are you going to put the kernelstack below 3GB?!??!?

Sure, why not? The stack grows downwards, away from the kernel, which resides at 3GB.