- Isn’t the top of stack in kernel virtual memory?
- How do I handle multiple spaces in an argument list?
- Can I enforce a maximum size on the arguments list?
The top of stack is at
0xc0000000, which is also where kernel virtual memory starts. However, before the processor pushes data on the stack, it decrements the stack pointer. Thus, the first (4-byte) value pushed on the stack will be at address
No. You should be able to support
PHYS_BASE values that are any multiple of
0xf0000000, simply via recompilation.
Multiple spaces should be treated as one space. You do not need to support quotes or any special characters other than space.
You can set a reasonable limit on the size of the arguments.