Rework tracking of reserve entries during processing. This is initial work

to allow more powerful handling of reserve entries.
This commit is contained in:
David Gibson 2005-10-24 18:18:38 +10:00
parent fccb194a14
commit f040d95b84
7 changed files with 119 additions and 58 deletions

10
data.c
View file

@ -222,6 +222,16 @@ struct data data_append_cell(struct data d, cell_t word)
return data_append_data(d, &beword, sizeof(beword));
}
struct data data_append_re(struct data d, struct reserve_entry *re)
{
struct reserve_entry bere;
bere.address = cpu_to_be64(re->address);
bere.size = cpu_to_be64(re->size);
return data_append_data(d, &bere, sizeof(bere));
}
struct data data_append_addr(struct data d, u64 addr)
{
u64 beaddr = cpu_to_be64(addr);