Chameleon

Chameleon Commit Details

Date:2012-05-25 16:43:40 (2 years 2 months ago)
Author:armel cadet-petit
Commit:1977
Parents: 1976
Message:--> changelog
Changes:
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_leo_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_sl.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_leo.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_sl_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_ml.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_tiger.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_lion_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_sl_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_lion.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_ml.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_tiger.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_lion_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_ml_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_tiger_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_leo_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_lion.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_sl.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsraid_leo.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_ml_o.png
A/branches/cparm/artwork/themes/LoginToLion/ALTERNATES/Devices - Cub/device_hfsplus_tiger_o.png
M/branches/cparm/i386/libsaio/bootstruct.h
M/branches/cparm/i386/modules/CPUfreq/Makefile
M/branches/cparm/i386/libsaio/platform.h
M/branches/cparm/i386/modules/GraphicsEnabler/nvidia.c
M/branches/cparm/i386/libsaio/disk.c
M/branches/cparm/i386/libsaio/device_inject.c
M/branches/cparm/i386/libsaio/Makefile
M/branches/cparm/i386/modules/GraphicsEnabler/ati.c
M/branches/cparm/i386/libsaio/device_inject.h
M/branches/cparm/i386/libsaio/console.c
M/branches/cparm/i386/modules/RamDiskLoader/Makefile
M/branches/cparm/i386/modules/YellowIconFixer/Makefile
M/branches/cparm/i386/modules/KextPatcher/Makefile
M/branches/cparm/i386/modules/SMBiosPatcher/README
M/branches/cparm/CHANGES
M/branches/cparm/i386/modules/NetbookInstaller/NBI.c
M/branches/cparm/i386/libsaio/device_tree.c
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/libsaio/device_tree.h
M/branches/cparm/i386/modules/Resolution/Makefile
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/ufs.c
M/branches/cparm/i386/modules/Networking/Networking.c
M/branches/cparm/i386/boot2/boot.c
M/branches/cparm/i386/modules/HibernateEnabler/Makefile
M/branches/cparm/i386/modules/SMBiosGetters/Makefile
M/branches/cparm/i386/libsaio/allocate.c
M/branches/cparm/Chameleon.xcodeproj/project.pbxproj
M/branches/cparm/i386/libsaio/msdos.c
M/branches/cparm/i386/modules/SMBiosPatcher/Makefile
M/branches/cparm/i386/modules/YellowIconFixer/YellowIconFixer.c
M/branches/cparm/i386/modules/Memory/Makefile
M/branches/cparm/i386/libsaio/saio_internal.h
M/branches/cparm/i386/modules/SMBiosGetters/README
M/branches/cparm/i386/boot2/options.c
M/branches/cparm/i386/modules/NetbookInstaller/Makefile
M/branches/cparm/i386/modules/GUI/GUI_module.c
M/branches/cparm/i386/modules/ACPIPatcher/Makefile
M/branches/cparm/i386/modules/Networking/Makefile
M/branches/cparm/i386/modules/GraphicsEnabler/Makefile
M/branches/cparm/i386/libsaio/pci_root.c
M/branches/cparm/i386/libsaio/datatype.h
M/branches/cparm/i386/modules/HPET/Makefile
M/branches/cparm/i386/modules/USBFix/Makefile
M/branches/cparm/i386/modules/GraphicsEnabler/gma.c
M/branches/cparm/i386/modules/GUI/gui.c
M/branches/cparm/i386/boot2/Makefile
M/branches/cparm/i386/modules/GUI/Makefile
M/branches/cparm/i386/libsaio/bootstruct.c
M/branches/cparm/i386/boot2/boot2.s
M/branches/cparm/i386/modules/KernelPatcher/Makefile
M/branches/cparm/TODO

File differences

branches/cparm/TODO
22
33
44
5
5
66
77
88
====================================
- split nvidia, gma and ati code into separate modules
- move device_inject, winfs, bsdfs, ext2fs, befs, and the command lspci, memory, more and video into modules
- move device_inject, MBR (OSX works better on Guid partition theme anyway), winfs, bsdfs, ext2fs, befs, and the command lspci, memory, more and video into modules
- Implement a pool allocator, so each module will run and allocate memory in there own pool, de-alloc all allocated memory by the module,
will be done simply by destroying the pool
- Implement snprintf to avoid buffer overflow in some case
branches/cparm/Chameleon.xcodeproj/project.pbxproj
450450
451451
452452
453
454
455
453456
454457
455458
......
10751078
10761079
10771080
1081
10781082
10791083
10801084
......
13871391
13881392
13891393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
13901404
13911405
13921406
AB43B3F814C384040018D529 /* stack_protector.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = stack_protector.c; sourceTree = "<group>"; };
AB79217514F38CF200F5EB39 /* bootXnu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bootXnu.h; sourceTree = "<group>"; };
AB79219214F3919E00F5EB39 /* ModuleHelp.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ModuleHelp.txt; sourceTree = "<group>"; };
ABA02705156CE81A00F8E5F3 /* ext2fs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ext2fs.c; sourceTree = "<group>"; };
ABA02706156CE81A00F8E5F3 /* ext2fs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ext2fs.h; sourceTree = "<group>"; };
ABA02707156CE81A00F8E5F3 /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
ABA0C7BF1568190C003440AF /* arc4random-fbsd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "arc4random-fbsd.c"; sourceTree = "<group>"; };
ABA0C7C01568190C003440AF /* lib.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = lib.c; sourceTree = "<group>"; };
ABA0C7C11568190C003440AF /* rtc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rtc.c; sourceTree = "<group>"; };
AB43B34914C37E520018D529 /* ACPICodec */,
AB43B35214C37E520018D529 /* ACPIPatcher */,
AB43B35914C37E520018D529 /* CPUfreq */,
ABA02704156CE81A00F8E5F3 /* Ext2fs */,
AB43B35C14C37E520018D529 /* GraphicsEnabler */,
AB43B36614C37E520018D529 /* GUI */,
AB43B37014C37E520018D529 /* HelloWorld */,
path = Intel_Acpi;
sourceTree = "<group>";
};
ABA02704156CE81A00F8E5F3 /* Ext2fs */ = {
isa = PBXGroup;
children = (
ABA02705156CE81A00F8E5F3 /* ext2fs.c */,
ABA02706156CE81A00F8E5F3 /* ext2fs.h */,
ABA02707156CE81A00F8E5F3 /* Makefile */,
);
path = Ext2fs;
sourceTree = "<group>";
};
B0056CD411F3868000754B65 /* sym */ = {
isa = PBXGroup;
children = (
branches/cparm/CHANGES
11
2
3
4
5
6
7
8
9
10
11
212
313
414
- security and stability fixes
- Removed useless codes in efistring modules
- Fixed bugs related to device_inject.c
- Fixed bugs related to device_tree.c
- Fixed bugs related to hfs.c
- Fixed a bug in the booterlog introduced in the previous version
- Fixed a bug in randomTheme intoduced in the previous version
- Added LoginToLion Cub Devices (credit to Enzo)
- security and stability fixes
- Improved Xcode4.3+ and clang compatibility
- Fixed a bug in device_inject.c
- Updated uthash, utarrey, etc ... to v1.9.6
branches/cparm/i386/libsaio/console.c
9595
9696
9797
98
98
9999
100100
101101
}
char *getConsoleCursor(void)
{
return booterlog.buf;
return booterlog.cursor;
}
void setConsoleMsg(char *p)
{
branches/cparm/i386/libsaio/bootstruct.c
4343
4444
4545
46
4746
4847
4948
/* ... */
PrivateBootInfo_t *bootInfo = NULL;
//Node *gMemoryMapNode = NULL;
static char platformName[64];
static MemoryRange memoryMap[kMemoryMapCountMax];
branches/cparm/i386/libsaio/bootstruct.h
4141
4242
4343
44
45
4644
4745
4846
extern boot_args_107 *bootArgs107;
extern boot_args_108 *bootArgs108;
//extern Node *gMemoryMapNode;
#define VGA_TEXT_MODE 0
#if 0
branches/cparm/i386/libsaio/device_tree.c
22
33
44
5
5
6
7
8
69
710
811
......
3235
3336
3437
35
38
3639
37
38
39
4040
4141
4242
......
9797
9898
9999
100
100
101101
102102
103103
......
203203
204204
205205
206
206
207
208
207209
208210
209211
210212
211213
212
214
213215
214216
215217
* Copyright (c) 2005 Apple Computer, Inc. All Rights Reserved.
*/
#if 1
#include "libsaio.h"
#include "device_tree.h"
//#if 1
/*
Structures for a Flattened Device Tree
/* length of DTEntryNameBuf = kDTMaxEntryNameLength +1*/
typedef char DTEntryNameBuf[32];
#endif
//#endif
#include "libsaio.h"
#include "device_tree.h"
#if DEBUG
#define DPRINTF(args...) printf(args)
void
prop = freeProperties;
freeProperties = prop->next;
prop->name = name;
prop->name = newString(name);
prop->length = length;
prop->value = value;
DPRINTF("DT__Finalize\n");
for (prop = allocedProperties; prop != NULL; prop = prop->next) {
free(prop->value);
if (prop->value) free(prop->value);
if (prop->name) free(prop->name);
}
allocedProperties = NULL;
freeProperties = NULL;
for (node = allocedNodes; node != NULL; node = node->next) {
free((void *)node->children);
if (node->children) free((void *)node->children);
}
allocedNodes = NULL;
freeNodes = NULL;
branches/cparm/i386/libsaio/hfs.c
4949
5050
5151
52
52
53
54
5355
5456
5557
......
6769
6870
6971
70
72
73
7174
7275
7376
......
259262
260263
261264
262
263265
264266
265267
static long gBlockSize;
static long gCacheBlockSize;
static char *gBTreeHeaderBuffer;
static BTHeaderRec *gBTHeaders[2];
static BTHeaderRec gBaseBTHeaders[2];
static BTHeaderRec **gBTHeaders = (BTHeaderRec**)gBaseBTHeaders;
static char *gHFSMdbVib;
static HFSMasterDirectoryBlock *gHFSMDB;
static char *gHFSPlusHeader;
static long gCaseSensitive;
static long gCacheBlockSize;
static char gBTreeHeaderBuffer[512];
static BTHeaderRec *gBTHeaders[2];
static BTHeaderRec gBaseBTHeaders[2];
static BTHeaderRec **gBTHeaders = (BTHeaderRec**)gBaseBTHeaders;
static char gHFSMdbVib[kBlockSize];
static HFSMasterDirectoryBlock *gHFSMDB =(HFSMasterDirectoryBlock*)gHFSMdbVib;
static char gHFSPlusHeader[kBlockSize];
long HFSLoadFile(CICell ih, char * filePath)
{
//return HFSReadFile(ih, filePath, (void *)gFSLoadAddress, 0, 0);
return HFSReadFile(ih, filePath, (void *)(uint32_t)get_env(envgFSLoadAddress), 0, 0);
}
branches/cparm/i386/libsaio/device_tree.h
99
1010
1111
12
12
1313
1414
1515
#include <stdint.h>
typedef struct _Property {
const char * name;
char * name;
uint32_t length;
void * value;
branches/cparm/i386/libsaio/allocate.c
3434
3535
3636
37
37
3838
39
4039
41
42
43
44
45
40
41
42
4643
47
44
4845
4946
5047
5148
52
49
5350
5451
5552
#define RoundPage(x) ((((unsigned)(x)) + kPageSize - 1) & ~(kPageSize - 1))
long
AllocateMemoryRange(char * rangeName, long start, long length)
AllocateMemoryRange(const char * rangeName, long start, long length)
{
char *nameBuf;
uint32_t *buffer;
nameBuf = malloc(strlen(rangeName) + 1);
if (nameBuf == 0) return -1;
strcpy(nameBuf, rangeName);
if (!rangeName) return -1;
buffer = malloc(2 * sizeof(uint32_t));
if (buffer == 0) {free(nameBuf);return -1;}
if (buffer == 0) {return -1;}
buffer[0] = start;
buffer[1] = length;
DT__AddProperty((Node*)(uint32_t)get_env(envMemoryMapNode), nameBuf, 2 * sizeof(uint32_t), (char *)buffer);
DT__AddProperty((Node*)(uint32_t)get_env(envMemoryMapNode), rangeName, 2 * sizeof(uint32_t), (char *)buffer);
return 0;
}
branches/cparm/i386/libsaio/Makefile
66
77
88
9
109
1110
12
13
11
1412
15
16
13
14
1715
1816
1917
......
4240
4341
4442
43
4544
4645
4746
......
5453
5554
5655
57
58
59
6056
6157
58
59
60
61
62
6263
6364
6465
......
8283
8384
8485
85
86
87
88
8986
90
91
9287
9388
94
95
96
97
98
9989
10090
10191
......
111101
112102
113103
114
115
116
117
118
119
120104
121
122
123
124105
125106
126107
LIBSADIR = ../libsa
BOOT2DIR = ../boot2
INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
#SYMROOT=
OPTIM = -Os -Oz
DEBUG = -DNOTHING
#DEBUG = -DDEBUG_CPU=1 -DDEBUG_MEM=1 -DDEBUG_SPD=1 -DDEBUG_PCI=1 -DDEBUG_SMBIOS=1
DEBUG =
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fno-stack-protector \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-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
DEFINES=
convert.o acpi_tools.o smbios.o uterror.o lzss.o lib.o rtc.o time.o
# Options enabled by default:
#CFLAGS += -DNO_WIN_SUPPORT # -7744 bytes
SAIO_OBJS += ntfs.o msdos.o exfat.o
#CFLAGS += -DNO_HAIKU_SUPPORT # -256 bytes
SAIO_OBJS += befs.o
#CFLAGS += -DNO_SMP_SUPPORT
SAIO_OBJS += smp-imps.o
# Options disabled by default:
CFLAGS += -DNO_BOOT_IMG
CFLAGS += -DNO_SMP_SUPPORT
#SAIO_OBJS += smp-imps.o
#CFLAGS += -DUFS_SUPPORT # +3616 bytes
#SAIO_OBJS += ufs.o ufs_byteorder.o
$(HFILES) $(OTHERFILES)
LIBS = libsaio.a
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
#GENFILES = $(SYMROOT)/saio_internal.h \
#$(SYMROOT)/saio_external.h \
#$(SYMROOT)/saio_defs.h \
#$(SYMROOT)/saio_table.c
#SIG = $(SYMROOT)/sig
all embedtheme: $(DIRS_NEEDED) libsaio.h embedded.h $(LIBS)
#libsaio_static.a: $(SAIO_OBJS)
#rm -f $(SYMROOT)/$@
#ar q $(SYMROOT)/$@ $(SAIO_OBJS)
#ranlib $(SYMROOT)/$@
fake_efi.o: vers.h
vers.h:
@echo "#define I386BOOT_VERSION \"5.0.132\"" > $(SYMROOT)/vers.h
embedded.h:
@cd $(SYMROOT)/../../doc && xxd -i BootHelp.txt > $(SYMROOT)/embedded.h
#saio_internal.h: saio_external.h
#saio_table.c: saio_external.h
#saio_defs.h: saio_external.h
#saio_external.h: saio.def
#$(SIG) -d $(SYMROOT) -n saio saio.def
#installhdrs:: $(INSTALLDIR)
#cp $(INSTALLED_HFILES) $(INSTALLDIR)
include ../MakeInc.dir
# dependencies
branches/cparm/i386/libsaio/ufs.c
194194
195195
196196
197
198197
199198
200199
long UFSLoadFile( CICell ih, char * filePath )
{
//return UFSReadFile(ih, filePath, (void *)gFSLoadAddress, 0, 0);
return UFSReadFile(ih, filePath, (void *)(uint32_t)get_env(envgFSLoadAddress), 0, 0);
}
branches/cparm/i386/libsaio/pci_root.c
1818
1919
2020
21
2221
2322
2423
static int rootuid = 10; //value means function wasnt ran yet
int getPciRootUID(void)
{
const char *val;
branches/cparm/i386/libsaio/datatype.h
3636
3737
3838
39
40
39
40
4141
4242
4343
......
4949
5050
5151
52
52
5353
5454
typedef uint32_t U32;
typedef uint64_t U64;
/*
//typedef uint32_t bool;
#if 0
typedef uint32_t bool;
#ifndef false
#define true 1
#endif
#ifndef NULL
#define NULL ((void *) 0)
#endif
*/
#endif
#endif /* DATATYPE_H */
branches/cparm/i386/libsaio/device_inject.c
1111
1212
1313
14
1415
1516
1617
......
2223
2324
2425
25
26
27
28
29
3026
3127
28
29
3230
3331
3432
......
4240
4341
4442
43
44
4545
4646
4747
......
6262
6363
6464
65
66
65
66
67
68
69
70
71
72
6773
6874
6975
7076
7177
72
78
7379
7480
7581
#include "pci_root.h"
#include "device_inject.h"
#include "convert.h"
#include "platform.h"
#ifndef DEBUG_INJECT
#define DEBUG_INJECT 0
#define DBG(x...)
#endif
uint32_t devices_number = 1;
struct DevPropString *string = 0;
uint8_t *stringdata = 0;
uint32_t stringlength = 0;
char *efi_inject_get_devprop_string(uint32_t *len)
{
struct DevPropString *string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
if(string)
{
*len = string->length;
{
const char *val;
uint8_t *binStr;
uint8_t *kbinStr;
int cnt, cnt2;
static char DEVICE_PROPERTIES_PROP[] = "device-properties";
if (cnt > 1)
{
binStr = convertHexStr2Binary(val, &cnt2);
if (cnt2 > 0) DT__AddProperty(node, DEVICE_PROPERTIES_PROP, cnt2, binStr);
binStr = convertHexStr2Binary(val, &cnt2);
if (cnt2 > 0)
{
kbinStr = (uint8_t*)AllocateKernelMemory(cnt2);
bcopy(binStr,kbinStr,cnt2);
DT__AddProperty(node, DEVICE_PROPERTIES_PROP, cnt2, kbinStr);
}
}
}
struct DevPropString *devprop_create_string(void)
{
string = (struct DevPropString*)malloc(sizeof(struct DevPropString));
struct DevPropString *string = (struct DevPropString*)malloc(sizeof(struct DevPropString));
if(string == NULL)
{
branches/cparm/i386/libsaio/device_inject.h
1313
1414
1515
16
17
18
19
2016
2117
2218
......
7369
7470
7571
76
7772
7873
7974
#define MAX_PCI_DEV_PATHS 4
#define MAX_STRING_NUM_ENTRIES 100
extern struct DevPropString *string;
extern uint8_t *stringdata;
extern uint32_t stringlength;
extern uint32_t devices_number;
extern void setupDeviceProperties(Node *node);
#define DEV_PATH_HEADER\
};
char*efi_inject_get_devprop_string(uint32_t *len);
//intdevprop_add_network_template(struct DevPropDevice *device, uint16_t vendor_id);
struct DevPropString*devprop_create_string(void);
struct DevPropDevice*devprop_add_device(struct DevPropString *string, char *path);
intdevprop_add_value(struct DevPropDevice *device, char *nm, uint8_t *vl, uint32_t len);
branches/cparm/i386/libsaio/platform.h
157157
158158
159159
160
161
162
160163
161164
162165
......
251254
252255
253256
254
255
256
257
258
259
260257
#define envConsoleErr"boot.console.stderr"
#define envDeviceNumber "boot.dev.efi.devcount"
#define envEFIString "boot.dev.efi.efistring"
#define envgBootFileType"boot.disk.Bootfiletype"
#define envHFSLoadVerbose"boot.disk.HFSLoadVerbose"
#define envgFSLoadAddress"boot.disk.FSLoadAddress"
} PlatformInfo_t;
#endif
#ifdef ShowCurrentDate
#include "efi.h"
extern char * Date(void);
extern void rtc_time(EFI_TIME *time);
#endif
#endif /* !__LIBSAIO_PLATFORM_H */
branches/cparm/i386/libsaio/disk.c
886886
887887
888888
889
890
889
891890
892891
893892
......
15121511
15131512
15141513
1515
15161514
15171515
15181516
// turbo - we want the booter type scanned also
case FDISK_BOOTER:
if (part->bootid & FDISK_ACTIVE) {
/*gBIOSBootVolume =*/
if (part->bootid & FDISK_ACTIVE) {
safe_set_env(envgBIOSBootVolume, (uint32_t)newFDiskBVRef(
biosdev, partno,
part->relsect,
#endif
default:
if (biosdev == (int)get_env(envgBIOSDev))
//gBIOSBootVolume = bvr;
safe_set_env(envgBIOSBootVolume, (uint32_t)bvr);
break;
}
branches/cparm/i386/libsaio/msdos.c
866866
867867
868868
869
870869
871870
872871
long MSDOSLoadFile(CICell ih, char * filePath)
{
//return MSDOSReadFile(ih, filePath, (void *)gFSLoadAddress, 0, 0);
return MSDOSReadFile(ih, filePath, (void *)(uint32_t)get_env(envgFSLoadAddress), 0, 0);
}
branches/cparm/i386/libsaio/fake_efi.c
696696
697697
698698
699
699
700700
701701
702702
......
705705
706706
707707
708
708
709709
710710
711711
......
713713
714714
715715
716
716
717
717718
718719
719720
......
722723
723724
724725
725
726
727
728
729
730
731
726732
727733
728734
......
730736
731737
732738
739
740
741
733742
734
743
744
735745
736746
737747
......
743753
744754
745755
746
756
747757
748758
749759
......
10041014
10051015
10061016
1007
1008
1009
1017
10101018
10111019
10121020
kType = get_env(envType);
DT__AddProperty(node, SYSTEM_TYPE_PROP, sizeof(uint8_t), &kType);
}
#ifdef NO_BOOT_IMG
struct boot_progress_element {
unsigned intwidth;
unsigned intheight;
unsigned chardata[0];
};
typedef struct boot_progress_element boot_progress_element;
#endif
static VOID setupEfiDeviceTree(void)
{
Node*node;
node = DT__FindNode("/", false);
if (node == 0) stop("Couldn't get root node");
#ifndef NO_BOOT_IMG
{
long size;
{
long clut = AllocateKernelMemory(size);
bcopy(&appleClut8, (void*)clut, size);
AllocateMemoryRange( "BootCLUT", clut, size);
if (((BVRef)(uint32_t)get_env(envgBootVolume))->OSVersion[3] == '8')
{
AllocateMemoryRange( "FailedCLUT", clut, size);
} else
AllocateMemoryRange( "BootCLUT", clut, size);
}
#include "failedboot.h"
size = 32 + kFailedBootWidth * kFailedBootHeight;
long bootPict = AllocateKernelMemory(size);
if (((BVRef)(uint32_t)get_env(envgBootVolume))->OSVersion[3] == '8')
{
AllocateMemoryRange( "FailedImage", bootPict, size);
AllocateMemoryRange( "Pict-FailedBoot", bootPict, size);
} else
AllocateMemoryRange( "Pict-FailedBoot", bootPict, size);
((boot_progress_element *)bootPict)->width = kFailedBootWidth;
((boot_progress_element *)bootPict)->height = kFailedBootHeight;
bcopy((char *)gFailedBootPict, (char *)(bootPict + 32), size - 32);
}
}
#endif
//Fix an error with the Lion's (DP2+) installer
if (execute_hook("getboardproductPatched", NULL, NULL, NULL, NULL, NULL, NULL) != EFI_SUCCESS)
{
void *mps_p = imps_probe(&num_cpus);
if (mps_p)
{
//uint64_t mps = ((uint64_t)((uint32_t)mps_p));
{
addConfigurationTable(&gEfiMpsTableGuid, ((uint64_t*)((uint32_t)mps_p)), NULL);
}
branches/cparm/i386/libsaio/saio_internal.h
167167
168168
169169
170
170
171171
172172
173173
174174
175
176
177
178
179
180
181175
182176
183177
extern long AllocateKernelMemory( long inSize );
extern long
AllocateMemoryRange(char * rangeName, long start, long length);
AllocateMemoryRange(const char * rangeName, long start, long length);
/* misc.c */
extern void enableA20(void);
extern void turnOffFloppy(void);
#if UNUSED
extern void random_free (struct ran_obj* self);
extern int random (struct ran_obj* self);
extern struct ran_obj* random_init (int rmin, int rmax);
extern void usefixedrandom (bool opt);
#endif
extern void getPlatformName(char *nameBuf);
branches/cparm/i386/MakeInc.dir
4040
4141
4242
43
43
4444
4545
46
46
4747
4848
49
49
5050
5151
52
52
5353
5454
55
55
5656
5757
58
58
5959
6060
6161
.SUFFIXES: .s .i .c .o
.c.o .m.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o
$(OBJROOT)/%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o
$(OBJROOT)/%.o: %.m
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o
$(CC) $(CPPFLAGS) $(GFLAGS) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $(OBJROOT)/$*.o
.s.o:
$(CC) $(CPPFLAGS) -no-integrated-as -c $(INC) -arch i386 -o $(OBJROOT)/$(@F) $<
$(CC) $(CPPFLAGS) $(GFLAGS) -no-integrated-as -c $(INC) -arch i386 -o $(OBJROOT)/$(@F) $<
boot2.o:
$(CC) $(CPPFLAGS) -Wa,-n -c $(INC) -no-integrated-as -arch i386 -o $(OBJROOT)/$(@F) boot2.s
$(CC) $(CPPFLAGS)$(GFLAGS) -Wa,-n -c $(INC) -no-integrated-as -arch i386 -o $(OBJROOT)/$(@F) boot2.s
$(OBJROOT)/%.o: %.s
$(CC) $(CPPFLAGS) -no-integrated-as -c $(INC) -arch i386 -o $(OBJROOT)/$(@F) $<
$(CC) $(CPPFLAGS) $(GFLAGS) -no-integrated-as -c $(INC) -arch i386 -o $(OBJROOT)/$(@F) $<
$(DIRS_NEEDED) $(INSTALLDIR) $(SRCROOT):
$(MKDIRS) $@
branches/cparm/i386/boot2/boot.c
495495
496496
497497
498
499498
500499
501500
......
564563
565564
566565
566
567567
568568
569
569570
570571
571572
......
790791
791792
792793
793
794
795
794796
795797
796798
......
801803
802804
803805
806
807
808
809
810
811
804812
805813
806814
bvChain = newFilteredBVChain(0x80, 0xFF, allowBVFlags, denyBVFlags, &devcnt);
safe_set_env(envgDeviceCount,devcnt);
//gBootVolume = selectBootVolume(bvChain);
safe_set_env(envgBootVolume, (uint32_t)selectBootVolume(bvChain));
if (status == -1) continue;
status = processBootOptions();
#ifndef NO_MULTIBOOT_SUPPORT
// Status==1 means to chainboot
if ( status == 1 ) break;
#endif
// Status==-1 means that the config file couldn't be loaded or that gBootVolume is NULL
if ( status == -1 )
{
}
}
}
#ifndef NO_MULTIBOOT_SUPPORT
// chainboot
if (status==1)
{
}
}
#else
printf("No proper Darwin Partition found, reseting ... \n");
pause();
common_boot(biosdev);
#endif
#ifdef NBP_SUPPORT
if ((get_env(envgBootFileType) == kNetworkDeviceType) && gUnloadPXEOnExit)
{
branches/cparm/i386/boot2/boot2.s
9090
9191
9292
93
93
9494
9595
9696
......
342342
343343
344344
345
345
346346
pushl %edx # bootdev
call _boot
#ifndef NO_MULTIBOOT_SUPPORT
testb $0xff, _chainbootflag
jnz start_chain_boot # Jump to a foreign booter
_Gdtr_high:
.word GDTLIMIT
.long vtop(_Gdt + OFFSET_1MEG)
#endif
/**/
branches/cparm/i386/boot2/options.c
585585
586586
587587
588
588
589589
590590
591591
......
746746
747747
748748
749
750749
751750
752751
......
891890
892891
893892
894
895893
896894
897895
......
946944
947945
948946
949
950
951
952947
953948
954949
......
1000995
1001996
1002997
998
1003999
10041000
10051001
......
10101006
10111007
10121008
1009
1010
1011
10131012
10141013
10151014
10161015
10171016
1018
1017
10191018
10201019
10211020
int optionKey;
// Initialize default menu selection entry.
/*gBootVolume =*/ menuBVR = selectBootVolume(getBvChain());
menuBVR = selectBootVolume(getBvChain());
safe_set_env(envgBootVolume, (uint32_t)menuBVR);
if (biosDevIsCDROM((int)get_env(envgBIOSDev))) {
// Look at partitions hosting OS X other than the CD-ROM
for (bvr = getBvChain(); bvr; bvr=bvr->next) {
if ((bvr->flags & kBVFlagSystemVolume) && bvr->biosdev != (int)get_env(envgBIOSDev)) {
//gBootVolume = bvr;
safe_set_env(envgBootVolume, (uint32_t)bvr);
}
}
showBootPrompt(nextRow, showPrompt);
break;
}
//gBootVolume = menuBVR;
safe_set_env(envgBootVolume, (uint32_t)menuBVR);
setRootVolume(menuBVR);
safe_set_env(envgBIOSDev,menuBVR->biosdev);
//==========================================================================
extern unsigned char chainbootdev;
extern unsigned char chainbootflag;
bool copyArgument(const char *argName, const char *val, int cnt, char **argP, int *cntRemainingP)
{
int argLen = argName ? strlen(argName) : 0;
if ( ((BVRef)(uint32_t)get_env(envgBootVolume)) )
{
#ifndef NO_MULTIBOOT_SUPPORT
if (!( ((BVRef)(uint32_t)get_env(envgBootVolume))->flags & kBVFlagNativeBoot ))
{
readBootSector( ((BVRef)(uint32_t)get_env(envgBootVolume))->biosdev, ((BVRef)(uint32_t)get_env(envgBootVolume))->part_boff,
// foreign booter.
//
extern unsigned char chainbootdev;
extern unsigned char chainbootflag;
chainbootdev = ((BVRef)(uint32_t)get_env(envgBootVolume))->biosdev;
chainbootflag = 1;
return 1;
}
#endif
setRootVolume(((BVRef)(uint32_t)get_env(envgBootVolume)));
}
branches/cparm/i386/boot2/Makefile
2525
2626
2727
28
28
2929
3030
3131
32
3233
3334
3435
......
5455
5556
5657
57
58
5859
5960
6061
......
7071
7172
7273
74
75
76
7377
7478
7579
OPTIM = -Os -Oz
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror -fno-stack-protector \
-fno-builtin -DSAIO_INTERNAL_USER -static $(OMIT_FRAME_POINTER_CFLAG) \
-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
GFLAGS=
DEFINES=
CONFIG = hd
SYMDIR = $(SYMROOT)
# The ordering is important;
# boot2.o must be first.
OBJS = boot2.o boot.o graphics.o drivers.o prompt.o options.o mboot.o
OBJS = boot2.o boot.o graphics.o drivers.o prompt.o options.o
# button.o browser.o scrollbar.o == NOTYET
UTILDIR = ../util
CFLAGS += -DSAFE_MALLOC
#GFLAGS += -DNO_MULTIBOOT_SUPPORT
OBJS += mboot.o
# CFLAGS += -DBOOT_HELPER_SUPPORT # +992 bytes
# CFLAGS += -DNBP_SUPPORT
branches/cparm/i386/modules/NetbookInstaller/NBI.c
129129
130130
131131
132
133132
134133
135134
}
// Force arch=i386 + -v
//archCpuType = CPU_TYPE_I386;
safe_set_env(envarchCpuType, CPU_TYPE_I386);
safe_set_env(envgVerboseMode, true);
}
branches/cparm/i386/modules/NetbookInstaller/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/RamDiskLoader/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/YellowIconFixer/YellowIconFixer.c
88
99
1010
11
1112
1213
1314
......
3132
3233
3334
35
3436
3537
3638
3739
38
39
40
41
42
40
41
42
43
4344
4445
4546
47
48
4649
4750
48
49
50
51
52
53
54
55
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
5666
5767
5868
#include "bootstruct.h"
#include "pci.h"
#include "device_inject.h"
#include "platform.h"
#ifndef DEBUG_SATA
#define DEBUG_SATA 0
pci_dt_t* current = arg1;
struct DevPropDevice*device;
char*devicepath;
struct DevPropString *string;
if (current && current->class_id == PCI_CLASS_STORAGE_SATA)
{
devicepath = get_pci_dev_path(current);
if (devicepath)
{
verbose("SATA device : [%04x:%04x :: %04x] :: %s\n",
current->vendor_id, current->device_id,current->class_id,
devicepath);
{
string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
if (!string)
{
string = devprop_create_string();
if (!string) return;
safe_set_env(envEFIString,(uint32_t)string);
}
device = devprop_add_device(string, devicepath);
devprop_add_value(device, "device-id", default_SATA_ID, SATA_ID_LEN);
stringdata = malloc(sizeof(uint8_t) * string->length);
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
if (!device) return;
#if PROOFOFCONCEPT
uint16_t vendor_id = current->vendor_id & 0xFFFF;
uint16_t device_id = current->device_id & 0xFFFF;
devprop_add_value(device, "vendor-id", (uint8_t*)&vendor_id, 4);
devprop_add_value(device, "device-id", (uint8_t*)&device_id, 4);
#else
devprop_add_value(device, "device-id", default_SATA_ID, SATA_ID_LEN);
#endif
verbose("SATA device : [%04x:%04x :: %04x] :: %s\n",
current->vendor_id, current->device_id,current->class_id,
devicepath);
}
}
branches/cparm/i386/modules/YellowIconFixer/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/KextPatcher/Makefile
2424
2525
2626
27
28
27
28
2929
3030
3131
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/ACPIPatcher/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/GUI/gui.c
114114
115115
116116
117
118
117119
118120
119121
......
324326
325327
326328
327
329
328330
329331
330332
......
384386
385387
386388
387
389
388390
389391
390392
......
849851
850852
851853
852
854
853855
854856
855
857
856858
857859
858860
......
861863
862864
863865
864
866
865867
866868
867869
868870
869
871
870872
871873
872874
873875
874876
875877
876
878
877879
878880
879881
......
898900
899901
900902
901
903
902904
903905
904906
......
910912
911913
912914
913
915
914916
915917
916
918
917919
918920
919921
920922
921923
922
924
923925
924926
925
927
926928
927929
928930
929931
930932
931
933
932934
933935
934
936
935937
936938
937939
938940
939941
940
942
941943
942944
943
945
944946
945947
946948
......
957959
958960
959961
960
962
961963
962964
963
965
964966
965967
966968
......
969971
970972
971973
972
974
973975
974976
975977
......
978980
979981
980982
981
983
982984
983985
984986
985987
986
988
987989
988990
989991
990992
991
993
992994
993995
994
996
995997
996998
997999
......
10001002
10011003
10021004
1003
1005
10041006
10051007
10061008
......
10091011
10101012
10111013
1012
1014
10131015
10141016
10151017
10161018
10171019
1018
1020
10191021
10201022
1021
1023
10221024
10231025
10241026
......
10271029
10281030
10291031
1030
1032
10311033
10321034
10331035
10341036
10351037
1036
1038
10371039
10381040
1039
1041
10401042
10411043
10421044
......
11181120
11191121
11201122
1121
1122
1123
1124
1125
1126
11231127
11241128
11251129
11261130
11271131
1128
1129
1130
1131
1132
1133
1132
11341133
1135
1136
1137
1134
1135
1136
11381137
1139
1138
1139
1140
1141
1142
1143
11401144
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1145
1146
11511147
11521148
11531149
......
11601156
11611157
11621158
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
11731159
11741160
11751161
......
12541240
12551241
12561242
1257
1243
1244
1245
1246
1247
1248
12581249
12591250
12601251
static int unloadGraphics(void);
static int freeBackBuffer( window_t *window );
static bool is_image_loaded(int i);
static bool GUI_getDimensionForKey( const char *key, unsigned int *value, config_file_t *config, unsigned int dimension_max, unsigned int object_size );
static bool GUI_getColorForKey( const char *key, unsigned int *value, config_file_t *config );
#define LOADPNG(src, img, alt_img) if (loadThemeImage(src, #img, alt_img) != 0) { return 1; }
*
*/
bool getDimensionForKey( const char *key, unsigned int *value, config_file_t *config, unsigned int dimension_max, unsigned int object_size )
static bool GUI_getDimensionForKey( const char *key, unsigned int *value, config_file_t *config, unsigned int dimension_max, unsigned int object_size )
{
const char *val;
return false;
}
static bool getColorForKey( const char *key, unsigned int *value, config_file_t *config )
static bool GUI_getColorForKey( const char *key, unsigned int *value, config_file_t *config )
{
const char *val;
int size;
gui.devicelist.height = ((images[iSelection].image->height + font_console.chars[0]->height + gui.devicelist.iconspacing) * MIN(gui.maxdevices, devcnt) + (images[iDeviceScrollPrev].image->height + images[iDeviceScrollNext].image->height) + gui.devicelist.iconspacing);
gui.devicelist.width = (images[iSelection].image->width + gui.devicelist.iconspacing);
if(getDimensionForKey("devices_pos_x", &pixel, theme, gui.screen.width , images[iSelection].image->width ) )
if(GUI_getDimensionForKey("devices_pos_x", &pixel, theme, gui.screen.width , images[iSelection].image->width ) )
gui.devicelist.pos.x = pixel;
if(getDimensionForKey("devices_pos_y", &pixel, theme, gui.screen.height , gui.devicelist.height ) )
if(GUI_getDimensionForKey("devices_pos_y", &pixel, theme, gui.screen.height , gui.devicelist.height ) )
gui.devicelist.pos.y = pixel;
break;
gui.devicelist.width = ((images[iSelection].image->width + gui.devicelist.iconspacing) * MIN(gui.maxdevices, devcnt) + (images[iDeviceScrollPrev].image->width + images[iDeviceScrollNext].image->width) + gui.devicelist.iconspacing);
gui.devicelist.height = (images[iSelection].image->height + font_console.chars[0]->height + gui.devicelist.iconspacing);
if(getDimensionForKey("devices_pos_x", &pixel, theme, gui.screen.width , gui.devicelist.width ) )
if(GUI_getDimensionForKey("devices_pos_x", &pixel, theme, gui.screen.width , gui.devicelist.width ) )
gui.devicelist.pos.x = pixel;
else
gui.devicelist.pos.x = ( gui.screen.width - gui.devicelist.width ) / 2;
if(getDimensionForKey("devices_pos_y", &pixel, theme, gui.screen.height , images[iSelection].image->height ) )
if(GUI_getDimensionForKey("devices_pos_y", &pixel, theme, gui.screen.height , images[iSelection].image->height ) )
gui.devicelist.pos.y = pixel;
else
gui.devicelist.pos.y = ( gui.screen.height - gui.devicelist.height ) / 2;
break;
}
if(getColorForKey("devices_bgcolor", &color, theme))
if(GUI_getColorForKey("devices_bgcolor", &color, theme))
gui.devicelist.bgcolor = (color & 0x00FFFFFF);
if(getIntForKey("devices_transparency", &alpha, theme))
/*
* Parse screen parameters
*/
if(getColorForKey("screen_bgcolor", &color, theme ))
if(GUI_getColorForKey("screen_bgcolor", &color, theme ))
gui.screen.bgcolor = (color & 0x00FFFFFF);
if(getIntForKey("screen_textmargin_h", &val, theme))
/*
* Parse background parameters
*/
if(getDimensionForKey("background_pos_x", &pixel, theme, screen_width , images[iBackground].image->width ) )
if(GUI_getDimensionForKey("background_pos_x", &pixel, theme, screen_width , images[iBackground].image->width ) )
gui.background.pos.x = pixel;
if(getDimensionForKey("background_pos_y", &pixel, theme, screen_height , images[iBackground].image->height ) )
if(GUI_getDimensionForKey("background_pos_y", &pixel, theme, screen_height , images[iBackground].image->height ) )
gui.background.pos.y = pixel;
/*
* Parse logo parameters
*/
if(getDimensionForKey("logo_pos_x", &pixel, theme, screen_width , images[iLogo].image->width ) )
if(GUI_getDimensionForKey("logo_pos_x", &pixel, theme, screen_width , images[iLogo].image->width ) )
gui.logo.pos.x = pixel;
if(getDimensionForKey("logo_pos_y", &pixel, theme, screen_height , images[iLogo].image->height ) )
if(GUI_getDimensionForKey("logo_pos_y", &pixel, theme, screen_height , images[iLogo].image->height ) )
gui.logo.pos.y = pixel;
/*
* Parse progress bar parameters
*/
if(getDimensionForKey("progressbar_pos_x", &pixel, theme, screen_width , 0 ) )
if(GUI_getDimensionForKey("progressbar_pos_x", &pixel, theme, screen_width , 0 ) )
gui.progressbar.pos.x = pixel;
if(getDimensionForKey("progressbar_pos_y", &pixel, theme, screen_height , 0 ) )
if(GUI_getDimensionForKey("progressbar_pos_y", &pixel, theme, screen_height , 0 ) )
gui.progressbar.pos.y = pixel;
/*
* Parse countdown text parameters
*/
if(getDimensionForKey("countdown_pos_x", &pixel, theme, screen_width , 0 ) )
if(GUI_getDimensionForKey("countdown_pos_x", &pixel, theme, screen_width , 0 ) )
gui.countdown.pos.x = pixel;
if(getDimensionForKey("countdown_pos_y", &pixel, theme, screen_height , 0 ) )
if(GUI_getDimensionForKey("countdown_pos_y", &pixel, theme, screen_height , 0 ) )
gui.countdown.pos.y = pixel;
/*
if(getIntForKey("infobox_height", &val, theme) && val >= 0)
gui.infobox.height = MIN( screen_height , (unsigned)val );
if(getDimensionForKey("infobox_pos_x", &pixel, theme, screen_width , gui.infobox.width ) )
if(GUI_getDimensionForKey("infobox_pos_x", &pixel, theme, screen_width , gui.infobox.width ) )
gui.infobox.pos.x = pixel;
if(getDimensionForKey("infobox_pos_y", &pixel, theme, screen_height , gui.infobox.height ) )
if(GUI_getDimensionForKey("infobox_pos_y", &pixel, theme, screen_height , gui.infobox.height ) )
gui.infobox.pos.y = pixel;
if(getIntForKey("infobox_textmargin_h", &val, theme))
if(getIntForKey("infobox_textmargin_v", &val, theme))
gui.infobox.vborder = MIN( gui.infobox.height , val );
if(getColorForKey("infobox_bgcolor", &color, theme))
if(GUI_getColorForKey("infobox_bgcolor", &color, theme))
gui.infobox.bgcolor = (color & 0x00FFFFFF);
if(getIntForKey("infobox_transparency", &alpha, theme))
/*
* Parse menu parameters
*/
if(getDimensionForKey("menu_width", &pixel, theme, gui.screen.width , 0 ) )
if(GUI_getDimensionForKey("menu_width", &pixel, theme, gui.screen.width , 0 ) )
gui.menu.width = pixel;
else
gui.menu.width = images[iMenuSelection].image->width;
if(getDimensionForKey("menu_height", &pixel, theme, gui.screen.height , 0 ) )
if(GUI_getDimensionForKey("menu_height", &pixel, theme, gui.screen.height , 0 ) )
gui.menu.height = pixel;
else
gui.menu.height = (infoMenuItemsCount) * images[iMenuSelection].image->height;
if(getDimensionForKey("menu_pos_x", &pixel, theme, screen_width , gui.menu.width ) )
if(GUI_getDimensionForKey("menu_pos_x", &pixel, theme, screen_width , gui.menu.width ) )
gui.menu.pos.x = pixel;
if(getDimensionForKey("menu_pos_y", &pixel, theme, screen_height , gui.menu.height ) )
if(GUI_getDimensionForKey("menu_pos_y", &pixel, theme, screen_height , gui.menu.height ) )
gui.menu.pos.y = pixel;
if(getIntForKey("menu_textmargin_h", &val, theme))
if(getIntForKey("menu_textmargin_v", &val, theme))
gui.menu.vborder = MIN( gui.menu.height , val );
if(getColorForKey("menu_bgcolor", &color, theme))
if(GUI_getColorForKey("menu_bgcolor", &color, theme))
gui.menu.bgcolor = (color & 0x00FFFFFF);
if(getIntForKey("menu_transparency", &alpha, theme))
/*
* Parse bootprompt parameters
*/
if(getDimensionForKey("bootprompt_width", &pixel, theme, screen_width , 0 ) )
if(GUI_getDimensionForKey("bootprompt_width", &pixel, theme, screen_width , 0 ) )
gui.bootprompt.width = pixel;
if(getIntForKey("bootprompt_height", &val, theme) && val >= 0)
gui.bootprompt.height = MIN( screen_height , (unsigned)val );
if(getDimensionForKey("bootprompt_pos_x", &pixel, theme, screen_width , gui.bootprompt.width ) )
if(GUI_getDimensionForKey("bootprompt_pos_x", &pixel, theme, screen_width , gui.bootprompt.width ) )
gui.bootprompt.pos.x = pixel;
if(getDimensionForKey("bootprompt_pos_y", &pixel, theme, screen_height , gui.bootprompt.height ) )
if(GUI_getDimensionForKey("bootprompt_pos_y", &pixel, theme, screen_height , gui.bootprompt.height ) )
gui.bootprompt.pos.y = pixel;
if(getIntForKey("bootprompt_textmargin_h", &val, theme) && val >= 0)
if(getIntForKey("bootprompt_textmargin_v", &val, theme) && val >= 0)
gui.bootprompt.vborder = MIN( gui.bootprompt.height , (unsigned)val );
if(getColorForKey("bootprompt_bgcolor", &color, theme))
if(GUI_getColorForKey("bootprompt_bgcolor", &color, theme))
gui.bootprompt.bgcolor = (color & 0x00FFFFFF);
if(getIntForKey("bootprompt_transparency", &alpha, theme))
gui.bootprompt.bgcolor = gui.bootprompt.bgcolor | (( 255 - ( alpha & 0xFF) ) << 24);
if(getColorForKey("font_small_color", &color, theme))
if(GUI_getColorForKey("font_small_color", &color, theme))
gui.screen.font_small_color = (color & 0x00FFFFFF);
if(getColorForKey("font_console_color", &color, theme))
if(GUI_getColorForKey("font_console_color", &color, theme))
gui.screen.font_console_color = (color & 0x00FFFFFF);
}
if (i) {
uint8_t choosen = arc4random_uniform(i+1);
uint8_t choosen = arc4random_uniform(i);
#if DEBUG_GUI
printf("choosen number (nb = %d), i = %d \n", choosen, i);
#endif
themeList_t* entry = themeList;
while(entry)
{
if (entry->nb == choosen) break;
entry = entry->next;
}
if (entry) {
if (entry->nb == choosen) {
#if DEBUG_GUI
printf("choosen theme %s (nb = %d)\n", entry->theme, entry->nb);
sleep(1);
printf("choosen theme %s (nb = %d)\n", entry->theme, entry->nb);
sleep(1);
#endif
*theme = entry->theme;
*theme = entry->theme;
sta = startGUI();
break;
}
sta = startGUI();
}
#if DEBUG_GUI
else {
goto out;
}
#endif
entry = entry->next;
}
free_theme_list();
}
#endif
return sta;
#if DEBUG_GUI
out:
printf("random theme failed !!\n");
sleep(1);
#endif
return sta;
}
int initGUI(void)
ret = randomTheme(dirsrc, &theme_name);
if (ret) printf("randomTheme Failed !! \n");
if (ret) {
printf("randomTheme Failed !! \n");
//#if DEBUG_GUI
getc();
//#endif
}
#if DEBUG_GUI
else
{
branches/cparm/i386/modules/GUI/GUI_module.c
699699
700700
701701
702
702
703703
704704
705705
......
889889
890890
891891
892
893892
894893
895894
......
10951094
10961095
10971096
1098
10991097
11001098
11011099
......
11111109
11121110
11131111
1114
11151112
11161113
11171114
......
11241121
11251122
11261123
1127
11281124
11291125
11301126
int devcnt = (int)get_env(envgDeviceCount);
// Initialize default menu selection entry.
/*gBootVolume =*/ menuBVR = selectBootVolume(getBvChain());
menuBVR = selectBootVolume(getBvChain());
safe_set_env(envgBootVolume, (uint32_t)menuBVR);
if (biosDevIsCDROM((int)get_env(envgBIOSDev)))
// Look at partitions hosting OS X other than the CD-ROM
for (bvr = getBvChain(); bvr; bvr=bvr->next) {
if ((bvr->flags & kBVFlagSystemVolume) && bvr->biosdev != (int)get_env(envgBIOSDev)) {
//gBootVolume = bvr;
safe_set_env(envgBootVolume, (uint32_t)bvr);
}
}
GUI_showBootPrompt(nextRow, showPrompt);
break;
}
//gBootVolume = menuBVR;
safe_set_env(envgBootVolume, (uint32_t)menuBVR);
setRootVolume(menuBVR);
safe_set_env(envgBIOSDev,menuBVR->biosdev);
// if the user enabled rescanning the optical drive.
// Otherwise boot the default boot volume.
if (get_env(envgEnableCDROMRescan)) {
//gBootVolume = NULL;
safe_set_env(envgBootVolume, (uint32_t)NULL);
GUI_clearBootArgs();
}
#else
scanDisks();
#endif
//gBootVolume = NULL;
safe_set_env(envgBootVolume, (uint32_t)NULL);
GUI_clearBootArgs();
branches/cparm/i386/modules/GUI/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common #-fstack-protector-all
branches/cparm/i386/modules/KernelPatcher/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -O3
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/Networking/Networking.c
88
99
1010
11
1112
1213
1314
......
7374
7475
7576
77
7678
7779
7880
......
8587
8688
8789
88
90
91
92
93
94
95
96
8997
9098
9199
......
101109
102110
103111
104
105
112
113
114
106115
107116
108117
118
109119
110
120
121
122
123
111124
112125
113126
114127
115128
116
117
118
119
120
121
129
122130
123131
124132
......
145153
146154
147155
148
149
156
157
158
150159
151160
152161
162
153163
154
164
165
166
167
155168
156169
157170
......
168181
169182
170183
171
172
173
174
175
176
177
178
179
180
181
182
183
184
184
185
185186
186187
187188
#include "bootstruct.h"
#include "pci.h"
#include "device_inject.h"
#include "platform.h"
#ifndef DEBUG_ETHERNET
#define DEBUG_ETHERNET 0
if(device)
{
uint32_t devices_number;
if((vendor_id != 0x168c) && (builtin_set == 0))
{
return 0;
}
devices_number++;
if (!(devices_number = (uint32_t)get_env(envDeviceNumber))) {
devices_number = 1;
}
safe_set_env(envDeviceNumber,devices_number+1);
return 1;
}
else
if (!devicepath) {
return ;
}
struct DevPropDevice *device /*= (struct DevPropDevice*)malloc(sizeof(struct DevPropDevice))*/;
struct DevPropDevice *device;
struct DevPropString *string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
verbose("LAN Controller [%04x:%04x] :: %s\n", eth_dev->vendor_id, eth_dev->device_id, devicepath);
if (!string)
{
string = devprop_create_string();
if (!string) return;
safe_set_env(envEFIString,(uint32_t)string);
}
device = devprop_add_device(string, devicepath);
if(device)
{
verbose("Setting up lan keys\n");
devprop_add_network_template(device, eth_dev->vendor_id);
stringdata = (uint8_t*)malloc(sizeof(uint8_t) * string->length);
if(stringdata)
{
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
}
devprop_generate_string(string);
}
}
if (!devicepath) {
return ;
}
struct DevPropDevice *device /*= (struct DevPropDevice*)malloc(sizeof(struct DevPropDevice))*/;
struct DevPropDevice *device ;
struct DevPropString *string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
verbose("Wifi Controller [%04x:%04x] :: %s\n", wlan_dev->vendor_id, wlan_dev->device_id, devicepath);
if (!string)
{
string = devprop_create_string();
if (!string) return;
safe_set_env(envEFIString,(uint32_t)string);
}
device = devprop_add_device(string, devicepath);
if(device)
{
{
verbose("Setting up wifi keys\n");
devprop_add_value(device, "model", (uint8_t*)known_wifi_cards[i].model, (strlen(known_wifi_cards[i].model) + 1));
// NOTE: I would set the subsystem id and subsystem vendor id here,
// however, those values seem to be ovverriden in the boot process.
// A batter method would be injecting the DTGP dsdt method
// and then injectinve the subsystem id there.
stringdata = (uint8_t*)malloc(sizeof(uint8_t) * string->length);
if(stringdata)
{
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
}
devprop_add_value(device, "model", (uint8_t*)known_wifi_cards[i].model, (strlen(known_wifi_cards[i].model) + 1));
return;
}
branches/cparm/i386/modules/Networking/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/GraphicsEnabler/gma.c
112112
113113
114114
115
115116
117
116118
119
120
121
122
117123
118124
119125
......
170176
171177
172178
173
174
175
176
177
178
179
180
181
182
183
184
185
186
179
187180
188181
verbose("Intel %s [%04x:%04x] :: %s\n",
model, gma_dev->vendor_id, gma_dev->device_id, devicepath);
struct DevPropString *string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
if (!string)
{
string = devprop_create_string();
if (!string) return false;
safe_set_env(envEFIString,(uint32_t)string);
}
struct DevPropDevice *device = devprop_add_device(string, devicepath);
if(!device)
else if (strcmp(model, "Intel HD Graphics 3000") == 0)
{
devprop_add_value(device, "AAPL,os-info", HD3000_os_info, 20);
}
stringdata = malloc(sizeof(uint8_t) * string->length);
if(!stringdata)
{
printf("No stringdata press a key...\n");
getc();
return false;
}
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
}
return true;
}
branches/cparm/i386/modules/GraphicsEnabler/nvidia.c
11921192
11931193
11941194
1195
1196
1197
1198
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
11991207
12001208
12011209
......
12901298
12911299
12921300
1293
1301
1302
1303
12941304
12951305
12961306
......
14051415
14061416
14071417
1408
1409
1410
1411
1418
1419
1420
1421
14121422
1413
1423
1424
1425
1426
14141427
14151428
14161429
......
15201533
15211534
15221535
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
15331536
15341537
return 0;
// Rek : Dont use sprintf return, it does not WORK !! our custom sprintf() always return 0!
// len = sprintf(tmp, "Slot-%x", devices_number);
sprintf(tmp, "Slot-%x",devices_number);
devprop_add_value(device, "AAPL,slot-name", (uint8_t *) tmp, strlen(tmp));
devices_number++;
{
uint32_t devices_number;
if (!(devices_number = (uint32_t)get_env(envDeviceNumber))) {
devices_number = 1;
}
sprintf(tmp, "Slot-%x",devices_number);
devprop_add_value(device, "AAPL,slot-name", (uint8_t *) tmp, strlen(tmp));
safe_set_env(envDeviceNumber,devices_number+1);
}
return 1;
}
char*model;
const char*value;
booldoit;
struct DevPropString *string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
static const dcfg_t default_dcfg [] = {
{0xff,0xff,0xff,0xff},
};
//return false;
}
}
DBG("nvidia model : %s\n",model);
if (!string) {
DBG("nvidia model : %s\n",model);
if (!string)
{
string = devprop_create_string();
}
if (!string) {free(rom);return false;}
safe_set_env(envEFIString,(uint32_t)string);
}
device = devprop_add_device(string, devicepath);
/* FIXME: for primary graphics card only */
devprop_add_value(device, "vbios", rom, (nvBiosOveride > 0) ? nvBiosOveride : (uint32_t)(rom[2] * 512));
}
stringdata = malloc(sizeof(uint8_t) * string->length);
if (!stringdata) {
free(rom);
free(version_str);
printf("Couldn't allocate momory for device stringdata\n");
return false;
}
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
return true;
}
branches/cparm/i386/modules/GraphicsEnabler/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/GraphicsEnabler/ati.c
15351535
15361536
15371537
1538
1539
1540
1538
1539
15411540
1541
15421542
1543
1543
1544
1545
1546
15441547
15451548
15461549
......
15641567
15651568
15661569
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1570
1571
15771572
15781573
15791574
bool setup_ati_devprop(pci_dt_t *ati_dev)
{
char *devicepath;
// -------------------------------------------------
// Find a better way to do this (in device_inject.c)
struct DevPropString *string = (struct DevPropString *)(uint32_t)get_env(envEFIString);
if (!string)
{
string = devprop_create_string();
if (!string) return false;
safe_set_env(envEFIString,(uint32_t)string);
}
devicepath = get_pci_dev_path(ati_dev);
if (!devicepath) {
return false;
devprop_add_value(card->device, "ATY,IOSpaceOffset", &io, 8);
#endif
devprop_add_list(ati_devprop_list);
// -------------------------------------------------
// Find a better way to do this (in device_inject.c)
//Azi: XXX tried to fix a malloc error in vain; this is related to XCode 4 compilation!
stringdata = malloc(sizeof(uint8_t) * string->length);
memcpy(stringdata, (uint8_t*)devprop_generate_string(string), string->length);
stringlength = string->length;
// -------------------------------------------------
devprop_add_list(ati_devprop_list);
verbose("%s %dMB [%04x:%04x] (subsys [%04x:%04x]) (%s:%s) :: %s\n",
card->info->model_name, (uint32_t)(card->vram_size / (1024 * 1024)),
ati_dev->vendor_id, ati_dev->device_id,
branches/cparm/i386/modules/SMBiosGetters/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common #-fstack-protector-all
branches/cparm/i386/modules/SMBiosGetters/README
1
1
please do not use SMBiosGetters and SMBiosPatcher together, you have to chose one of them, this issue will be fixed in the next versions
WARNING : For now, SMBiosPatcher is highly recommended
branches/cparm/i386/modules/HibernateEnabler/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/Keymapper/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/USBFix/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/HPET/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/SMBiosPatcher/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/SMBiosPatcher/README
1
1
please do not use SMBiosGetters and SMBiosPatcher together, you have to chose one of them , this issue will be fixed in the next versions
WARNING : For now, SMBiosPatcher is highly recommended
branches/cparm/i386/modules/Resolution/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/CPUfreq/Makefile
3636
3737
3838
39
40
39
40
4141
4242
4343
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/Memory/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common
branches/cparm/i386/modules/ACPICodec/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common -D__BUNDLE_ID__=\"$(BUNDLE_ID)\"
branches/cparm/i386/modules/HelloWorld/Makefile
3737
3838
3939
40
41
40
41
4242
4343
4444
OPTIM = -Os -Oz
DEBUG = -DNOTHING
CFLAGS= $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -fstack-protector-all \
-D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
-DRCZ_COMPRESSED_FILE_SUPPORT $(DEBUG) \
-D__ARCHITECTURE__=\"i386\" \
$(DEBUG) \
-fno-builtin $(OMIT_FRAME_POINTER_CFLAG) \
-mpreferred-stack-boundary=2 -fno-align-functions \
-march=pentium4 -msse2 -mfpmath=sse -msoft-float -fno-common

Archive Download the corresponding diff file

Revision: 1977