[BACK]Return to kl_types.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / kdb / modules / lcrash / asm

File: [Development] / linux-2.6-xfs / kdb / modules / lcrash / asm / kl_types.h (download)

Revision 1.1, Mon Aug 4 17:03:13 2008 UTC (9 years, 2 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN

Merge up to 2.6.26
Merge of 2.6.x-xfs-melb:linux:31804b by kenmcd.

/*
 * $Id: kl_types.h,v 1.1 2008/08/04 17:03:13 lachlan.longdrop.melbourne.sgi.com Exp $
 *
 * This file is part of libklib.
 * A library which provides access to Linux system kernel dumps.
 *
 * Created by Silicon Graphics, Inc.
 * Contributions by IBM, NEC, and others
 *
 * Copyright (C) 1999 - 2002 Silicon Graphics, Inc. All rights reserved.
 * Copyright (C) 2001, 2002 IBM Deutschland Entwicklung GmbH, IBM Corporation
 * Copyright 2000 Junichi Nomura, NEC Solutions <j-nomura@ce.jp.nec.com>
 *
 * This code is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version. See the file COPYING for more
 * information.
 */

#ifndef __ASMIA64_KL_TYPES_H
#define __ASMIA64_KL_TYPES_H

/* cpw */
/* was #include <kl_dump_ia64.h> */
#include "kl_dump_ia64.h"

#define HOST_ARCH_IA64
/* cpw: add this, as otherwise comes from makefile */
#define DUMP_ARCH_IA64

/* Format string that allows a single fprintf() call to work for both
 * 32-bit and 64-bit pointer values (architecture specific).
 */
#ifdef CONFIG_X86_32
#define FMT64  "ll"
#else
#define FMT64  "l"
#endif
#define FMTPTR  "l"

/* for usage in common code where host architecture
 * specific type/macro is needed
 */
typedef kl_dump_header_ia64_t kl_dump_header_asm_t;
#define KL_DUMP_ASM_MAGIC_NUMBER KL_DUMP_MAGIC_NUMBER_IA64

#endif /* __ASMIA64_KL_TYPES_H */