Chameleon

Chameleon Commit Details

Date:2010-09-10 17:14:50 (3 years 10 months ago)
Author:Azimutz
Commit:515
Parents: 514
Message:Finish messing with #include preprocessor. No other intention here but "research", though i doubt i will get this back to how it was?! Time will tell.. it's not like the booter will work better (or worse) because of these changes. Just getting a better overall picture of what's needed and were!
Changes:
M/branches/azimutz/Chazi/i386/libsaio/pci_root.c
M/branches/azimutz/Chazi/i386/libsaio/stringTable.c
M/branches/azimutz/Chazi/i386/libsaio/biosfn.c
M/branches/azimutz/Chazi/i386/boot2/modules.h
M/branches/azimutz/Chazi/i386/libsaio/convert.h
M/branches/azimutz/Chazi/i386/boot2/gui.c
M/branches/azimutz/Chazi/i386/libsaio/fake_efi.c
M/branches/azimutz/Chazi/i386/libsaio/usb.c
M/branches/azimutz/Chazi/i386/libsaio/device_inject.c
M/branches/azimutz/Chazi/i386/libsaio/autoresolution.c
M/branches/azimutz/Chazi/i386/boot2/gui.h
M/branches/azimutz/Chazi/i386/libsaio/gma_resolution.h
M/branches/azimutz/Chazi/i386/boot2/ramdisk.c
M/branches/azimutz/Chazi/i386/boot2/options.c
M/branches/azimutz/Chazi/i386/libsaio/autoresolution.h
M/branches/azimutz/Chazi/i386/boot2/ramdisk.h
M/branches/azimutz/Chazi/i386/libsaio/console.c
M/branches/azimutz/Chazi/i386/modules/KernelPatcher/kernel_patcher.c
M/branches/azimutz/Chazi/i386/boot2/resume.c
M/branches/azimutz/Chazi/i386/libsaio/ati_resolution.h
M/branches/azimutz/Chazi/i386/boot2/boot.c
M/branches/azimutz/Chazi/i386/modules/KernelPatcher/kernel_patcher.h
M/branches/azimutz/Chazi/i386/libsaio/nvidia.c
M/branches/azimutz/Chazi/i386/libsaio/ntfs.c
M/branches/azimutz/Chazi/i386/boot2/boot.h
M/branches/azimutz/Chazi/i386/modules/HelloWorld/HelloWorld.c
M/branches/azimutz/Chazi/i386/libsaio/vbe.c
M/branches/azimutz/Chazi/i386/libsaio/ufs_byteorder.c
M/branches/azimutz/Chazi/i386/libsaio/ati.c
M/branches/azimutz/Chazi/i386/libsaio/bootstruct.h
M/branches/azimutz/Chazi/i386/libsaio/sys.c
M/branches/azimutz/Chazi/i386/libsaio/device_tree.c
M/branches/azimutz/Chazi/i386/libsaio/load.c
M/branches/azimutz/Chazi/i386/libsaio/hfs.c
M/branches/azimutz/Chazi/i386/boot2/drivers.c
M/branches/azimutz/Chazi/i386/libsaio/vbe.h
M/branches/azimutz/Chazi/i386/libsaio/acpi_patcher.c
M/branches/azimutz/Chazi/i386/boot2/mboot.c
M/branches/azimutz/Chazi/i386/libsaio/sl.h
M/branches/azimutz/Chazi/i386/libsaio/allocate.c
M/branches/azimutz/Chazi/i386/libsaio/platform.c
M/branches/azimutz/Chazi/i386/libsaio/hfs_compare.c
M/branches/azimutz/Chazi/i386/libsaio/spd.c
M/branches/azimutz/Chazi/i386/libsaio/cpu.c
M/branches/azimutz/Chazi/i386/libsaio/libsaio.h
M/branches/azimutz/Chazi/i386/libsaio/disk.c
M/branches/azimutz/Chazi/i386/libsaio/pci_setup.c
M/branches/azimutz/Chazi/i386/libsaio/spd.h
M/branches/azimutz/Chazi/i386/libsaio/ufs.c
M/branches/azimutz/Chazi/i386/boot2/lzss.c
M/branches/azimutz/Chazi/i386/libsaio/nvidia_resolution.h
M/branches/azimutz/Chazi/i386/libsaio/smbios_patcher.c
M/branches/azimutz/Chazi/i386/libsaio/cache.c
M/branches/azimutz/Chazi/i386/boot2/graphics.c
M/branches/azimutz/Chazi/i386/libsaio/edid.c
M/branches/azimutz/Chazi/i386/libsaio/smbios_patcher.h
M/branches/azimutz/Chazi/i386/boot2/graphics.h
M/branches/azimutz/Chazi/i386/boot2/modules.c

File differences

branches/azimutz/Chazi/i386/libsaio/console.c
4545
4646
4747
48
48
4949
5050
5151
*/
//#include "libsaio.h"
#include "bootstruct.h" - most libsaio.h stuff is included here now.
#include "bootstruct.h"
extern intvprf(const char * fmt, va_list ap);
branches/azimutz/Chazi/i386/libsaio/ati_resolution.h
1111
1212
1313
14
15
16
1714
1815
1916
#define _ATI_RESOLUTION_H_
//#include "libsaio.h"
#include "libsa.h"
#include "saio_internal.h"
//---
#include "autoresolution.h"
#define ATI_SIGNATURE1 "ATI MOBILITY RADEON"
branches/azimutz/Chazi/i386/libsaio/vbe.c
3030
3131
3232
33
3433
3534
3635
#include "io_inline.h"
#include "saio_types.h"
#include "saio_internal.h"
//--- hum, check again; getting the feeling that the headers feed on the included here!?
#include "vbe.h"
/*
branches/azimutz/Chazi/i386/libsaio/bootstruct.h
2929
3030
3131
32
3233
3334
34
35
36
35
3736
3837
3938
//Azi: this is acting now as a mini libsaio.h :P
//#include "libsaio.h"
//#include "bios.h"
#include "libsa.h"
#include "saio_types.h"
#include "saio_internal.h" // "external" to verbose function
//---
#include "bios.h"
#include "saio_internal.h"
#include "device_tree.h"
/*!
branches/azimutz/Chazi/i386/libsaio/device_tree.c
3737
3838
3939
40
4140
4241
4342
//Azi: check location.
//#include "libsaio.h"
#include "libsa.h"
//---
#include "device_tree.h"
#if DEBUG
branches/azimutz/Chazi/i386/libsaio/hfs.c
2727
2828
2929
30
30
31
3132
3233
3334
* DRI: Josh de Cesare
*/
#include <sl.h>
//#include <sl.h>
#include "sl.h" //Azi:???
#include <hfs/hfs_format.h>
#include "hfs.h"
branches/azimutz/Chazi/i386/libsaio/vbe.h
3535
3636
3737
38
38
3939
4040
4141
#ifndef __LIBSAIO_VBE_H
#define __LIBSAIO_VBE_H
#include "edid.h"//Azi:autoresolution
//#include "edid.h"//Azi:autoresolution <-- included in
#include "autoresolution.h"
#define MIN_VESA_VERSION 0x200
branches/azimutz/Chazi/i386/libsaio/acpi_patcher.c
33
44
55
6
67
7
88
99
1010
*/
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "acpi.h"
#include "efi_tables.h"
#include "fake_efi.h"
branches/azimutz/Chazi/i386/libsaio/allocate.c
2222
2323
2424
25
26
27
2528
26
27
28
2929
3030
3131
* @APPLE_LICENSE_HEADER_END@
*/
//#include "saio_internal.h"
//#include "device_tree.h" - included on bootstruct.h
#include "bootstruct.h"
#include "sl.h"
#include "saio_internal.h"
#include "bootstruct.h"
#include "device_tree.h"
static long gImageLastKernelAddr;
branches/azimutz/Chazi/i386/libsaio/hfs_compare.c
2727
2828
2929
30
30
31
3132
3233
3334
* DRI: Josh de Cesare
*/
#include <sl.h>
//#include <sl.h>
#include "sl.h" //Azi:???
#include "hfs_CaseTables.h"
#if ! UNCOMPRESSED
branches/azimutz/Chazi/i386/libsaio/spd.c
77
88
99
10
11
1012
1113
1214
13
14
1515
1616
1717
*/
//#include "libsaio.h" - included on the header.
//#include "saio_internal.h" - included on bootstruct.h
#include "bootstruct.h"
#include "pci.h"
#include "platform.h"
#include "spd.h"
#include "saio_internal.h"
#include "bootstruct.h"
#include "memvendors.h"
#ifndef DEBUG_SPD
branches/azimutz/Chazi/i386/libsaio/libsaio.h
2626
2727
2828
29
2930
3031
3132
#ifndef __LIBSAIO_LIBSAIO_H
#define __LIBSAIO_LIBSAIO_H
//Azi: not used atm.
#include "libsa.h"
#include "memory.h"
#include "io_inline.h"
branches/azimutz/Chazi/i386/libsaio/spd.h
77
88
99
10
1110
11
1212
1313
1414
#ifndef __LIBSAIO_SPD_H
#define __LIBSAIO_SPD_H
#include "platform.h" // already suplies most of the dependencies.
//#include "libsaio.h"
#include "platform.h"
#include "io_inline.h"
void scan_spd(PlatformInfo_t *p);
branches/azimutz/Chazi/i386/libsaio/ufs.c
2727
2828
2929
30
30
31
3132
3233
3334
* DRI: Josh de Cesare
*/
#include <sl.h>
//#include <sl.h>
#include "sl.h" //Azi:???
#include "ufs.h"
#include "ufs_byteorder.h"
branches/azimutz/Chazi/i386/libsaio/smbios_patcher.c
33
44
55
6
67
7
88
99
1010
*/
//#include "libsaio.h" - included on the hearder.
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "acpi.h"
#include "efi_tables.h"
#include "fake_efi.h"
branches/azimutz/Chazi/i386/libsaio/smbios_patcher.h
88
99
1010
11
11
1212
1313
1414
#ifndef __LIBSAIO_SMBIOS_PATCHER_H
#define __LIBSAIO_SMBIOS_PATCHER_H
//#include "libsaio.h" - not needed??
//#include "libsaio.h"
#include "SMBIOS.h"
/* From Foundation/Efi/Guid/Smbios/SmBios.h */
branches/azimutz/Chazi/i386/libsaio/pci_root.c
33
44
55
6
67
7
88
99
1010
*/
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#ifndef DEBUG_PCIROOT
#define DEBUG_PCIROOT 1
branches/azimutz/Chazi/i386/libsaio/usb.c
88
99
1010
11
12
11
1312
14
13
1514
1615
1716
*/
//#include "libsaio.h"
#include "io_inline.h"
//---
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "io_inline.h"
#include "pci.h"
#ifndef DEBUG_USB
branches/azimutz/Chazi/i386/libsaio/device_inject.c
66
77
88
9
910
10
1111
1212
1313
*/
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#include "pci_root.h"
#include "device_inject.h"
branches/azimutz/Chazi/i386/libsaio/autoresolution.c
1
21
32
43
......
1514
1615
1716
18
19
20
17
2118
2219
2320
24
21
2522
2623
2724
/* Copied from 915 resolution created by steve tomljenovic
*
* This code is based on the techniques used in :
*/
//#include "libsaio.h"
#include "saio_internal.h"
//---
//#include "autoresolution.h" - included on ati_resolution.h
//#include "autoresolution.h" - included on *_resolution.h
#include "nvidia_resolution.h"
#include "ati_resolution.h"
#include "gma_resolution.h"
#include "../boot2/graphics.h"
#include "../boot2/graphics.h" //Azi:reminder
char * chipsetTypeNames[] = {
"UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", "945GME",
branches/azimutz/Chazi/i386/libsaio/autoresolution.h
1818
1919
2020
21
22
2123
2224
2325
//#define AUTORES_DEBUG 1 // enable AutoResolution debug - review!
#include "libsa.h"
#include "saio_internal.h"
#include "edid.h"
#if DEBUG
branches/azimutz/Chazi/i386/libsaio/nvidia.c
4949
5050
5151
52
5253
53
5454
5555
5656
*/
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#include "platform.h"
#include "device_inject.h"
branches/azimutz/Chazi/i386/libsaio/ntfs.c
2323
2424
2525
26
26
2727
28
2829
2930
3031
31
32
3332
3433
3534
* @APPLE_LICENSE_HEADER_END@
*/
//#include "libsaio.h" - included on sl.h
//#include "libsaio.h"
#include "sl.h"
#include "ntfs_private.h"
#define BYTE_ORDER_MARK0xFEFF
#include "ntfs_private.h"
#define FS_TYPE"ntfs"
#define FS_NAME_FILE"NTFS"
branches/azimutz/Chazi/i386/libsaio/ufs_byteorder.c
3131
3232
3333
34
35
3436
35
3637
3738
3839
#include <sys/vnode.h>
#include <ufs/ufs/dir.h>
#include <libkern/OSByteOrder.h>
//#include "libsaio.h" // ufs support reminder (check disk.c)
#include "ufs_byteorder.h"
#include "libsaio.h" // probably needed if ufs support is enabled.
#defineswapBigLongToHost(thing) ((thing) = OSSwapBigToHostInt32(thing))
#defineswapBigShortToHost(thing) ((thing) = OSSwapBigToHostInt16(thing))
branches/azimutz/Chazi/i386/libsaio/ati.c
2222
2323
2424
25
25
2626
27
2827
2928
3029
//#include "libsaio.h"
//---
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#include "platform.h"
#include "device_inject.h"
branches/azimutz/Chazi/i386/libsaio/sys.c
5454
5555
5656
57
58
57
58
59
5960
6061
6162
63
6264
6365
66
6467
65
6668
6769
6870
71
6972
7073
7174
7275
7376
74
75
77
78
79
7680
7781
7882
*@(#)sys.c7.1 (Berkeley) 6/5/86
*/
/* Copyright 2007 VMware Inc.
"Preboot" ramdisk support added by David Elliott
/*
* Copyright 2007 VMware Inc.
* "Preboot" ramdisk support added by David Elliott
*/
#include <AvailabilityMacros.h>
#include <uuid/uuid.h>
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "disk.h"
#include "ramdisk.h"
#include "xml.h"
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
# include <Kernel/libkern/crypto/md5.h>
#else
# include <sys/md5.h>
#endif
#include <uuid/uuid.h>
#if 0 /* No OS X release has ever included this. */
/* No OS X release has ever included this. */
#if 0
#include <Kernel/uuid/namespace.h>
#else
/* copied from uuid/namespace.h, just like BootX's fs.c does. */
branches/azimutz/Chazi/i386/libsaio/load.c
3030
3131
3232
33
33
34
3435
3536
3637
#include <mach-o/loader.h>
#include <mach/machine/thread_status.h>
#include <sl.h>
//#include <sl.h>
#include "sl.h" //Azi:???
static long DecodeSegment(long cmdBase, unsigned int*load_addr, unsigned int *load_size);
static long DecodeUnixThread(long cmdBase, unsigned int *entry);
branches/azimutz/Chazi/i386/libsaio/sl.h
2828
2929
3030
31
3231
32
33
34
35
36
3337
3438
3539
#include <sys/types.h>
#include <sys/param.h>
#include <sys/vnode.h>
#include "libsaio.h" - check later; sl.h is included in many files!
//#include "libsaio.h"
#include "libsa.h"
#include "memory.h"
#include "saio_internal.h"
#define SWAP_BE16(x) OSSwapBigToHostInt16(x)
#define SWAP_LE16(x) OSSwapLittleToHostInt16(x)
#define SWAP_BE32(x) OSSwapBigToHostInt32(x)
branches/azimutz/Chazi/i386/libsaio/platform.c
44
55
66
7
7
8
89
9
1010
1111
1212
* AsereBLN: cleanup
*/
//#include "libsaio.h" - both bootstruct.h, platform.h, pci.h can resolve dependencies.
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#include "platform.h"
#include "cpu.h"
branches/azimutz/Chazi/i386/libsaio/cpu.c
33
44
55
6
6
77
88
99
* AsereBLN: 2009: cleanup and bugfix
*/
//#include "libsaio.h" - was included on both of the remaining; platform.h resolves dependencies.
//#include "libsaio.h"
#include "platform.h"
#include "cpu.h"
branches/azimutz/Chazi/i386/libsaio/disk.c
4444
4545
4646
47
48
49
47
48
49
50
5051
5152
53
54
55
56
57
58
5259
5360
5461
......
5663
5764
5865
66
67
5968
60
61
62
6369
70
6471
6572
6673
74
6775
6876
6977
7078
71
7279
7380
81
82
83
7484
75
76
77
7885
7986
8087
81
82
83
84
8588
8689
8790
* All rights reserved.
*/
/* Copyright 2007 VMware Inc.
"Preboot" ramdisk support added by David Elliott
GPT support added by David Elliott. Based on IOGUIDPartitionScheme.cpp.
/*
* Copyright 2007 VMware Inc.
* "Preboot" ramdisk support added by David Elliott
* GPT support added by David Elliott. Based on IOGUIDPartitionScheme.cpp.
*/
//#define UFS_SUPPORT 1 //Azi: error: duplicate case value
#include <limits.h>
#include <IOKit/storage/IOApplePartitionScheme.h>
#include <IOKit/storage/IOGUIDPartitionScheme.h>
// Allow UFS_SUPPORT to be overridden with preprocessor option.
#ifndef UFS_SUPPORT
// zef: Disabled UFS support
#endif
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "memory.h"
//---
#include "boot.h"
#include "bootstruct.h"
#include "fdisk.h"
#if UFS_SUPPORT
#include "ufs.h"
#endif
#include "hfs.h"
#include "ntfs.h"
#include "msdos.h"
#include "ext2fs.h"
#include "xml.h"
#include "disk.h"
// For EFI_GUID
#include "efi.h"
#include "efi_tables.h"
#include <limits.h>
#include <IOKit/storage/IOApplePartitionScheme.h>
#include <IOKit/storage/IOGUIDPartitionScheme.h>
typedef struct gpt_hdr gpt_hdr;
typedef struct gpt_ent gpt_ent;
// For EFI_GUID
#include "efi.h"
#include "efi_tables.h"
#define PROBEFS_SIZE BPS * 4 /* buffer size for filesystem probe */
#define CD_BPS 2048 /* CD-ROM block size */
#define N_CACHE_SECS (BIOS_LEN / BPS) /* Must be a multiple of 4 for CD-ROMs */
branches/azimutz/Chazi/i386/libsaio/pci_setup.c
11
22
3
34
4
55
66
77
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "pci.h"
#include "nvidia.h"
#include "ati.h"
branches/azimutz/Chazi/i386/libsaio/nvidia_resolution.h
11
2
2
33
44
55
......
77
88
99
10
11
10
11
1212
13
13
14
1415
1516
1617
/*
* nviviaresolution.h
* nvidia_resolution.h
*
*
* Created by Le Bidou on 19/03/10.
*
*/
#ifndef _NVDA_RESOLUTION_HEADER_
#define _NVDA_RESOLUTION_HEADER_
#ifndef _NVIDIA_RESOLUTION_HEADER_
#define _NVIDIA_RESOLUTION_HEADER_
#include "libsaio.h" // not worth it; 4 out of 5 are needed.
//#include "libsaio.h"
#include "io_inline.h"
#include "autoresolution.h"
#define NVIDIA_SIGNATURE "NVIDIA Corp"
branches/azimutz/Chazi/i386/libsaio/cache.c
2727
2828
2929
30
31
30
31
32
3233
3334
3435
* DRI: Josh de Cesare
*/
#include <sl.h>
// #include <fs.h>
//#include <sl.h>
#include "sl.h" //Azi:???
//#include <fs.h>
struct CacheEntry {
CICell ih;
branches/azimutz/Chazi/i386/libsaio/edid.c
88
99
1010
11
12
11
12
13
1314
14
1515
1616
1717
*/
//#include "libsaio.h" --> bootstruct.h
//#include "bootstruct.h" - included on graphics.h
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "graphics.h"
#include "boot.h"
//static biosBuf_t bb;
branches/azimutz/Chazi/i386/libsaio/stringTable.c
2727
2828
2929
30
3031
31
3232
3333
3434
*/
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "xml.h"
extern char *Language;
branches/azimutz/Chazi/i386/libsaio/biosfn.c
4040
4141
4242
43
44
45
4346
44
4547
46
47
4848
4949
5050
- Added ebiosEjectMedia
*/
//#include "libsaio.h"
//#include "libsa.h"
//#include "saio_internal.h"
#include "bootstruct.h"
//#include "libsaio.h"
#include "memory.h"
#include "libsa.h"
#include "saio_internal.h"
#define MAX_DRIVES 8
branches/azimutz/Chazi/i386/libsaio/convert.h
99
1010
1111
12
13
12
1413
1514
1615
//#include "libsaio.h"
#include "libsa.h"
#include "saio_internal.h" // "external" to verbose function
//---
#include "saio_internal.h"
#include "efi.h"
#define UUID_LEN16
branches/azimutz/Chazi/i386/libsaio/fake_efi.c
44
55
66
7
78
8
99
1010
1111
*/
//#include "libsaio.h"
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "efi.h"
#include "acpi.h"
#include "fake_efi.h"
branches/azimutz/Chazi/i386/libsaio/gma_resolution.h
1111
1212
1313
14
15
1614
1715
1816
#define _GMA_RESOLTUION_H_
//#include "libsaio.h"
#include "saio_internal.h"
//---
#include "autoresolution.h"
#define MODE_TABLE_OFFSET_845G 617
branches/azimutz/Chazi/i386/boot2/ramdisk.h
77
88
99
10
11
12
1310
1411
1512
#ifndef __BOOT_RAMDISK_H
#define __BOOT_RAMDISK_H
//#include "libsaio.h"
#include "libsa.h"
#include "saio_types.h"
#include "memory.h"
#define RAMDISKCONFIG_FILENAME "rd(0,0)/RAMDisk.plist"
branches/azimutz/Chazi/i386/boot2/resume.c
77
88
99
10
10
11
12
1113
1214
13
14
1515
1616
1717
*
*/
#include "libsa.h"
//#include "libsa.h"
//#include "bootstruct.h"
#include "boot.h"
#include "IOHibernatePrivate.h"
#include "memory.h"
#include "bootstruct.h"
#include "boot.h"
#include "pci.h"
extern int previewTotalSectors;
branches/azimutz/Chazi/i386/boot2/graphics.c
2626
2727
2828
29
2930
3031
3132
* All rights reserved.
*/
#include "boot.h"
#include "appleClut8.h"
#include "gui.h"
#include "IOHibernatePrivate.h"
branches/azimutz/Chazi/i386/boot2/boot.c
4949
5050
5151
52
52
53
5354
54
55
56
57
58
55
5956
60
6157
58
59
60
6261
6362
6463
* Reworked again by Curtis Galloway (galloway@NeXT.com)
*/
//#include "bootstruct.h"
//#include "libsa.h"
#include "boot.h"
#include "bootstruct.h"
#include "fake_efi.h"
#include "sl.h"
#include "libsa.h"
#include "ramdisk.h"
#include "ramdisk.h" // bootstruct.h: memory.h instead of saio_internal.h
#include "gui.h"
#include "platform.h"
#include "modules.h"
#include "fake_efi.h"
#include "platform.h" // bootstruct.h - device_tree.h
#include "sl.h" // bootstruct.h: memory.h instead of saio_types.h
long gBootMode; /* defaults to 0 == kBootModeNormal */
bool gOverrideKernel;
branches/azimutz/Chazi/i386/boot2/graphics.h
77
88
99
10
11
12
1013
11
12
13
14
14
15
16
1517
1618
1719
18
19
20
2120
2221
2322
*
*/
#ifndef __BOOT_GRAPHICS_H
#define __BOOT_GRAPHICS_H
//#include "libsaio.h"
#include "libsa.h"
//---
#include "boot.h" // was included on graphic_utils.h
#include "bootstruct.h"
//#include "bootstruct.h"
//#include "boot.h"
#include "saio_types.h"
#include "graphic_utils.h"
#include "vbe.h"
#ifndef __BOOT_GRAPHICS_H
#define __BOOT_GRAPHICS_H
#define DEFAULT_SCREEN_WIDTH 1024
#define DEFAULT_SCREEN_HEIGHT 768
branches/azimutz/Chazi/i386/boot2/modules.c
44
55
66
7
8
9
7
8
109
1110
1211
*/
//#include "boot.h"
#include "libsa.h"
#include "saio_internal.h"
//---
//#include "libsa.h"
//#include "saio_internal.h"
#include "bootstruct.h"
#include "multiboot.h"
#include "modules.h"
branches/azimutz/Chazi/i386/boot2/boot.h
3030
3131
3232
33
34
33
3534
36
35
3736
37
38
39
3840
3941
4042
#define __BOOT2_BOOT_H
//Azi: keep it minimal for now.
// Todo: check bootstruct.h, sl.h, platform.h, next; include bootstruct here??
// don't include headers like libsaio.h on other headers?!
// Todo: don't include headers like boot.h on other headers, unless...!
// move keys to the headers of the files they're in, if they have it!?
#include "saio_internal.h" // the only one needed by boot.h it self, afaics.
// check header wrappers...
//#include "saio_internal.h" // the only one needed by boot.h it self, afaics.
#include "bootstruct.h"
/*
* Default names - these end with "Name" (easier to sort them).
*/
branches/azimutz/Chazi/i386/boot2/modules.h
44
55
66
7
8
9
710
811
912
10
11
12
1313
1414
1515
*
*/
#ifndef __BOOT_MODULES_H
#define __BOOT_MODULES_H
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#ifndef __BOOT_MODULES_H
#define __BOOT_MODULES_H
extern unsigned long long textAddress;
extern unsigned long long textSection;
branches/azimutz/Chazi/i386/boot2/drivers.c
3333
3434
3535
36
37
38
3639
37
38
3940
40
4141
4242
4343
#include <libkern/OSByteOrder.h>
#include <mach/machine.h>
//#include "bootstruct.h"
//#include "ramdisk.h"
#include "boot.h"
#include "sl.h"
#include "boot.h"
#include "bootstruct.h"
#include "xml.h"
//#include "ramdisk.h"
struct Module {
struct Module *nextModule;
branches/azimutz/Chazi/i386/boot2/mboot.c
33
44
55
6
7
8
6
97
10
8
119
1210
1311
......
354352
355353
356354
355
357356
358357
359358
*/
//#include "libsaio.h"
#include "libsa.h"
#include "memory.h"
//---
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "memory.h"
#include "mboot.h"
int multiboot_timeout=0;
kASCIIKeyMask = 0x7f
};
//Azi:reminder
// This is the meat of our implementation. It grabs the boot device from
// the multiboot_info and returns it as is. If it fails it returns
// BAD_BOOT_DEVICE. We can call an awful lot of libsa and libsaio but
branches/azimutz/Chazi/i386/boot2/gui.c
88
99
1010
11
1112
1213
1314
*
*/
#include "boot.h"
#include "gui.h"
#include "appleboot.h"
#include "vers.h"
branches/azimutz/Chazi/i386/boot2/gui.h
88
99
1010
11
12
13
1114
1215
1316
14
15
16
1717
1818
1919
*
*/
#ifndef __BOOT2_GUI_H
#define __BOOT2_GUI_H
#include "graphics.h"
#include "picopng.h"
#ifndef __BOOT2_GUI_H
#define __BOOT2_GUI_H
#define CHARACTERS_COUNT223
#define BOOT_NORMAL0
branches/azimutz/Chazi/i386/boot2/ramdisk.c
44
55
66
7
78
8
99
1010
1111
*
*/
//#include "bootstruct.h"
#include "boot.h"
#include "bootstruct.h"
#include "multiboot.h"
#include "ramdisk.h"
branches/azimutz/Chazi/i386/boot2/lzss.c
4040
4141
4242
43
43
44
4445
4546
4647
* DRI: Josh de Cesare
*/
#include <sl.h>
//#include <sl.h> // can't find this guy on the system; maybe we should stop looking for it there first!?
#include "sl.h" //Azi:???
#define N 4096 /* size of ring buffer - must be power of 2 */
#define F 18 /* upper limit for match_length */
branches/azimutz/Chazi/i386/boot2/options.c
2222
2323
2424
25
2526
2627
2728
* @APPLE_LICENSE_HEADER_END@
*/
#include "boot.h"
#include "fdisk.h"
#include "ramdisk.h"
#include "gui.h"
branches/azimutz/Chazi/i386/modules/KernelPatcher/kernel_patcher.c
33
44
55
6
7
86
7
98
109
1110
......
285284
286285
287286
288
287
289288
290289
291290
*
*/
#include "boot.h"
#include "bootstruct.h" // replaces libsaio.h.
//#include "libsaio.h"
#include "boot.h"
#include "kernel_patcher.h"
#include "platform.h"
#include "modules.h"
UInt32 jumpLocation = 0;
//UInt32 jumpLocation = 0; unused for now
if(symbol == 0 || symbol->addr == 0)
branches/azimutz/Chazi/i386/modules/KernelPatcher/kernel_patcher.h
33
44
55
6
7
8
69
710
811
9
10
11
1212
1313
1414
*
*/
#ifndef __BOOT2_KERNEL_PATCHER_H
#define __BOOT2_KERNEL_PATCHER_H
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#ifndef __BOOT2_KERNEL_PATCHER_H
#define __BOOT2_KERNEL_PATCHER_H
#define CPUID_MODEL_ANY0x00
#define CPUID_MODEL_UNKNOWN0x01
branches/azimutz/Chazi/i386/modules/HelloWorld/HelloWorld.c
66
77
88
9
109
1110
1211
//#include "libsaio.h"
#include "saio_internal.h"
#include "saio_types.h"
//---
#include "modules.h"

Archive Download the corresponding diff file

Revision: 515