Lines Matching refs:lc

404 	struct lowcore *lc, *abs_lc;  in setup_lowcore()  local
410 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore()
411 if (!lc) in setup_lowcore()
413 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore()
415 lc->restart_psw.mask = PSW_KERNEL_BITS & ~PSW_MASK_DAT; in setup_lowcore()
416 lc->restart_psw.addr = __pa(restart_int_handler); in setup_lowcore()
417 lc->external_new_psw.mask = PSW_KERNEL_BITS | PSW_MASK_MCHECK; in setup_lowcore()
418 lc->external_new_psw.addr = (unsigned long) ext_int_handler; in setup_lowcore()
419 lc->svc_new_psw.mask = PSW_KERNEL_BITS | PSW_MASK_MCHECK; in setup_lowcore()
420 lc->svc_new_psw.addr = (unsigned long) system_call; in setup_lowcore()
421 lc->program_new_psw.mask = PSW_KERNEL_BITS | PSW_MASK_MCHECK; in setup_lowcore()
422 lc->program_new_psw.addr = (unsigned long) pgm_check_handler; in setup_lowcore()
423 lc->mcck_new_psw.mask = PSW_KERNEL_BITS; in setup_lowcore()
424 lc->mcck_new_psw.addr = (unsigned long) mcck_int_handler; in setup_lowcore()
425 lc->io_new_psw.mask = PSW_KERNEL_BITS | PSW_MASK_MCHECK; in setup_lowcore()
426 lc->io_new_psw.addr = (unsigned long) io_int_handler; in setup_lowcore()
427 lc->clock_comparator = clock_comparator_max; in setup_lowcore()
428 lc->current_task = (unsigned long)&init_task; in setup_lowcore()
429 lc->lpp = LPP_MAGIC; in setup_lowcore()
430 lc->machine_flags = S390_lowcore.machine_flags; in setup_lowcore()
431 lc->preempt_count = S390_lowcore.preempt_count; in setup_lowcore()
432 nmi_alloc_mcesa_early(&lc->mcesad); in setup_lowcore()
433 lc->sys_enter_timer = S390_lowcore.sys_enter_timer; in setup_lowcore()
434 lc->exit_timer = S390_lowcore.exit_timer; in setup_lowcore()
435 lc->user_timer = S390_lowcore.user_timer; in setup_lowcore()
436 lc->system_timer = S390_lowcore.system_timer; in setup_lowcore()
437 lc->steal_timer = S390_lowcore.steal_timer; in setup_lowcore()
438 lc->last_update_timer = S390_lowcore.last_update_timer; in setup_lowcore()
439 lc->last_update_clock = S390_lowcore.last_update_clock; in setup_lowcore()
445 lc->mcck_stack = stack_alloc_early() + STACK_INIT_OFFSET; in setup_lowcore()
446 lc->async_stack = stack_alloc_early() + STACK_INIT_OFFSET; in setup_lowcore()
447 lc->nodat_stack = stack_alloc_early() + STACK_INIT_OFFSET; in setup_lowcore()
448 lc->kernel_stack = S390_lowcore.kernel_stack; in setup_lowcore()
454 lc->restart_stack = (unsigned long) restart_stack; in setup_lowcore()
455 lc->restart_fn = (unsigned long) do_restart; in setup_lowcore()
456 lc->restart_data = 0; in setup_lowcore()
457 lc->restart_source = -1U; in setup_lowcore()
458 __ctl_store(lc->cregs_save_area, 0, 15); in setup_lowcore()
459 lc->spinlock_lockval = arch_spin_lockval(0); in setup_lowcore()
460 lc->spinlock_index = 0; in setup_lowcore()
462 lc->return_lpswe = gen_lpswe(__LC_RETURN_PSW); in setup_lowcore()
463 lc->return_mcck_lpswe = gen_lpswe(__LC_RETURN_MCCK_PSW); in setup_lowcore()
464 lc->preempt_count = PREEMPT_DISABLED; in setup_lowcore()
465 lc->kernel_asce = S390_lowcore.kernel_asce; in setup_lowcore()
466 lc->user_asce = S390_lowcore.user_asce; in setup_lowcore()
469 abs_lc->restart_stack = lc->restart_stack; in setup_lowcore()
470 abs_lc->restart_fn = lc->restart_fn; in setup_lowcore()
471 abs_lc->restart_data = lc->restart_data; in setup_lowcore()
472 abs_lc->restart_source = lc->restart_source; in setup_lowcore()
473 abs_lc->restart_psw = lc->restart_psw; in setup_lowcore()
475 memcpy(abs_lc->cregs_save_area, lc->cregs_save_area, sizeof(abs_lc->cregs_save_area)); in setup_lowcore()
476 abs_lc->program_new_psw = lc->program_new_psw; in setup_lowcore()
477 abs_lc->mcesad = lc->mcesad; in setup_lowcore()
480 set_prefix(__pa(lc)); in setup_lowcore()
481 lowcore_ptr[0] = lc; in setup_lowcore()