diff options
author | marcus <marcus> | 2003-09-15 18:14:07 +0000 |
---|---|---|
committer | marcus <marcus> | 2003-09-15 18:14:07 +0000 |
commit | dda458d71c058330ce559d6eb479cd96f2d3fad6 (patch) | |
tree | 1b8d7ffefa30ccfb354393306b000c7a3e356c7b /laden | |
parent | 1edfc6694a1c3d774d880b0a613f312cd3f6df7d (diff) |
Merge changes from wortel version.
Diffstat (limited to 'laden')
-rw-r--r-- | laden/loader.c | 10 | ||||
-rw-r--r-- | laden/loader.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/laden/loader.c b/laden/loader.c index 697a8df..32a0f7e 100644 --- a/laden/loader.c +++ b/laden/loader.c @@ -82,7 +82,7 @@ mem_check (const char *name, unsigned long start, unsigned long end) static struct { - char *name; + const char *name; l4_word_t start; l4_word_t end; } used_regions[MAX_REGIONS]; @@ -93,7 +93,7 @@ static int nr_regions; /* Check that the region with the name NAME from START to END does not overlap with an existing region. */ static void -check_region (char *name, l4_word_t start, l4_word_t end) +check_region (const char *name, l4_word_t start, l4_word_t end) { int i; @@ -115,7 +115,7 @@ check_region (char *name, l4_word_t start, l4_word_t end) regions to check against. Before doing that, check for overlaps with existing regions. */ void -loader_add_region (char *name, l4_word_t start, l4_word_t end) +loader_add_region (const char *name, l4_word_t start, l4_word_t end) { debug ("Protected Region: %s (0x%x - 0x%x)\n", name, start, end); @@ -142,7 +142,7 @@ loader_remove_region (const char *name) break; if (i == nr_regions) - panic ("Assertion failure: Could not find region %s for removal"); + panic ("Assertion failure: Could not find region %s for removal", name); while (i < nr_regions - 1) { @@ -159,7 +159,7 @@ loader_remove_region (const char *name) program in NEW_START_P and NEW_END_P, and the entry point in ENTRY. */ void -loader_elf_load (char *name, l4_word_t start, l4_word_t end, +loader_elf_load (const char *name, l4_word_t start, l4_word_t end, l4_word_t *new_start_p, l4_word_t *new_end_p, l4_word_t *entry) { diff --git a/laden/loader.h b/laden/loader.h index 855b169..d9c310b 100644 --- a/laden/loader.h +++ b/laden/loader.h @@ -38,7 +38,7 @@ l4_memory_desc_t loader_get_memory_desc (l4_word_t nr); /* Add the region with the name NAME from START to END to the table of regions to check against. Before doing that, check for overlaps with existing regions. */ -void loader_add_region (char *name, l4_word_t start, l4_word_t end); +void loader_add_region (const char *name, l4_word_t start, l4_word_t end); /* Remove the region with the name NAME from the table. */ void loader_remove_region (const char *name); @@ -48,7 +48,7 @@ void loader_remove_region (const char *name); program). Return the lowest and highest address used by the program in NEW_START_P and NEW_END_P, and the entry point in ENTRY. */ -void loader_elf_load (char *name, l4_word_t start, l4_word_t end, +void loader_elf_load (const char *name, l4_word_t start, l4_word_t end, l4_word_t *new_start_p, l4_word_t *new_end_p, l4_word_t *entry); |