void PowerON_Reset_PC(void) { /* ==== VBR setting ==== */ set_vbr((void *)((char *)&INT_Vectors - INT_OFFSET)); /* ==== HardwareSetup Function ==== */ HardwareSetup(); /* Use Hardware Setup */ /* ==== B and D sections initialization ==== */ #ifdef COPY_SECTION_P ProgCopy(); #endif _INITSCT(); /* ==== Status Register setting ==== */ set_cr(SR_Init); /* ==== Main function call ==== */ main(); /* ==== Sleep instruction execute ==== */ sleep(); }
void PowerON_Reset_PC(void) { set_vbr((void *)((_UBYTE *)&INT_Vectors - INT_OFFSET)); // HardwareSetup(); // Use Hardware Setup _INITSCT(); // _CALL_INIT(); // Remove the comment when you use global class object // _INIT_IOLIB(); // Enable I/O in the application(both SIM I/O and hardware I/O) // errno=0; // Remove the comment when you use errno // srand((_UINT)1); // Remove the comment when you use rand() // _s1ptr=NULL; // Remove the comment when you use strtok() set_cr(SR_Init); main(); // _CLOSEALL(); // Close I/O in the application(both SIM I/O andhardware I/O) // _CALL_END(); // Remove the comment when you use global class object while(1); }
void PowerON_Reset_PC(void) { char *p; set_vbr(&INT_Vectors[-4]); // VBRの設定 set_fpscr(FPSCR_Init); // _INITSCT(); // Rセクションの初期化(D→R)とBセクションのクリア (RAM上ロードのため未使用) for (p = (char*)__sectop("B"); p < (char*)__secend("B"); p++) *p = 0; // Bセクションのクリア // _CALL_INIT(); // Remove the comment when you use global class object // _INIT_IOLIB(); // Enable I/O in the application(both SIM I/O and hardware I/O) // errno=0; // Remove the comment when you use errno // srand((_UINT)1); // Remove the comment when you use rand() // _s1ptr=NULL; // Remove the comment when you use strtok() // HardwareSetup(); // Use Hardware Setup set_cr(SR_Init); main(); // _CLOSEALL(); // Close I/O in the application(both SIM I/O andhardware I/O) // _CALL_END(); // Remove the comment when you use global class object sleep(); }
static void nvenc_setup_rate_control(AVCodecContext *avctx) { NVENCContext *ctx = avctx->priv_data; NV_ENC_RC_PARAMS *rc = &ctx->config.rcParams; if (avctx->bit_rate > 0) rc->averageBitRate = avctx->bit_rate; if (avctx->rc_max_rate > 0) rc->maxBitRate = avctx->rc_max_rate; if (ctx->rc > 0) { nvenc_override_rate_control(avctx, rc); } else if (avctx->global_quality > 0) { set_constqp(avctx, rc); } else if (avctx->qmin >= 0 && avctx->qmax >= 0) { rc->rateControlMode = NV_ENC_PARAMS_RC_VBR; set_vbr(avctx, rc); } if (avctx->rc_buffer_size > 0) rc->vbvBufferSize = avctx->rc_buffer_size; if (rc->averageBitRate > 0) avctx->bit_rate = rc->averageBitRate; }
/***************************************************************************** * @name __initialize_hardware * * @brief: Called from startcf_cfv2. * * @param : None * * @return : None ***************************************************************************** * * ****************************************************************************/ void __initialize_hardware(void) { /******************************************************* * Out of reset, the low-level assembly code calls this * routine to initialize the MCF52259 modules. ********************************************************/ asm { /* Initialize IPSBAR */ move.l #__IPSBAR,d0 andi.l #0xC0000000,d0 // need to mask add.l #0x1,d0 move.l d0,0x40000000 /* Initialize FLASHBAR */ move.l #__FLASHBAR,d0 andi.l #0xFFF80000,d0 // need to mask add.l #0x61,d0 movec d0,FLASHBAR } set_vbr(0); }
void DEFUN_VOID(_Board_Initialize) { mc68020_isr *monitors_vector_table; int index; monitors_vector_table = (mc68020_isr *)0; /* 135Bug Vectors are at 0 */ set_vbr( monitors_vector_table ); for ( index=2 ; index<=255 ; index++ ) M68Kvec[ index ] = monitors_vector_table[ 32 ]; M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */ M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */ M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */ M68Kvec[ 47 ] = monitors_vector_table[ 47 ]; /* system call vector */ set_vbr( &M68Kvec ); (*(unsigned char *)0xfffb0067) = 0x7f; /* make VME access round-robin */ enable_caching(); }
static void nvenc_override_rate_control(AVCodecContext *avctx, NV_ENC_RC_PARAMS *rc) { NVENCContext *ctx = avctx->priv_data; switch (ctx->rc) { case NV_ENC_PARAMS_RC_CONSTQP: if (avctx->global_quality < 0) { av_log(avctx, AV_LOG_WARNING, "The constant quality rate-control requires " "the 'global_quality' option set.\n"); return; } set_constqp(avctx, rc); return; case NV_ENC_PARAMS_RC_2_PASS_VBR: case NV_ENC_PARAMS_RC_VBR: if (avctx->qmin < 0 && avctx->qmax < 0) { av_log(avctx, AV_LOG_WARNING, "The variable bitrate rate-control requires " "the 'qmin' and/or 'qmax' option set.\n"); return; } case NV_ENC_PARAMS_RC_VBR_MINQP: if (avctx->qmin < 0) { av_log(avctx, AV_LOG_WARNING, "The variable bitrate rate-control requires " "the 'qmin' option set.\n"); return; } set_vbr(avctx, rc); break; case NV_ENC_PARAMS_RC_CBR: break; case NV_ENC_PARAMS_RC_2_PASS_QUALITY: case NV_ENC_PARAMS_RC_2_PASS_FRAMESIZE_CAP: if (!(ctx->flags & NVENC_LOWLATENCY)) { av_log(avctx, AV_LOG_WARNING, "The multipass rate-control requires " "a low-latency preset.\n"); return; } } rc->rateControlMode = ctx->rc; }
/* * called at boot time, configure all devices on the system. */ void cpu_configure() { softintr_init(); if (config_rootfound("mainbus", "mainbus") == 0) panic("no mainbus found"); /* * Switch to our final trap vectors, and unmap the PROM data area. */ set_vbr(kernel_vbr); pmap_unmap_firmware(); cold = 0; /* * Turn external interrupts on. */ set_psr(get_psr() & ~PSR_IND); spl0(); }