Commit b84059a6 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

multiarch: removed target architecture checks from the following files:

* include/image.h,
* include/syscall-types.h,
* include/restorer.h,
* parasite-syscall.c,
* cr-dump.c,
* cr-show.c,
* pie/parasite.c.
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 714cbe70
......@@ -67,10 +67,6 @@
#include "asm/dump.h"
#ifndef CONFIG_X86_64
# error No x86-32 support yet
#endif
static char loc_buf[PAGE_SIZE];
static int pidns_proc = -1;
......
......@@ -45,10 +45,6 @@
#define DEF_PAGES_PER_LINE 6
#ifndef CONFIG_X86_64
# error No x86-32 support yet
#endif
#define PR_SYMBOL(sym) \
(isprint(sym) ? sym : '.')
......
......@@ -107,8 +107,6 @@ struct page_entry {
#define CR_CAP_SIZE 2
#ifdef CONFIG_X86_64
#define GDT_ENTRY_TLS_ENTRIES 3
#define TASK_COMM_LEN 16
......@@ -125,8 +123,6 @@ struct page_entry {
#define TASK_STOPPED 0x3 /* FIXME - implement */
#define TASK_HELPER 0x4
#endif /* CONFIG_X86_64 */
/*
* There are always 4 magic bytes at the
* beginning of the every file.
......
......@@ -18,10 +18,6 @@
#include "../protobuf/creds.pb-c.h"
#include "../protobuf/core.pb-c.h"
#ifndef CONFIG_X86_64
# error Only x86-64 is supported
#endif
struct task_restore_core_args;
struct thread_restore_args;
......
......@@ -14,10 +14,6 @@
#include "asm/types.h"
#ifndef CONFIG_X86_64
# error x86-32 bit mode not yet implemented
#endif
struct cap_header {
u32 version;
int pid;
......
......@@ -24,7 +24,6 @@
#include <string.h>
#include <stdlib.h>
#ifdef CONFIG_X86_64
#include "asm/parasite-syscall.h"
#include "asm/dump.h"
......@@ -857,6 +856,3 @@ err_restore:
return NULL;
}
#else /* CONFIG_X86_64 */
# error x86-32 is not yet implemented
#endif /* CONFIG_X86_64 */
......@@ -14,10 +14,6 @@
#include "asm/parasite.h"
#ifndef CONFIG_X86_64
#error non-x86-64 mode not yet implemented
#endif
static void *brk_start, *brk_end, *brk_tail;
static int tsock = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment