setup.c (860dbce3d8dd90cb9e909c58fa79808766243651) setup.c (67626fadd26977aca76d3540b80ce99233399cdf)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999, 2012
5 * Author(s): Hartmut Penner (hp@de.ibm.com),
6 * Martin Schwidefsky (schwidefsky@de.ibm.com)
7 *
8 * Derived from "arch/i386/kernel/setup.c"

--- 447 unchanged lines hidden (view full) ---

456
457 /* Setup absolute zero lowcore */
458 mem_assign_absolute(S390_lowcore.restart_stack, lc->restart_stack);
459 mem_assign_absolute(S390_lowcore.restart_fn, lc->restart_fn);
460 mem_assign_absolute(S390_lowcore.restart_data, lc->restart_data);
461 mem_assign_absolute(S390_lowcore.restart_source, lc->restart_source);
462 mem_assign_absolute(S390_lowcore.restart_psw, lc->restart_psw);
463
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999, 2012
5 * Author(s): Hartmut Penner (hp@de.ibm.com),
6 * Martin Schwidefsky (schwidefsky@de.ibm.com)
7 *
8 * Derived from "arch/i386/kernel/setup.c"

--- 447 unchanged lines hidden (view full) ---

456
457 /* Setup absolute zero lowcore */
458 mem_assign_absolute(S390_lowcore.restart_stack, lc->restart_stack);
459 mem_assign_absolute(S390_lowcore.restart_fn, lc->restart_fn);
460 mem_assign_absolute(S390_lowcore.restart_data, lc->restart_data);
461 mem_assign_absolute(S390_lowcore.restart_source, lc->restart_source);
462 mem_assign_absolute(S390_lowcore.restart_psw, lc->restart_psw);
463
464#ifdef CONFIG_SMP
465 lc->spinlock_lockval = arch_spin_lockval(0);
466 lc->spinlock_index = 0;
467 arch_spin_lock_setup(0);
464 lc->spinlock_lockval = arch_spin_lockval(0);
465 lc->spinlock_index = 0;
466 arch_spin_lock_setup(0);
468#endif
469 lc->br_r1_trampoline = 0x07f1; /* br %r1 */
470
471 set_prefix((u32)(unsigned long) lc);
472 lowcore_ptr[0] = lc;
473}
474
475static void __init setup_lowcore_dat_on(void)
476{

--- 734 unchanged lines hidden ---
467 lc->br_r1_trampoline = 0x07f1; /* br %r1 */
468
469 set_prefix((u32)(unsigned long) lc);
470 lowcore_ptr[0] = lc;
471}
472
473static void __init setup_lowcore_dat_on(void)
474{

--- 734 unchanged lines hidden ---