Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f3fa3f0 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

[S390] Remove unused user_seg from thread structure.

parent ba8a9229
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -270,14 +270,12 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long new_stackp,
	save_fp_regs(&current->thread.fp_regs);
	save_fp_regs(&current->thread.fp_regs);
	memcpy(&p->thread.fp_regs, &current->thread.fp_regs,
	memcpy(&p->thread.fp_regs, &current->thread.fp_regs,
	       sizeof(s390_fp_regs));
	       sizeof(s390_fp_regs));
        p->thread.user_seg = __pa((unsigned long) p->mm->pgd) | _SEGMENT_TABLE;
	/* Set a new TLS ?  */
	/* Set a new TLS ?  */
	if (clone_flags & CLONE_SETTLS)
	if (clone_flags & CLONE_SETTLS)
		p->thread.acrs[0] = regs->gprs[6];
		p->thread.acrs[0] = regs->gprs[6];
#else /* CONFIG_64BIT */
#else /* CONFIG_64BIT */
	/* Save the fpu registers to new thread structure. */
	/* Save the fpu registers to new thread structure. */
	save_fp_regs(&p->thread.fp_regs);
	save_fp_regs(&p->thread.fp_regs);
        p->thread.user_seg = __pa((unsigned long) p->mm->pgd) | _REGION_TABLE;
	/* Set a new TLS ?  */
	/* Set a new TLS ?  */
	if (clone_flags & CLONE_SETTLS) {
	if (clone_flags & CLONE_SETTLS) {
		if (test_thread_flag(TIF_31BIT)) {
		if (test_thread_flag(TIF_31BIT)) {
+3 −11
Original line number Original line Diff line number Diff line
@@ -93,7 +93,6 @@ struct thread_struct {
	s390_fp_regs fp_regs;
	s390_fp_regs fp_regs;
	unsigned int  acrs[NUM_ACRS];
	unsigned int  acrs[NUM_ACRS];
        unsigned long ksp;              /* kernel stack pointer             */
        unsigned long ksp;              /* kernel stack pointer             */
        unsigned long user_seg;         /* HSTD                             */
	mm_segment_t mm_segment;
	mm_segment_t mm_segment;
        unsigned long prot_addr;        /* address of protection-excep.     */
        unsigned long prot_addr;        /* address of protection-excep.     */
        unsigned int error_code;        /* error-code of last prog-excep.   */
        unsigned int error_code;        /* error-code of last prog-excep.   */
@@ -134,15 +133,8 @@ struct stack_frame {
# define __SWAPPER_PG_DIR __pa(&swapper_pg_dir[0]) + _REGION_TABLE
# define __SWAPPER_PG_DIR __pa(&swapper_pg_dir[0]) + _REGION_TABLE
#endif /* __s390x__ */
#endif /* __s390x__ */


#define INIT_THREAD {{0,{{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},	       \
#define INIT_THREAD {							\
			    {0},{0},{0},{0},{0},{0}}},			       \
	.ksp = sizeof(init_stack) + (unsigned long) &init_stack,	\
		     {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},	       \
		     sizeof(init_stack) + (unsigned long) &init_stack,	       \
		     __SWAPPER_PG_DIR,					       \
		     {0},						       \
		     0,0,0,						       \
		     (per_struct) {{{{0,}}},0,0,0,0,{{0,}}},		       \
		     0, 0						       \
}
}


/*
/*