41 |
/* Check if the bit BIT in FLAGS is set. */ |
/* Check if the bit BIT in FLAGS is set. */ |
42 |
#define CHECK_FLAG(flags,bit) ((flags) & (1 << (bit))) |
#define CHECK_FLAG(flags,bit) ((flags) & (1 << (bit))) |
43 |
|
|
|
/* The following must be defined and are used to calculate the extents |
|
|
of the laden binary itself. */ |
|
|
extern char _start; |
|
|
extern char _end; |
|
44 |
|
|
45 |
/* Setup the argument vector and pass control over to the main |
/* Setup the argument vector and pass control over to the main |
46 |
function. */ |
function. */ |
158 |
} |
} |
159 |
|
|
160 |
|
|
161 |
|
/* The following must be defined and are used to calculate the extents |
162 |
|
of the laden binary itself. */ |
163 |
|
extern char _start; |
164 |
|
extern char _end; |
165 |
|
|
166 |
|
|
167 |
/* Find the kernel, the initial servers and the other information |
/* Find the kernel, the initial servers and the other information |
168 |
required for booting. */ |
required for booting. */ |
169 |
void |
void |
328 |
|
|
329 |
/* Now protect ourselves and the mulitboot info (at least the module |
/* Now protect ourselves and the mulitboot info (at least the module |
330 |
configuration. */ |
configuration. */ |
331 |
loader_add_region ("laden", (l4_word_t) &_start, (l4_word_t) &_end); |
loader_add_region (program_name, (l4_word_t) &_start, (l4_word_t) &_end); |
332 |
|
|
333 |
start = (l4_word_t) mbi; |
start = (l4_word_t) mbi; |
334 |
end = start + sizeof (*mbi) - 1; |
end = start + sizeof (*mbi) - 1; |