Lines Matching full:lc
376 struct lowcore *lc; in setup_lowcore_dat_off() local
385 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
386 if (!lc) in setup_lowcore_dat_off()
388 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
390 lc->restart_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
391 lc->restart_psw.addr = (unsigned long) restart_int_handler; in setup_lowcore_dat_off()
392 lc->external_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
393 lc->external_new_psw.addr = (unsigned long) ext_int_handler; in setup_lowcore_dat_off()
394 lc->svc_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
395 lc->svc_new_psw.addr = (unsigned long) system_call; in setup_lowcore_dat_off()
396 lc->program_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
397 lc->program_new_psw.addr = (unsigned long) pgm_check_handler; in setup_lowcore_dat_off()
398 lc->mcck_new_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
399 lc->mcck_new_psw.addr = (unsigned long) mcck_int_handler; in setup_lowcore_dat_off()
400 lc->io_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
401 lc->io_new_psw.addr = (unsigned long) io_int_handler; in setup_lowcore_dat_off()
402 lc->clock_comparator = clock_comparator_max; in setup_lowcore_dat_off()
403 lc->nodat_stack = ((unsigned long) &init_thread_union) in setup_lowcore_dat_off()
405 lc->current_task = (unsigned long)&init_task; in setup_lowcore_dat_off()
406 lc->lpp = LPP_MAGIC; in setup_lowcore_dat_off()
407 lc->machine_flags = S390_lowcore.machine_flags; in setup_lowcore_dat_off()
408 lc->preempt_count = S390_lowcore.preempt_count; in setup_lowcore_dat_off()
409 lc->stfl_fac_list = S390_lowcore.stfl_fac_list; in setup_lowcore_dat_off()
410 memcpy(lc->stfle_fac_list, S390_lowcore.stfle_fac_list, in setup_lowcore_dat_off()
411 sizeof(lc->stfle_fac_list)); in setup_lowcore_dat_off()
412 memcpy(lc->alt_stfle_fac_list, S390_lowcore.alt_stfle_fac_list, in setup_lowcore_dat_off()
413 sizeof(lc->alt_stfle_fac_list)); in setup_lowcore_dat_off()
414 nmi_alloc_boot_cpu(lc); in setup_lowcore_dat_off()
415 lc->sync_enter_timer = S390_lowcore.sync_enter_timer; in setup_lowcore_dat_off()
416 lc->async_enter_timer = S390_lowcore.async_enter_timer; in setup_lowcore_dat_off()
417 lc->exit_timer = S390_lowcore.exit_timer; in setup_lowcore_dat_off()
418 lc->user_timer = S390_lowcore.user_timer; in setup_lowcore_dat_off()
419 lc->system_timer = S390_lowcore.system_timer; in setup_lowcore_dat_off()
420 lc->steal_timer = S390_lowcore.steal_timer; in setup_lowcore_dat_off()
421 lc->last_update_timer = S390_lowcore.last_update_timer; in setup_lowcore_dat_off()
422 lc->last_update_clock = S390_lowcore.last_update_clock; in setup_lowcore_dat_off()
439 lc->restart_stack = (unsigned long) restart_stack; in setup_lowcore_dat_off()
440 lc->restart_fn = (unsigned long) do_restart; in setup_lowcore_dat_off()
441 lc->restart_data = 0; in setup_lowcore_dat_off()
442 lc->restart_source = -1UL; in setup_lowcore_dat_off()
445 mem_assign_absolute(S390_lowcore.restart_stack, lc->restart_stack); in setup_lowcore_dat_off()
446 mem_assign_absolute(S390_lowcore.restart_fn, lc->restart_fn); in setup_lowcore_dat_off()
447 mem_assign_absolute(S390_lowcore.restart_data, lc->restart_data); in setup_lowcore_dat_off()
448 mem_assign_absolute(S390_lowcore.restart_source, lc->restart_source); in setup_lowcore_dat_off()
449 mem_assign_absolute(S390_lowcore.restart_psw, lc->restart_psw); in setup_lowcore_dat_off()
451 lc->spinlock_lockval = arch_spin_lockval(0); in setup_lowcore_dat_off()
452 lc->spinlock_index = 0; in setup_lowcore_dat_off()
454 lc->br_r1_trampoline = 0x07f1; /* br %r1 */ in setup_lowcore_dat_off()
455 lc->return_lpswe = gen_lpswe(__LC_RETURN_PSW); in setup_lowcore_dat_off()
456 lc->return_mcck_lpswe = gen_lpswe(__LC_RETURN_MCCK_PSW); in setup_lowcore_dat_off()
457 lc->preempt_count = PREEMPT_DISABLED; in setup_lowcore_dat_off()
459 set_prefix((u32)(unsigned long) lc); in setup_lowcore_dat_off()
460 lowcore_ptr[0] = lc; in setup_lowcore_dat_off()