Search found 7 matches
- Wed Oct 15, 2008 5:40 pm
- Forum: Beginning OS Development
- Topic: is it normal to crash when enable interrupts?
- Replies: 4
- Views: 24358
If you are in protected mode (as it appears to be) and have not set up an IDT yet (and remap the PICs), then yes--it should crash. This is where i want to get. I'm trying to setup a GDT and IDT. I'm following Tutorial 15, but i have to change a few lines of code to compile on GCC. in idt.h i change...
- Mon Oct 13, 2008 5:58 pm
- Forum: Beginning OS Development
- Topic: is it normal to crash when enable interrupts?
- Replies: 4
- Views: 24358
is it normal to crash when enable interrupts?
im new to os programming, my kernel its very simple, it justs print to screen and halt. i didn't setup any idt or interrupt handling so far. so, my question, why the OS crash when i enable interrupts. this is what i got void kmain(void) { iniciarVideo(); puts("HELLO WORLD\n"); asm("sti"); for (;;); ...
- Thu Oct 09, 2008 12:31 am
- Forum: Beginning OS Development
- Topic: unable to pass arguments to putch()
- Replies: 8
- Views: 37336
when i try with -map this is the error that appear. ld --oformat binary -Ttext 0x10000 -map linker.ld -o KERNEL.SYS kinit.o kmain.o video.o klib\opmem.o klib\string.o klib\ports.o e:\djgpp\bin/ld.exe: unrecognised emulation mode: ap Supported emulations: i386go32 make.exe: *** [KERNEL] Error 1 it on...
- Wed Oct 08, 2008 6:00 pm
- Forum: Beginning OS Development
- Topic: unable to pass arguments to putch()
- Replies: 8
- Views: 37336
it doesn't work either. i tried with
since the -map, doesn't work. any other ideas?
this is my kinit.asm
Code: Select all
ld --oformat binary -Ttext 0x10000 -T mapFile.ld
this is my kinit.asm
Code: Select all
[BITS 32]
GLOBAL start
start:
extern _kmain
call _kmain
cli
hlt
- Wed Oct 08, 2008 1:24 am
- Forum: Beginning OS Development
- Topic: unable to pass arguments to putch()
- Replies: 8
- Views: 37336
im not using any linker script, im using this to link.
maybe thats the problem, its really necessary to use a linker script?
Code: Select all
ld --oformat binary -Ttext 0x10000
- Wed Oct 08, 2008 12:40 am
- Forum: Beginning OS Development
- Topic: unable to pass arguments to putch()
- Replies: 8
- Views: 37336
- Tue Oct 07, 2008 10:38 pm
- Forum: Beginning OS Development
- Topic: unable to pass arguments to putch()
- Replies: 8
- Views: 37336
unable to pass arguments to putch()
I have encountered a problem after having managed to load the kernel from the bootloader. Now I am trying to write on the screen, however when i call the function puts() does not pass the string. I have no idea of why does not work, someone can have a look and help me find the problem this is my kma...