Changeset 169 for soft/giet_vm/sys/kernel_init.c
- Timestamp:
- Jul 17, 2012, 2:39:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/kernel_init.c
r167 r169 542 542 in_kinit void _kernel_peripherals_init() 543 543 { 544 // IOC peripheral initialisation 544 ///////////////////// 545 // IOC peripheral 545 546 // we simply activate the IOC interrupts... 546 unsigned int* ioc_address = (unsigned int*)&seg_ioc_base; 547 548 ioc_address[BLOCK_DEVICE_IRQ_ENABLE] = 1; 547 if ( NB_IOC ) 548 { 549 unsigned int* ioc_address = (unsigned int*)&seg_ioc_base; 550 ioc_address[BLOCK_DEVICE_IRQ_ENABLE] = 1; 551 } 549 552 553 ///////////////////// 554 // FBDMA peripheral 555 // we simply activate the DMA interrupts... 556 if ( NB_DMAS ) 557 { 558 unsigned int* dma_address = (unsigned int*)&seg_dma_base; 559 dma_address[DMA_IRQ_DISABLE] = 0; 560 } 561 562 ///////////////////// 550 563 // IOB peripheral 564 // must be initialised in case of IOMMU 551 565 if ( GIET_IOMMU_ACTIVE ) 552 566 { … … 560 574 // activate IOMMU 561 575 iob_address[IOB_IOMMU_ACTIVE] = 1; 562 } 576 } 563 577 564 578 _puts("\n[INIT] Peripherals initialisation completed at cycle ");
Note: See TracChangeset
for help on using the changeset viewer.