mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 09:48:07 +07:00
530ba6c7cb
Recent libcs have gotten a bit more strict, so we actually need to include the right headers and use the right types. This enables UML to compile again. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Cc: stable@vger.kernel.org Signed-off-by: Richard Weinberger <richard@nod.at>
21 lines
455 B
C
21 lines
455 B
C
/*
|
|
* Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#include <sysdep/stub.h>
|
|
#include <sysdep/faultinfo.h>
|
|
#include <sysdep/mcontext.h>
|
|
#include <sys/ucontext.h>
|
|
|
|
void __attribute__ ((__section__ (".__syscall_stub")))
|
|
stub_segv_handler(int sig, siginfo_t *info, void *p)
|
|
{
|
|
ucontext_t *uc = p;
|
|
|
|
GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA),
|
|
&uc->uc_mcontext);
|
|
trap_myself();
|
|
}
|
|
|