Chameleon

Chameleon Commit Details

Date:2012-10-30 00:28:57 (6 years 7 months ago)
Author:armel cadet-petit
Commit:2113
Parents: 2112
Message:updated boot.c
Changes:
M/branches/cparm/i386/boot2/boot.c

File differences

branches/cparm/i386/boot2/boot.c
112112
113113
114114
115
115
116116
117
118
119
120
117
118
119
120
121121
122122
123123
static void zeroBSS(void)
{
#if (defined(__clang__)) /* WARNING : must be first, __GNUC__ seems to be also defined */
#if (defined(__clang__)) && (defined(__XCODE45_HACK__))/* WARNING : must be first, __GNUC__ seems to be also defined */
extern char bss_start __asm("section$start$__DATA$__bss");
extern char bss_end __asm("section$end$__DATA$__bss");
extern char common_start __asm("section$start$__DATA$__common");
extern char common_end __asm("section$end$__DATA$__common");
extern int bss_start __asm("section$start$__DATA$__bss");
extern int bss_end __asm("section$end$__DATA$__bss");
extern int common_start __asm("section$start$__DATA$__common");
extern int common_end __asm("section$end$__DATA$__common");
bzero(&bss_start, (&bss_end - &bss_start));
bzero(&common_start, (&common_end - &common_start));

Archive Download the corresponding diff file

Revision: 2113