From: Jeff Dike <jdike@ka...> - 2002-05-14 16:50:18
> yes it is static data, but in i386 in kernel mode can access it. but
> in uml i can not to access it now.
Can you be specific about this because I don't understand this at all. UML's
static data is accessible in exactly the same way as UML physical memory. It's
present in every address space, so you just write it out to the swap device
in exactly the same way as you write out physical memory.
> can give me some detail, I can't understand, sorry.
You are writing out physical memory by copying out the data between
uml_physmem and high_memory (or high_physmem), correct?
You write out UML's static data in exactly the same way, except that it's
the memory located between &_sdata and brk(0). You need to do this because
there's a lot more there that you need than your context structure.