Lines Matching refs:lc

415 	struct lowcore *lc;  in setup_lowcore_dat_off()  local
424 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
425 if (!lc) in setup_lowcore_dat_off()
427 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
429 lc->restart_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
430 lc->restart_psw.addr = (unsigned long) restart_int_handler; in setup_lowcore_dat_off()
431 lc->external_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
432 lc->external_new_psw.addr = (unsigned long) ext_int_handler; in setup_lowcore_dat_off()
433 lc->svc_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
434 lc->svc_new_psw.addr = (unsigned long) system_call; in setup_lowcore_dat_off()
435 lc->program_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
436 lc->program_new_psw.addr = (unsigned long) pgm_check_handler; in setup_lowcore_dat_off()
437 lc->mcck_new_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
438 lc->mcck_new_psw.addr = (unsigned long) mcck_int_handler; in setup_lowcore_dat_off()
439 lc->io_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
440 lc->io_new_psw.addr = (unsigned long) io_int_handler; in setup_lowcore_dat_off()
441 lc->clock_comparator = clock_comparator_max; in setup_lowcore_dat_off()
442 lc->nodat_stack = ((unsigned long) &init_thread_union) in setup_lowcore_dat_off()
444 lc->current_task = (unsigned long)&init_task; in setup_lowcore_dat_off()
445 lc->lpp = LPP_MAGIC; in setup_lowcore_dat_off()
446 lc->machine_flags = S390_lowcore.machine_flags; in setup_lowcore_dat_off()
447 lc->preempt_count = S390_lowcore.preempt_count; in setup_lowcore_dat_off()
448 nmi_alloc_boot_cpu(lc); in setup_lowcore_dat_off()
449 lc->sys_enter_timer = S390_lowcore.sys_enter_timer; in setup_lowcore_dat_off()
450 lc->exit_timer = S390_lowcore.exit_timer; in setup_lowcore_dat_off()
451 lc->user_timer = S390_lowcore.user_timer; in setup_lowcore_dat_off()
452 lc->system_timer = S390_lowcore.system_timer; in setup_lowcore_dat_off()
453 lc->steal_timer = S390_lowcore.steal_timer; in setup_lowcore_dat_off()
454 lc->last_update_timer = S390_lowcore.last_update_timer; in setup_lowcore_dat_off()
455 lc->last_update_clock = S390_lowcore.last_update_clock; in setup_lowcore_dat_off()
472 lc->restart_stack = (unsigned long) restart_stack; in setup_lowcore_dat_off()
473 lc->restart_fn = (unsigned long) do_restart; in setup_lowcore_dat_off()
474 lc->restart_data = 0; in setup_lowcore_dat_off()
475 lc->restart_source = -1U; in setup_lowcore_dat_off()
481 lc->mcck_stack = mcck_stack + STACK_INIT_OFFSET; in setup_lowcore_dat_off()
484 mem_assign_absolute(S390_lowcore.restart_stack, lc->restart_stack); in setup_lowcore_dat_off()
485 mem_assign_absolute(S390_lowcore.restart_fn, lc->restart_fn); in setup_lowcore_dat_off()
486 mem_assign_absolute(S390_lowcore.restart_data, lc->restart_data); in setup_lowcore_dat_off()
487 mem_assign_absolute(S390_lowcore.restart_source, lc->restart_source); in setup_lowcore_dat_off()
488 mem_assign_absolute(S390_lowcore.restart_psw, lc->restart_psw); in setup_lowcore_dat_off()
490 lc->spinlock_lockval = arch_spin_lockval(0); in setup_lowcore_dat_off()
491 lc->spinlock_index = 0; in setup_lowcore_dat_off()
493 lc->br_r1_trampoline = 0x07f1; /* br %r1 */ in setup_lowcore_dat_off()
494 lc->return_lpswe = gen_lpswe(__LC_RETURN_PSW); in setup_lowcore_dat_off()
495 lc->return_mcck_lpswe = gen_lpswe(__LC_RETURN_MCCK_PSW); in setup_lowcore_dat_off()
496 lc->preempt_count = PREEMPT_DISABLED; in setup_lowcore_dat_off()
498 set_prefix((u32)(unsigned long) lc); in setup_lowcore_dat_off()
499 lowcore_ptr[0] = lc; in setup_lowcore_dat_off()
504 struct lowcore *lc = lowcore_ptr[0]; in setup_lowcore_dat_on() local
514 mem_assign_absolute(S390_lowcore.program_new_psw, lc->program_new_psw); in setup_lowcore_dat_on()
515 memcpy_absolute(&S390_lowcore.cregs_save_area, lc->cregs_save_area, in setup_lowcore_dat_on()