From 761073aa5610b56bfb7ed608c358c3cf598a3000 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 22 Oct 2025 12:00:19 -0400 Subject: emux64: Move CPU BUA base to memmap.h The memmap.h header will contain where the memory maps are located. Signed-off-by: Ian Moffett --- emux64/src/include/cpu/cpu.h | 4 +--- emux64/src/include/memmap.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 emux64/src/include/memmap.h (limited to 'emux64/src') diff --git a/emux64/src/include/cpu/cpu.h b/emux64/src/include/cpu/cpu.h index 84c8832..482aae3 100644 --- a/emux64/src/include/cpu/cpu.h +++ b/emux64/src/include/cpu/cpu.h @@ -37,9 +37,7 @@ #include #include - -/* Bring up area physical base */ -#define CPU_BUA_PBASE 0xFFF00000 +#include "memmap.h" /* Register type counts */ #define N_GPREG 16 diff --git a/emux64/src/include/memmap.h b/emux64/src/include/memmap.h new file mode 100644 index 0000000..3060f5c --- /dev/null +++ b/emux64/src/include/memmap.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2025 Ian Marco Moffett and the Osmora Team. + * All rights reserved. + * + * 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. + * 3. Neither the name of Hyra nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. + */ + +#ifndef MEMMAP_H +#define MEMMAP_H 1 + +/* Bring up area physical base */ +#define CPU_BUA_PBASE 0xFFF00000 + +#endif /* !MEMMAP_H */ -- cgit v1.2.3