Fixed a bug in apic.c that broke lapic_stop_timer().

Fixed bugs in liveupdate.c that rendered load_state_info() meaningless.
More informative error message in do_config() in service.c.
This commit is contained in:
Kees van Reeuwijk 2010-01-13 14:44:19 +00:00
parent 6a5660a431
commit ad4c0ff698
3 changed files with 5 additions and 5 deletions

View file

@ -23,10 +23,10 @@ PRIVATE void load_state_info(void)
if(sub_dev[i].RevivePending) {
dma_mode = sub_dev[i].DmaMode;
if(dma_mode = DEV_READ_S) {
if(dma_mode == DEV_READ_S) {
is_read_pending = TRUE;
}
else if (dma_mode = DEV_WRITE_S){
else if (dma_mode == DEV_WRITE_S){
is_write_pending = TRUE;
}
}

View file

@ -278,7 +278,7 @@ PUBLIC void lapic_set_timer_periodic(unsigned freq)
PUBLIC void lapic_stop_timer(void)
{
u32_t lvtt;
lapic_read(LAPIC_LVTTR);
lvtt = lapic_read(LAPIC_LVTTR);
lapic_write(LAPIC_LVTTR, lvtt | APIC_LVTT_MASK);
}

View file

@ -1050,8 +1050,8 @@ PRIVATE void do_config(char *label, char *filename)
}
if (cp == NULL)
{
fprintf(stderr, "service: service '%s' not found in config\n",
label);
fprintf(stderr, "service: service '%s' not found in '%s'\n",
label, filename);
exit(1);
}