Files
codezero/tasks/bootdesc/bootdesc.c.orig
Bahadir Balban e2b791a3d8 Initial commit
2008-01-13 13:53:52 +00:00

40 lines
725 B
C

/* Supervisor task at load time. */
struct svc_image {
char name[16];
unsigned int phys_start;
unsigned int phys_end;
} __attribute__((__packed__));
/* Supervisor task descriptor at load time */
struct bootdesc {
int desc_size;
int total_images;
struct svc_image images[];
} __attribute__((__packed__));
struct bootdesc bootdesc = {
.desc_size = sizeof(struct bootdesc) + sizeof(struct svc_image) * 3,
.total_images = 3,
.images = {
[0] = {
.name = "inittask",
.phys_start = 0x208000,
.phys_end = 0x213260,
},
[1] = {
.name = "roottask",
.phys_start = 0x218000,
.phys_end = 0x21b344,
},
[2] = {
.name = "testtask",
.phys_start = 0x220000,
.phys_end = 0x223344,
},
},
};