2 #include <inc/memlayout.h>
7 // Define the global symbols 'envs', 'pages', 'vpt', and 'vpd'
8 // so that they can be used in C as if they were ordinary global arrays.
16 .set vpd, (UVPT+(UVPT>>12)*4)
19 // Entrypoint - this is where the kernel (or our parent environment)
20 // starts us running when we are initially loaded into a new environment.
24 // See if we were started with arguments on the stack
28 // If not, push dummy argc/argv arguments.
29 // This happens when we are loaded by the kernel,
30 // because the kernel does not know about passing arguments.