summaryrefslogtreecommitdiff
path: root/src/kernel/plef.h
blob: a14ea9ba1e51ce791fb87b463a6657bd5fb7e31d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef PLEF_H
#define PLEF_H

#include <stdint.h>
#include "drive.h"

typedef uint8_t task_handle;

struct plef_header {
  uint32_t magic;
  uint16_t version_low;
  uint16_t version_high;
  uint32_t payload_offset;
  uint32_t payload_length;
  uint32_t bss_length;
  uint32_t entry_point;
} __attribute__ ((packed));

task_handle plef_run(const struct drive *d, const char *path);

#endif