Rev 3160 | Rev 3474 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3160 | Rev 3171 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | */ |
47 | */ |
48 | typedef struct { |
48 | typedef struct { |
49 | /** Program entry point */ |
49 | /** Program entry point */ |
50 | entry_point_t entry; |
50 | entry_point_t entry; |
51 | 51 | ||
- | 52 | /** Number of command-line arguments */ |
|
- | 53 | int argc; |
|
- | 54 | /** Command-line arguments */ |
|
- | 55 | char **argv; |
|
- | 56 | ||
52 | /* |
57 | /* |
53 | * ELF-specific data |
58 | * ELF-specific data |
54 | */ |
59 | */ |
55 | /** Pointer to ELF dynamic section of the program */ |
60 | /** Pointer to ELF dynamic section of the program */ |
56 | void *dynamic; |
61 | void *dynamic; |
Line 58... | Line 63... | ||
58 | void *rtld_dynamic; |
63 | void *rtld_dynamic; |
59 | /** Runtime-linker load bias */ |
64 | /** Runtime-linker load bias */ |
60 | uintptr_t rtld_bias; |
65 | uintptr_t rtld_bias; |
61 | } pcb_t; |
66 | } pcb_t; |
62 | 67 | ||
63 | // FIXME |
- | |
64 | #define PCB_ADDRESS 0x6fff0000 |
- | |
65 | - | ||
66 | static inline pcb_t *__pcb_get(void) { |
- | |
67 | return (pcb_t *)PCB_ADDRESS; |
68 | extern pcb_t *__pcb; |
68 | } |
- | |
69 | 69 | ||
70 | #endif |
70 | #endif |
71 | 71 | ||
72 | /** |
72 | /** |
73 | * @} |
73 | * @} |