Memory Segment Destruction Question

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.
Post Reply
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

Memory Segment Destruction Question

Post by Bender »

My bootloader loads the first Kernel or second stage bootloader at 0x1000:0000,
Then in turn this Second Stage bootloader sets up some services and loads the Main Kernel
at 0x2000:0000, On initialization this Kernel sets all the segment
registers to line up with it I.e. 2000h,
My question is: Is the 0x1000 segment altered during this process,
Would I be able to access the services from the 0x2000 segment like
call 0x1000:00CF ; Location of a function in the second stage binary
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
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: Memory Segment Destruction Question

Post by Combuster »

I would need the question shotgun to figure out where your gross lack of computer knowledge comes from and address your problem where it matters - although it takes a ridiculous amount of time and it typically gets spoiled by people spoonfeeding sometime into the process. I could also tell you to take basic computer science courses to meet the required knowledge set out in the rules first and not answer things at all.

But first off: have you even tried it?
"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
nerdguy
Member
Member
Posts: 70
Joined: Wed Oct 30, 2013 8:11 am

Re: Memory Segment Destruction Question

Post by nerdguy »

Sid123,
It's pretty much clear that no one knows WTH are you doing with OSDeving, Seeing your previous posts I am thinking that you're a
spambot, just wasting pages on this forum.
Before Starting Out with OSDeving, Please see the following pages :
How to use a computer : http://www.gcflearnfree.org/computerbasics/11
Computer Courses : http://lmgtfy.com/?q=computer+courses
QBASIC Programming : http://www.tedfelix.com/qbasic/
C Programming : cprogramming.com
Now read them up for the next few months,
Until then Shut up.
When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for free." - Linus Torvalds
64 bit Kernel in early development
http://github.com/nerdguy12/core64
Post Reply