1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 34 unchanged lines hidden (view full) --- 43#ifdef CONSOLE 44typedef unsigned uint32_t; 45typedef unsigned long uint64_t; 46#endif 47 48// This structure hacked up from simos 49struct MipsAccess 50{ |
51 uint32_t inputChar; // 00: Placeholder for input 52 uint32_t last_offset; // 04: must be first field 53 uint32_t version; // 08: 54 uint32_t numCPUs; // 0C: 55 uint32_t intrClockFrequency; // 10: Hz |
56 57 // Loaded kernel |
58 uint32_t kernStart; // 14: 59 uint32_t kernEnd; // 18: 60 uint32_t entryPoint; // 1c: |
61 62 // console simple output stuff |
63 uint32_t outputChar; // 20: Placeholder for output |
64 65 // console disk stuff |
66 uint32_t diskUnit; // 24: 67 uint32_t diskCount; // 28: 68 uint32_t diskPAddr; // 2c: 69 uint32_t diskBlock; // 30: 70 uint32_t diskOperation; // 34: |
71 72 // MP boot |
73 uint32_t cpuStack[64]; // 70: |
74 75 /* XXX There appears to be a problem in accessing 76 * unit64_t in the console.c file. They are treated 77 * like uint32_int and result in the wrong address for 78 * everything below. This problem should be investigated. 79 */ |
80 uint64_t cpuClock; // 38: MHz 81 uint64_t mem_size; // 40: |
82}; 83 84#endif // __MIPS_ACCESS_H__ |