Chameleon

Chameleon Commit Details

Date:2010-10-27 10:01:27 (8 years 11 months ago)
Author:Azimutz
Commit:616
Parents: 615
Message:Doubling the size of memory allocated for the booter log. Check code comments for more info.
Changes:
M/trunk/i386/libsaio/console.c
M/trunk/i386/libsa/zalloc.c

File differences

trunk/i386/libsaio/console.c
5353
5454
5555
56
57
56
57
58
59
60
61
62
63
64
5865
5966
6067
bool gErrors;
/* Kabyl: BooterLog */
#define BOOTER_LOG_SIZE(64 * 1024)
#define SAFE_LOG_SIZE80
//Azi: Doubled log available size.
// 64kb are not enough to hold the full log while booting with -f argument (ignore caches).
// It also seems to fix some reported problems while booting with the mentioned argument.
// Note: 96kb are enough to hold full log, booting with -f; even so, this depends on how much
// we "play" at the boot prompt, with what patches we're playing and how much they print to the log,
// kexts loaded, etc...
// Please remove this comment when this gets checked by a "true" dev.
#define BOOTER_LOG_SIZE(128 * 1024)
#define SAFE_LOG_SIZE134
char *msgbuf = 0;
char *cursor = 0;
trunk/i386/libsa/zalloc.c
3030
3131
3232
33
3334
3435
35
36
3637
3738
3839
*/
#include "libsa.h"
//#include "saio_internal.h" - Azi: needed for ZDEBUG (printf)
#include "memory.h"
#define ZDEBUG 0
#define ZDEBUG 0 //Azi: booter doesn't load with this enabled; instant reboot at "boot1: ..."
#if ZDEBUG
int zout;

Archive Download the corresponding diff file

Revision: 616