Chameleon

Chameleon Commit Details

Date:2014-10-21 17:27:48 (6 years 1 month ago)
Author:ErmaC
Commit:2425
Parents: 2424
Message:Update bootargs.
Changes:
M/trunk/i386/libsaio/bootargs.h
M/trunk/i386/util/Makefile
M/trunk/i386/libsaio/platform.h
M/trunk/CHANGES
M/trunk/i386/libsaio/smbios.c

File differences

trunk/i386/libsaio/bootargs.h
108108
109109
110110
111
112
113
111114
112115
113116
......
118121
119122
120123
121
124
122125
123126
124127
......
140143
141144
142145
143
146
144147
145148
146149
......
151154
152155
153156
154
157
158
159
160
161
162
163
155164
156165
157166
#define kBootArgsPreLionVersion1
/* Snapshot constants of previous revisions that are supported */
#define kBootArgsVersion11
#define kBootArgsVersion22
#define kBootArgsRevision2_00
#define kBootArgsEfiMode32 32
#define kBootArgsEfiMode64 64
uint8_t efiMode; /* 32 means 32-bit mode, 64 means 64-bit mode */
uint8_t debugMode; /* Bit field with behavior changes */
uint8_t __reserved1[2];
uint16_t flags; // uint8_t __reserved1[2];
char CommandLine[BOOT_LINE_LENGTH];/* Passed in command line */
uint64_t efiRuntimeServicesVirtualPageStart; /* virtual address of defragmented runtime pages */
uint32_t efiSystemTable; /* physical address of system table in runtime area */
uint32_t __reserved2;
uint32_t kslide; // uint32_t __reserved2;
uint32_t performanceDataStart; /* physical address of log */
uint32_t performanceDataSize;
uint64_tbootMemSize;
uint64_t PhysicalMemorySize;
uint64_t FSBFrequency;
uint32_t __reserved4[734];
//
uint64_t pciConfigSpaceBaseAddress;
uint32_t pciConfigSpaceStartBusNumber;
uint32_t pciConfigSpaceEndBusNumber;
uint32_t __reserved4[730];
//
// uint32_t __reserved4[734];
} boot_args;
trunk/i386/libsaio/platform.h
4444
4545
4646
47
47
4848
4949
5050
5151
5252
53
53
5454
5555
5656
5757
5858
59
5960
6061
6162
6263
63
64
6465
6566
6667
#define CPU_MODEL_PENRYN0x17// Wolfdale, Yorkfield, Harpertown, Penryn
#define CPU_MODEL_WOLFDALE0x17//
#define CPU_MODEL_NEHALEM0x1A// Bloomfield. Nehalem-EP, Nehalem-WS, Gainestown
#define CPU_MODEL_ATOM0x1C// Pineview
#define CPU_MODEL_ATOM0x1C// Pineview, Bonnell
#define CPU_MODEL_XEON_MP0x1D// MP 7400
#define CPU_MODEL_FIELDS0x1E// Lynnfield, Clarksfield, Jasper Forest
#define CPU_MODEL_DALES0x1F// Havendale, Auburndale
#define CPU_MODEL_DALES_32NM0x25// Clarkdale, Arrandale
#define CPU_MODEL_ATOM_SAN0x26// Lincroft
#define CPU_MODEL_LINCROFT0x27//
#define CPU_MODEL_LINCROFT0x27// Bonnell
#define CPU_MODEL_SANDYBRIDGE0x2A// Sandy Bridge
#define CPU_MODEL_WESTMERE0x2C// Gulftown, Westmere-EP, Westmere-WS
#define CPU_MODEL_JAKETOWN0x2D// Sandy Bridge-E, Sandy Bridge-EP
#define CPU_MODEL_NEHALEM_EX0x2E// Beckton
#define CPU_MODEL_WESTMERE_EX0x2F// Westmere-EX
//#define CPU_MODEL_BONNELL_ATOM0x35// Bonnell
#define CPU_MODEL_ATOM_20000x36// Cedarview / Saltwell
#define CPU_MODEL_SILVERMONT0x37// Atom Silvermont
#define CPU_MODEL_IVYBRIDGE0x3A// Ivy Bridge
#define CPU_MODEL_HASWELL0x3C// Haswell DT
#define CPU_MODEL_BROADWELL0x3D// Broadwell / Core-AVX2
#define CPU_MODEL_BROADWELL0x3D// Core M, Broadwell / Core-AVX2
#define CPU_MODEL_IVYBRIDGE_XEON0x3E// Ivy Bridge Xeon
#define CPU_MODEL_HASWELL_SVR0x3F// Haswell Server
//#define CPU_MODEL_HASWELL_H0x??// Haswell H
trunk/i386/libsaio/smbios.c
10461046
10471047
10481048
1049
1049
1050
10501051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
10511063
10521064
10531065
/* ==============================================
OEM Platform Feature (Apple Specific - Type 133)
================================================ */
/*void addSMBOemPlatformFeature(SMBStructPtrs *structPtr) { }*/
/*void addSMBOemPlatformFeature(SMBStructPtrs *structPtr) {
SMBOemPlatformFeature *p = (SMBOemPlatformFeature *)structPtr->new;
p->header.type= kSMBTypeOemPlatformFeature;
p->header.length= sizeof(SMBOemPlatformFeature);
p->header.handle= handle++;
setSMBValue(structPtr, numOfSetters - 2 , (returnType *)&(p->PlatformFeature));
structPtr->new = (SMBStructHeader *)((uint8_t *)structPtr->new + sizeof(SMBOemPPlatformFeature) + 2);
tableLength += sizeof(SMBOemPlatformFeature) + 2;
structureCount++;
}*/
//-------------------------------------------------------------------------------------------------------------------------
// EndOfTable
//-------------------------------------------------------------------------------------------------------------------------
trunk/i386/util/Makefile
1818
1919
2020
21
2221
2322
2423
PROGRAMS = machOconv dyldsymboltool segsize
OBJS = dyldsymboltool.o32 dyldsymboltool.o64 machOconv.o32 machOconv.o64 segsize.o32 segsize.o64
ifeq (${CONFIG_BDMESG}, y)
PROGRAMS += bdmesg
OBJS += bdmesg.o32 bdmesg.o64
trunk/CHANGES
1
12
23
34
......
1314
1415
1516
16
17
1718
1819
1920
- ErmaC : Update bootargs
- crazybirdy : Fit length for "Loading Darwin"
- meklort : Update align directives to 2^(old_align)
- Ermac : Bump svn to 2.3
- meklort : Silence output.
- meklort : Add --no-print-directory.
- meklort : Replace \t with tab.
- ErmaC :Update Chameleon.xcodeproj
- ErmaC : Update Chameleon.xcodeproj
- ErmaC : Merge LZVN decompression routine by MinusZwei (C Conversion) based on works from Pike R. Alpha and AnV Software (Andy Vandijck).
- Bungo : Loading custom ECDT.aml, Darwin version string printing, clean boot-args, change firmware rev. to real Mac (0x0001000a), added kernel-compatibility, boot-file, boot-args, machine-signature, random-seed DT properties & some minor changes.
- ErmaC : Merge tja's patch http://forum.voodooprojects.org/index.php/topic,5951.0.html

Archive Download the corresponding diff file

Revision: 2425