help disaster
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: help disaster
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.
Re: help disaster
Oh, wow. How did I mess this 5 page topic?
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.
Thats not a kernel... Im starting to question if it was even self bootable. (Based around your current post history.)i need help and yes i know how to make a kernal that says hello world so do
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();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: help disaster
neon wrote:Oh, wow. How did I mess this 5 page topic?
Agreed. Tutorials are a starting point and often have blossoming security issues and such.neon wrote:Also, beginning your system based off of tutorials is a terrible idea.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: help disaster
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.neon wrote:Im starting to question if it was even self bootable. (Based around your current post history.)
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: help disaster
False. PMode, CPL=3 is a good example...Troy Martin wrote:You can access hardware directly in any mode.
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.hey dont be harsh come on i am learning.
Fully agreed. Lock this thread now, this isn't going anywhere.lollynoob wrote:Haha, you don't know assembly, I bet you don't know C++, and you're a terrible poster.
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English )
Derrick operating system: http://derrick.xf.cz (Slovak and English )
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: help disaster
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.inflater wrote:False. PMode, CPL=3 is a good example...Troy Martin wrote:You can access hardware directly in any mode.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
- Combuster
- 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
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)
@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)
Re: help disaster
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.
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.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: help disaster
Well I didn't say you couldn't. I said that CPL = 3 is not a modeCombuster wrote:With the IO permission bitmap and friends, you can too (or IOPL = 3 as well)
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
- Combuster
- 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
CPL=3 is usually synonymous to usermode
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: help disaster
v86 mode is a mode too then, huh? pwned
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
- Combuster
- 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
who said modes were mutually exclusive?
Sadly enough, this is disastrous to the OP's help, and thus on-topic
Sadly enough, this is disastrous to the OP's help, and thus on-topic
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: help disaster
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 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 ]
[ Project UDI ]
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: help disaster
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.
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.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: help disaster
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 ]
[ Project UDI ]