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