Changed argc/argv/envp ABI
authorAndrew Waterman <waterman@ubuntu.(none)>
Sun, 3 Jan 2010 01:07:51 +0000 (17:07 -0800)
committerAndrew Waterman <waterman@ubuntu.(none)>
Sun, 3 Jan 2010 01:07:51 +0000 (17:07 -0800)
kern/include/ros/procdata.h

index 75e71b3..ada7e71 100644 (file)
@@ -9,14 +9,17 @@
 #include <ros/error.h>
 #include <ros/common.h>
 
-#define PROCINFO_MAX_ARGV_SIZE 2048
+#define PROCINFO_MAX_ARGV_SIZE 1024
+#define PROCINFO_MAX_ENV_SIZE 1024
 
 typedef struct procinfo {
        pid_t pid;
+       //pid_t ppid;
        size_t max_harts;
        uint64_t tsc_freq;
 
        char argv_buf[PROCINFO_MAX_ARGV_SIZE];
+       char env_buf[PROCINFO_MAX_ENV_SIZE];
 } procinfo_t;
 #define PROCINFO_NUM_PAGES  ((sizeof(procinfo_t)-1)/PGSIZE + 1)