Chameleon

Chameleon Commit Details

Date:2017-03-23 01:15:34 (3 years 2 months ago)
Author:ErmaC
Commit:2851
Parents: 2850
Message:Handle macro definition for boot.c/cpu.c/hda.c from config.h
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/hda.c
M/branches/ErmaC/Enoch/i386/boot2/config.h
M/branches/ErmaC/Enoch/i386/boot2/boot.c
M/branches/ErmaC/Enoch/i386/libsaio/cpu.c

File differences

branches/ErmaC/Enoch/i386/libsaio/hda.c
6060
6161
6262
63
6364
6465
6566
......
7576
7677
7778
78
79
80
81
8279
8380
8481
8582
8683
8784
88
89
90
91
9285
9386
9487
*
******************************************************************************/
#include "config.h"
#include "boot.h"
#include "bootstruct.h"
#include "cpu.h"
#define HEADER __FILE__ " [" TOSTRING(__LINE__) "]: "
#ifndef DEBUG_HDA
#define DEBUG_HDA 0
#endif
#if DEBUG_HDA
#define DBG(x...) verbose(x)
#else
#define DBG(x...)
#endif
#ifndef DEBUG_CODEC
#define DEBUG_CODEC 0
#endif
#if DEBUG_CODEC
#define CDBG(x...) verbose(x)
#else
branches/ErmaC/Enoch/i386/libsaio/cpu.c
44
55
66
7
78
89
910
1011
1112
1213
13
14
15
16
1714
1815
1916
* Bronya: 2015 Improve AMD support, cleanup and bugfix
*/
#include "config.h"
#include "libsaio.h"
#include "platform.h"
#include "cpu.h"
#include "bootstruct.h"
#include "boot.h"
#ifndef DEBUG_CPU
#define DEBUG_CPU 0
#endif
#if DEBUG_CPU
#define DBG(x...)printf(x)
#else
branches/ErmaC/Enoch/i386/boot2/config.h
99
1010
1111
12
13
14
1215
16
17
18
19
20
21
22
1323
#ifndef config_h
#define config_h
////////////////////////////////// boot.c
#define DEBUG_BOOT2 0
#define DEBUG_INTERRUPTS 0
////////////////////////////////// cpu.c
#define DEBUG_CPU 0
////////////////////////////////// hda.c
#define DEBUG_HDA 0
#define DEBUG_CODEC 0
#endif /* config_h */
branches/ErmaC/Enoch/i386/boot2/boot.c
4545
4646
4747
48
4849
4950
5051
......
5657
5758
5859
59
60
61
6260
63
64
65
66
6761
6862
6963
* Reworked again by Curtis Galloway (galloway@NeXT.com)
*/
#include "config.h"
#include "boot.h"
#include "bootstruct.h"
#include "fake_efi.h"
#include "modules.h"
#include "device_tree.h"
#ifndef DEBUG_BOOT2
#define DEBUG_BOOT2 0
#endif
#ifndef DEBUG_INTERRUPTS
#define DEBUG_INTERRUPTS 0
#endif
#if DEBUG_BOOT2
#define DBG(x...)printf(x)
#else

Archive Download the corresponding diff file

Revision: 2851