help disaster

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: help disaster

Post by Troy Martin »

You can access hardware directly in any mode. You might need to clear interrupts to make sure the BIOS doesn't snag anything before you can, though.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: help disaster

Post by neon »

Oh, wow. How did I mess this 5 page topic? :shock:
i need help and yes i know how to make a kernal that says hello world so do
Thats not a kernel... Im starting to question if it was even self bootable. (Based around your current post history.)

Also, beginning your system based off of tutorials is a terrible idea. What is the purpose of your system software? What makes your system software unique? You should base your idea and design off of that. After all, basing code off of tutorials and other sources may not fit your design needs or end goal.

Also, understanding the architecture that you are writing system level code on is very important. Read the Intel manuals (posted earlier)...they are very important.
Last edited by neon on Mon Nov 10, 2008 10:52 pm, edited 1 time in total.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: help disaster

Post by Troy Martin »

neon wrote:Oh, wow. How did I mess this 5 page topic? :shock:
:D :lol:
neon wrote:Also, beginning your system based off of tutorials is a terrible idea.
Agreed. Tutorials are a starting point and often have blossoming security issues and such.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: help disaster

Post by Love4Boobies »

neon wrote:Im starting to question if it was even self bootable. (Based around your current post history.)
I got the same impression, especially when he said that he can't tell what the error was because it "disappeared" to quickly :) . I think he should also read the BBS (BIOS Boot Specification) to get an idea of what's going around.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: help disaster

Post by inflater »

Troy Martin wrote:You can access hardware directly in any mode.
False. PMode, CPL=3 is a good example...
hey dont be harsh come on i am learning.
You're not learning, and you're not trying to learn. Judging from your your posts style, you are just copying chunks of code from other helloworld kernels, and you sound like idiot by posting every minute. Also your topic title clearly states that. Get out of here and go read some materials.
lollynoob wrote:Haha, you don't know assembly, I bet you don't know C++, and you're a terrible poster.
Fully agreed. Lock this thread now, this isn't going anywhere.
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: help disaster

Post by Love4Boobies »

inflater wrote:
Troy Martin wrote:You can access hardware directly in any mode.
False. PMode, CPL=3 is a good example...
CPL = 3 is not really a CPU *mode*. It's merely a protection level that is available in modes such as protected mode. And direct hardware access is of course possible under protected mode.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: help disaster

Post by Combuster »

With the IO permission bitmap and friends, you can too (or IOPL = 3 as well)

@cotton509:
You want too much, you want it too fast, yet you do not do your homework, you spend too much time flooding this forum, you don't do research, you don't want to start with the basics, you refuse to take good advice that can help you, you don't even spend the time to understand the replies.

It is a miracle that you haven't passed out because of overexertion yet (or maybe you did).

So, mr. hyperactive, how do you plan on getting your OS done if you are only doing the things that actually keep you from that? (rhetoric question)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: help disaster

Post by JamesM »

:shock: Holy crap!

What I normally do with newbies is point them towards tutorials, usually with a totally shameless bias towards my own, but to be quite honest I don't really want him to taint them by reading them.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: help disaster

Post by Love4Boobies »

Combuster wrote:With the IO permission bitmap and friends, you can too (or IOPL = 3 as well)
Well I didn't say you couldn't. I said that CPL = 3 is not a mode :)
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: help disaster

Post by Combuster »

CPL=3 is usually synonymous to usermode :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: help disaster

Post by Love4Boobies »

v86 mode is a mode too then, huh? pwned :mrgreen:
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: help disaster

Post by Combuster »

who said modes were mutually exclusive?

Sadly enough, this is disastrous to the OP's help, and thus on-topic :(
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: help disaster

Post by Love4Boobies »

Well, I was just saying that from an architectural point of view they're not really modes of operations (they also say this about v86 in Intel manuals). But heck, you're right about the "disaster" thing :lol: Think the guy followed the advice ppl gave him to come back in a week or so; or did he quit? Either way is fine:))
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: help disaster

Post by Troy Martin »

New debate, eh?

Well, you can replace a few of the BIOS functions with your own by directly accessing hardware if you really wanted to. But who would? It's kinda pointless.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: help disaster

Post by Love4Boobies »

Malicious software probably would. I bet there were tons of viruses that used this back in the DOS days...
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Locked