comparison packages/kernel/current/tests/intr0.cxx @ 2266:13625e7b9d1f

Implement FIFO variant of scheduling of DSRs and make it the default. This is reworked patch originally suggested by Stefan Sommerfeld <sommerfeld@mikrom.com>. * cdl/interrupts.cdl (CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST): make it cdl_component. * cdl/interrupts.cdl (CYGSEM_KERNEL_INTERRUPTS_DSRS_LIST_FIFO): new option for CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST. * include/intr.hxx (class Cyg_Interrupt): new static variable dsr_list_tail. * src/intr/intr.cxx (call_pending_DSRs_inner): add CYGSEM_KERNEL_INTERRUPTS_DSRS_LIST_FIFO variant. (post_dsr): likewise. * tests/intr0.cxx: fix comments to match actual option names. * tests/kintr0.c: likewise.2006-03-27 Marco Cruz <marco@daruma.com.br>
author nickg
date Fri, 11 Aug 2006 09:29:31 +0000
parents d2c90368aeef
children a18d24f79bca
comparison
equal deleted inserted replaced
2265:b5670f3c40f2 2266:13625e7b9d1f
44 // Contributors: dsm, jlarmour 44 // Contributors: dsm, jlarmour
45 // Date: 1999-02-16 45 // Date: 1999-02-16
46 // Description: Very basic test of interrupt objects 46 // Description: Very basic test of interrupt objects
47 // Options: 47 // Options:
48 // CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE 48 // CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE
49 // CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE 49 // CYGNUM_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE
50 // CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST 50 // CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST
51 // CYGSEM_KERNEL_INTERRUPTS_DSRS_LIST_FIFO
51 //####DESCRIPTIONEND#### 52 //####DESCRIPTIONEND####
52 53
53 #include <pkgconf/kernel.h> 54 #include <pkgconf/kernel.h>
54 55
55 #include <cyg/kernel/intr.hxx> 56 #include <cyg/kernel/intr.hxx>