src/cpu/zero/vm/bytes_zero.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2002, Oracle and/or its affiliates. All rights reserved. * Copyright 2007, 2008, 2009 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as --- 1,7 ---- /* ! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2007, 2008, 2009 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as
*** 21,30 **** --- 21,35 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ + #ifndef CPU_ZERO_VM_BYTES_ZERO_HPP + #define CPU_ZERO_VM_BYTES_ZERO_HPP + + #include "memory/allocation.hpp" + typedef union unaligned { u4 u; u2 us; u8 ul; } __attribute__((packed)) unaligned;
*** 158,164 **** }; #ifdef VM_LITTLE_ENDIAN // The following header contains the implementations of swap_u2, // swap_u4, and swap_u8 ! #include "incls/_bytes_pd.inline.hpp.incl" #endif // VM_LITTLE_ENDIAN --- 163,174 ---- }; #ifdef VM_LITTLE_ENDIAN // The following header contains the implementations of swap_u2, // swap_u4, and swap_u8 ! #ifdef TARGET_OS_ARCH_linux_zero ! # include "bytes_linux_zero.inline.hpp" ! #endif ! #endif // VM_LITTLE_ENDIAN + + #endif // CPU_ZERO_VM_BYTES_ZERO_HPP