Chameleon

Chameleon Commit Details

Date:2012-11-08 16:45:03 (11 years 5 months ago)
Author:armel cadet-petit
Commit:2117
Parents: 2116
Message:bug fixes, updated cpu_intel_amd
Changes:
M/branches/cparm/i386/libsaio/msdos.c
M/branches/cparm/i386/modules/SMBiosPatcher/Makefile
M/branches/cparm/i386/modules/CPUfreq/Makefile
M/branches/cparm/i386/util/Makefile
M/branches/cparm/i386/libsaio/disk.c
M/branches/cparm/i386/modules/Memory/Makefile
M/branches/cparm/i386/libsaio/saio_internal.h
M/branches/cparm/i386/libsaio/Makefile
M/branches/cparm/i386/modules/NetbookInstaller/Makefile
M/branches/cparm/i386/modules/RamDiskLoader/Makefile
M/branches/cparm/i386/modules/KextPatcher/Makefile
M/branches/cparm/i386/libsa/Makefile
M/branches/cparm/i386/modules/YellowIconFixer/Makefile
M/branches/cparm/i386/modules/ACPIPatcher/Makefile
M/branches/cparm/i386/libsaio/exfat.c
M/branches/cparm/i386/modules/Networking/Makefile
M/branches/cparm/i386/modules/GraphicsEnabler/Makefile
M/branches/cparm/i386/modules/Keymapper/Makefile
M/branches/cparm/i386/libsaio/hfs.c
M/branches/cparm/i386/MakeInc.dir
M/branches/cparm/xcode3_sym.zip
M/branches/cparm/i386/modules/USBFix/Makefile
M/branches/cparm/i386/modules/HPET/Makefile
M/branches/cparm/i386/modules/Memory/spd.c
M/branches/cparm/i386/modules/Resolution/Makefile
M/branches/cparm/i386/libsaio/hfs.h
M/branches/cparm/i386/libsaio/hfs_compare.c
M/branches/cparm/i386/libsaio/fake_efi.c
M/branches/cparm/i386/modules/ACPICodec/Makefile
M/branches/cparm/i386/modules/HelloWorld/Makefile
M/branches/cparm/i386/libsaio/fake_efi.h
M/branches/cparm/i386/boot2/Makefile
M/branches/cparm/i386/libsaio/cache.c
M/branches/cparm/i386/libsaio/cpu_intel_amd.c
M/branches/cparm/i386/modules/GUI/Makefile
M/branches/cparm/i386/boot2/boot.c
M/branches/cparm/i386/libsaio/arc4random-fbsd.c
M/branches/cparm/i386/libsa/libsa.h
M/branches/cparm/i386/modules/KernelPatcher/Makefile
M/branches/cparm/TODO
M/branches/cparm/i386/libsaio/ntfs.c
M/branches/cparm/i386/libsaio/pci.c
M/branches/cparm/i386/modules/HibernateEnabler/Makefile
M/branches/cparm/i386/modules/SMBiosGetters/Makefile

File differences

branches/cparm/TODO
1212
1313
1414
15
1615
1716
1817
- implement cpu topology
- Backport cconfig from the trunk
- update cpu_intel_amd
- Implement a Host like in bits to avoid some return issues
- update project with corehash
branches/cparm/i386/libsaio/fake_efi.h
1616
1717
1818
19
19
2020
2121
2222
extern EFI_STATUS setup_acpi (void);
extern EFI_STATUS addConfigurationTable();
extern EFI_STATUS addConfigurationTable(EFI_GUID const *pGuid, void *table, char const *alias);
extern struct SMBEntryPoint*getSmbiosOriginal();
branches/cparm/i386/libsaio/exfat.c
3535
3636
3737
38
3839
3940
4041
#include "libsaio.h"
#include "sl.h"
#include "exfat.h"
#ifndef DEBUG_EXFAT
#define DEBUG_EXFAT 0
branches/cparm/i386/libsaio/hfs.c
108108
109109
110110
111
112
113
114
115
116111
117112
118113
static long CompareHFSExtentsKeys(void *key, void *testKey);
static long CompareHFSPlusExtentsKeys(void *key, void *testKey);
extern long FastRelString(u_int8_t *str1, u_int8_t *str2);
extern long BinaryUnicodeCompare(u_int16_t *uniStr1, u_int32_t len1,
u_int16_t *uniStr2, u_int32_t len2);
static void SwapFinderInfo(FndrFileInfo *dst, FndrFileInfo *src)
{
dst->fdType = SWAP_BE32(src->fdType);
branches/cparm/i386/libsaio/hfs.h
3131
3232
3333
34
35
36
37
38
extern long HFSGetUUID(CICell ih, char *uuidStr, long strMaxLen);
extern void HFSFree(CICell ih);
extern bool HFSProbe (const void *buf);
extern int32_tFastRelString(u_int8_t * str1, u_int8_t * str2);
extern int32_t BinaryUnicodeCompare (u_int16_t * str1, u_int32_t length1,
u_int16_t * str2, u_int32_t length2);
branches/cparm/i386/libsaio/hfs_compare.c
2929
3030
3131
32
3233
3334
3435
#include "sl.h"
#include "hfs_CaseTables.h"
#include "hfs.h"
#if ! UNCOMPRESSED
branches/cparm/i386/libsaio/Makefile
99
1010
1111
12
12
1313
1414
15
15
1616
1717
1818
OPTIM = -Os -Oz
DEBUG =
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fno-stack-protector \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fno-stack-protector \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin -static $(OMIT_FRAME_POINTER_CFLAG) -march=pentium4 -msse2 -msoft-float -Qunused-arguments -ffreestanding -DBOOT_CORE -mpreferred-stack-boundary=2 -fno-align-functions -mfpmath=sse
-fno-builtin -static $(OMIT_FRAME_POINTER_CFLAG) -march=pentium4 -msse2 -msoft-float -Qunused-arguments -ffreestanding -DBOOT_CORE -mpreferred-stack-boundary=2 -fno-align-functions -mfpmath=sse -Werror
GFLAGS=
DEFINES=
CONFIG = hd
branches/cparm/i386/libsaio/cpu_intel_amd.c
395395
396396
397397
398
398
399399
400400
401401
......
616616
617617
618618
619
619620
620621
621622
......
628629
629630
630631
631
632
632633
633634
634635
......
660661
661662
662663
663
664
664665
665666
666667
* - CPUFreq = FSBFreq * multi
*/
void scan_cpu(PlatformInfo_t *p)
void scan_cpu(void)
{
uint64_tmsr = 0;
case CPUID_MODEL_NEHALEM_EX:
case CPUID_MODEL_SANDYBRIDGE:
case CPUID_MODEL_JAKETOWN:
case CPUID_MODEL_IVYBRIDGE:
{
msr = rdmsr64(MSR_CORE_THREAD_COUNT);
NoThreads = bitfield((uint32_t)msr, 15, 0);
if (NoCores == 0)
{
if (p->CPU.Vendor == CPUID_VENDOR_AMD)
if (Vendor == CPUID_VENDOR_AMD)
{
if (!cores_per_package) {
//legacy method
CPUFreq = measure_aperf_frequency();
}
if ((Vendor == 0x68747541 /* AMD */) && (Family == 0x0f))
if ((Vendor == CPUID_VENDOR_AMD) && (Family == 0x0f))
{
switch(ExtFamily)
{
branches/cparm/i386/libsaio/ntfs.c
2424
2525
2626
27
2728
2829
2930
*/
#include "libsaio.h"
#include "sl.h"
#include "ntfs.h"
/*
* dmazar, 14/7/2011 - support for EXFAT volume label reading
branches/cparm/i386/libsaio/disk.c
204204
205205
206206
207
208
209
210
211
212
213
214
215
216
217
207218
208219
209220
......
717728
718729
719730
720
731
721732
722733
723734
......
21242135
21252136
21262137
2127
2138
21282139
21292140
21302141
static bool CheckDarwin(BVRef bvr);
static bool getOSInstallVersion(const char *dirSpec, char *str, config_file_t *systemVersion);
static bool getOSInstallURL(BVRef bvr, const char *dirSpec, config_file_t *config_file);
static BVRef newGPTBVRef( int biosdev, int partno, unsigned int blkoff,
const gpt_ent * part,
FSInit initFunc, FSLoadFile loadFunc,
FSReadFile readFunc,
FSGetDirEntry getdirFunc,
FSGetFileBlock getBlockFunc,
FSGetUUID getUUIDFunc,
BVGetDescription getDescriptionFunc,
BVFree bvFreeFunc,
int probe, int type, unsigned int bvrFlags );
static bool getVolumeLabelAlias(BVRef bvr, char* str, long strMaxLen);
//==========================================================================
EFI_GUID const GPT_BASICDATA2_GUID = { 0xE3C9E316, 0x0B5C, 0x4DB8, { 0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE } };
BVRef newGPTBVRef( int biosdev, int partno, unsigned int blkoff,
static BVRef newGPTBVRef( int biosdev, int partno, unsigned int blkoff,
const gpt_ent * part,
FSInit initFunc, FSLoadFile loadFunc,
FSReadFile readFunc,
* hd(x,y)|uuid|"label" "alias";hd(m,n)|uuid|"label" etc; ...
*/
bool getVolumeLabelAlias(BVRef bvr, char* str, long strMaxLen)
static bool getVolumeLabelAlias(BVRef bvr, char* str, long strMaxLen)
{
char *aliasList, *entryStart, *entryNext;
branches/cparm/i386/libsaio/cache.c
2828
2929
3030
31
3132
3233
3334
......
6061
6162
6263
63
64
6465
6566
6667
*/
#include "sl.h"
#include "libsaio.h"
struct CacheEntry {
CICell ih;
unsigned long gCacheEvicts;
#endif
void CacheReset()
void CacheReset(void)
{
gCacheIH = NULL;
}
branches/cparm/i386/libsaio/arc4random-fbsd.c
7373
7474
7575
76
7677
7778
7879
static inline u_int8_t arc4_getbyte(void);
static void arc4_stir(void);
__private_extern__ void _arc4_fork_child(void);
static struct {
struct timevaltv;
branches/cparm/i386/libsaio/pci.c
2222
2323
2424
25
26
2527
26
2728
2829
2930
......
6667
6768
6869
69
70
7071
7172
7273
......
124125
125126
126127
127
128
128129
129130
130131
pci_dt_t*root_pci_dev;
static char* dev_path;// TODO: Figure out what is going on here...
static void scan_pci_bus(pci_dt_t *start, uint8_t bus);
static void enable_pci_devs(void);
uint8_t pci_config_read8(uint32_t pci_addr, uint8_t reg)
{
pci_addr |= reg & ~3;
outl(PCI_DATA_REG, data);
}
void scan_pci_bus(pci_dt_t *start, uint8_t bus)
static void scan_pci_bus(pci_dt_t *start, uint8_t bus)
{
pci_dt_t*new;
pci_dt_t**current = &start->children;
}
}
void enable_pci_devs(void)
static void enable_pci_devs(void)
{
uint16_t id;
uint32_t rcba, *fd;
branches/cparm/i386/libsaio/msdos.c
773773
774774
775775
776
776
777777
778778
779779
*flags = kFileTypeFlat;
// Calculate a fake timestamp using modification date and time values.
*time = (dirp->deMDate & 0x7FFF) << 16 + dirp->deMTime;
*time = (dirp->deMDate & 0x7FFF) << (16 + dirp->deMTime);
if (infoValid)
*infoValid = 1;
branches/cparm/i386/libsaio/fake_efi.c
162162
163163
164164
165
165
166166
167167
168168
EFI_UINT64 gNumTables64 = 0;
EFI_CONFIGURATION_TABLE_32 gEfiConfigurationTable32[MAX_CONFIGURATION_TABLE_ENTRIES];
EFI_CONFIGURATION_TABLE_64 gEfiConfigurationTable64[MAX_CONFIGURATION_TABLE_ENTRIES];
extern EFI_STATUS addConfigurationTable(EFI_GUID const *pGuid, void *table, char const *alias)
EFI_STATUS addConfigurationTable(EFI_GUID const *pGuid, void *table, char const *alias)
{
EFI_UINTN i = 0;
branches/cparm/i386/libsaio/saio_internal.h
100100
101101
102102
103
103
104104
105105
106106
/* cache.c */
extern void CacheReset();
extern void CacheReset(void);
extern void CacheInit(CICell ih, long blockSize);
extern long CacheRead(CICell ih, char *buffer, long long offset,
long length, long cache);
branches/cparm/i386/MakeInc.dir
4747
4848
4949
50
50
5151
5252
5353
54
54
5555
5656
5757
ifeq ($(HAVE_MD),YES)
.c.o .m.o:
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o -MD -dependency-file $(OBJROOT)/$*.d
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) -Wmissing-prototypes -Wmissing-declarations $< -o $(OBJROOT)/$*.o -MD -dependency-file $(OBJROOT)/$*.d
$(SYMROOT)/md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
$(OBJROOT)/%.o: %.c
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o -MD -dependency-file $(OBJROOT)/$*.d
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) -Wmissing-prototypes -Wmissing-declarations $< -o $(OBJROOT)/$*.o -MD -dependency-file $(OBJROOT)/$*.d
$(SYMROOT)/md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
$(OBJROOT)/%.o: %.m
branches/cparm/i386/boot2/boot.c
9494
9595
9696
97
9798
98
9999
100100
101101
......
931931
932932
933933
934
934
935935
936936
937937
#ifdef NBP_SUPPORT
static bool gUnloadPXEOnExit = false;
#endif
static void getRootDevice(void);
/*
* How long to wait (in seconds) to load the
* kernel after displaying the "boot:" prompt.
}
}
static void getRootDevice()
static void getRootDevice(void)
{
// Maximum config table value size
#define VALUE_SIZE 2048
branches/cparm/i386/boot2/Makefile
2424
2525
2626
27
27
2828
2929
30
30
3131
3232
3333
BUNDLE_CLASS_PROVIDER = SYSTEM
OPTIM = -Os -Oz
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror -fno-stack-protector \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fno-stack-protector \
-fno-builtin -static $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -Qunused-arguments -ffreestanding -DBOOT_CORE
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -Qunused-arguments -ffreestanding -DBOOT_CORE -Werror
GFLAGS=
DEFINES=
branches/cparm/i386/modules/NetbookInstaller/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/RamDiskLoader/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/YellowIconFixer/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/KextPatcher/Makefile
2323
2424
2525
26
26
2727
2828
2929
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/ACPIPatcher/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/GUI/Makefile
3737
3838
3939
40
40
4141
4242
4343
OPTIM = -O0 # -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/KernelPatcher/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -O3
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/Networking/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/GraphicsEnabler/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/SMBiosGetters/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/HibernateEnabler/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/Keymapper/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/USBFix/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/HPET/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/SMBiosPatcher/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/Resolution/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/CPUfreq/Makefile
3535
3636
3737
38
38
3939
4040
4141
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/Memory/spd.c
326326
327327
328328
329
329
330330
331331
332332
/*slot->ModuleSize = ((1 << (slot->spd[SPD_NUM_ROWS] & 0x0f) + (slot->spd[SPD_NUM_COLUMNS] & 0x0f) - 17) *
((slot->spd[SPD_NUM_DIMM_BANKS] & 0x7) + 1) * slot->spd[SPD_NUM_BANKS_PER_SDRAM]);*/
slot->ModuleSize = ((1 << (slot->spd[SPD_NUM_ROWS] & 0x0f) + (slot->spd[SPD_NUM_COLUMNS] & 0x0f) - 17) *
slot->ModuleSize = ((1 << ((slot->spd[SPD_NUM_ROWS] & 0x0f) + (slot->spd[SPD_NUM_COLUMNS] & 0x0f) - 17)) *
((slot->spd[SPD_NUM_DIMM_BANKS] & 0x7) + 1) * slot->spd[SPD_NUM_BANKS_PER_SDRAM]);
break;
branches/cparm/i386/modules/Memory/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/ACPICodec/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/modules/HelloWorld/Makefile
3636
3737
3838
39
39
4040
4141
4242
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
branches/cparm/i386/libsa/libsa.h
140140
141141
142142
143
143
144144
145
146
147
148
149
150
151
145152
146153
147154
void(*putc)(int ch, void *arg),
void *arg,
intradix);
/*
* qsort.c
*/
extern void qsort(void *a,size_t n,size_t es, int (*cmp)());
/*
* zalloc.c
*/
branches/cparm/i386/libsa/Makefile
88
99
1010
11
11
1212
13
13
1414
1515
1616
INSTALL_MD_DIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/machdep/i386
OPTIM = -Os -Oz
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror -fno-stack-protector \
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wall -fno-stack-protector \
-fno-builtin -static $(OMIT_FRAME_POINTER_CFLAG) \
-march=pentium4 -msse2 -msoft-float -Qunused-arguments -ffreestanding -DBOOT_CORE -mpreferred-stack-boundary=2 -fno-align-functions -mfpmath=sse
-march=pentium4 -msse2 -msoft-float -Qunused-arguments -ffreestanding -DBOOT_CORE -mpreferred-stack-boundary=2 -fno-align-functions -mfpmath=sse -Werror
GFLAGS=
INC = -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSAIODIR)
ifneq "" "$(wildcard /bin/mkdirs)"
branches/cparm/i386/util/Makefile
1313
1414
1515
16
16
1717
1818
1919
LOCALBIN = $(DSTROOT)/usr/local/bin
OPTIM = -Os -Oz
CFLAGS = $(RC_CFLAGS) $(OPTIM) -Wmost -Werror -g
CFLAGS = $(RC_CFLAGS) $(OPTIM) -Wall -Werror -g
LDFLAGS =
CFILES = machOconv.c
ALLSRC = $(CFILES) $(MFILES) $(HFILES) $(EXPORT_HFILES)

Archive Download the corresponding diff file

Revision: 2117