summaryrefslogtreecommitdiff
path: root/bootmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootmain.c')
-rw-r--r--bootmain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootmain.c b/bootmain.c
index a98ca82..a97271f 100644
--- a/bootmain.c
+++ b/bootmain.c
@@ -31,7 +31,7 @@
**********************************************************************/
#define SECTSIZE 512
-#define ELFHDR ((struct Elf *) 0x10000) // scratch space
+#define ELFHDR ((struct elfhdr *) 0x10000) // scratch space
void readsect(void*, uint32_t);
void readseg(uint32_t, uint32_t, uint32_t);
@@ -39,7 +39,7 @@ void readseg(uint32_t, uint32_t, uint32_t);
void
cmain(void)
{
- struct Proghdr *ph, *eph;
+ struct proghdr *ph, *eph;
// read 1st page off disk
readseg((uint32_t) ELFHDR, SECTSIZE*8, 0);
@@ -49,7 +49,7 @@ cmain(void)
goto bad;
// load each program segment (ignores ph flags)
- ph = (struct Proghdr *) ((uint8_t *) ELFHDR + ELFHDR->phoff);
+ ph = (struct proghdr *) ((uint8_t *) ELFHDR + ELFHDR->phoff);
eph = ph + ELFHDR->phnum;
for (; ph < eph; ph++)
readseg(ph->va, ph->memsz, ph->offset);