From e793c5b96869760e0facd3fb88293aab77310555 Mon Sep 17 00:00:00 2001 From: Jan Stoess Date: Mon, 13 Sep 2010 16:20:01 +0200 Subject: [PATCH] -PPC: add user-level tracebuffer stub -PPC: small fix for BG build --- kernel/src/platform/ppc44x/bic.cc | 2 +- user/include/l4/powerpc/tracebuffer.h | 34 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 user/include/l4/powerpc/tracebuffer.h diff --git a/kernel/src/platform/ppc44x/bic.cc b/kernel/src/platform/ppc44x/bic.cc index bb85f8ca..2efc6c7f 100644 --- a/kernel/src/platform/ppc44x/bic.cc +++ b/kernel/src/platform/ppc44x/bic.cc @@ -166,7 +166,7 @@ void intctrl_t::handle_irq(word_t cpu) void intctrl_t::map() { ctrl = (bgic_t*)get_kernel_space()-> - map_device(phys_addr, mem_size, pgent_t::cache_inhibited); + map_device(phys_addr, mem_size, true, pgent_t::cache_inhibited); } void intctrl_t::start_new_cpu(word_t cpu) diff --git a/user/include/l4/powerpc/tracebuffer.h b/user/include/l4/powerpc/tracebuffer.h new file mode 100644 index 00000000..628dcf85 --- /dev/null +++ b/user/include/l4/powerpc/tracebuffer.h @@ -0,0 +1,34 @@ +/********************************************************************* + * + * Copyright (C) 2002, Karlsruhe University + * + * File path: l4/powerpc/tracebuffer.h + * Description: Functions for accessing the tracebuffer + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + ********************************************************************/ +#pragma once + +L4_INLINE void L4_Tbuf_StoreRecordArch(L4_TraceRecord_t *rec, L4_TraceConfig_t config) +{ +}