Date: Thu, 6 Sep 2018 12:45:04 -0700 From: Craig Leres <leres@freebsd.org> To: lev@FreeBSD.org, gljennjohn@gmail.com Cc: freebsd-hackers@freebsd.org, Allan Jude <allanjude@freebsd.org>, Jung-uk Kim <jkim@FreeBSD.org> Subject: Re: Is here way to have 9600+ serial console and see boot0 message? Message-ID: <264c2f26-dda5-129c-5cab-513bb1cb4132@freebsd.org> In-Reply-To: <7dd2224d-f109-c585-5ee9-a1cc2c09d20e@FreeBSD.org> References: <ac3fe50c-d9a0-96ba-28f0-84ffca8e4cd3@FreeBSD.org> <14cd401a-660c-1a3a-8d80-677a42727146@freebsd.org> <0bc33818-641c-07db-194b-66fd1eb30c55@FreeBSD.org> <36485aef-0fdd-bcb1-993e-e334a1cd81ab@FreeBSD.org> <f718fbf2-4433-f9be-7ce2-24a91f78c6cb@FreeBSD.org> <20180906191109.49f9d0ab@ernst.home> <7dd2224d-f109-c585-5ee9-a1cc2c09d20e@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/6/18 8:17 AM, Lev Serebryakov wrote: > Nope. If BOOT_BOOT0_COMCONSOLE_SPEED defined, it is used as-is. If it > is not defined it is derived from BOOT_COMCONSOLE_SPEED. So, defining it > to "0" should work. And disassembling boot0sio confirms it. > > .if !defined(BOOT_BOOT0_COMCONSOLE_SPEED) > BOOT_COMCONSOLE_SPEED?= 9600 > .if ${BOOT_COMCONSOLE_SPEED} == 9600 > BOOT_BOOT0_COMCONSOLE_SPEED= "7 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 4800 > BOOT_BOOT0_COMCONSOLE_SPEED= "6 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 2400 > BOOT_BOOT0_COMCONSOLE_SPEED= "5 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 1200 > BOOT_BOOT0_COMCONSOLE_SPEED= "4 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 600 > BOOT_BOOT0_COMCONSOLE_SPEED= "3 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 300 > BOOT_BOOT0_COMCONSOLE_SPEED= "2 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 150 > BOOT_BOOT0_COMCONSOLE_SPEED= "1 << 5 + 3" > .elif ${BOOT_COMCONSOLE_SPEED} == 110 > BOOT_BOOT0_COMCONSOLE_SPEED= "0 << 5 + 3" > .else > BOOT_BOOT0_COMCONSOLE_SPEED= "7 << 5 + 3" > .endif > .endif Maybe I don't understand what you're saying but I don't think defining to "0" is the same as not defining. Craig hot 84 % cat c.c #include <stdio.h> #include <stdlib.h> int main(int, char **); #define FOO #define BAR 0 #define BLETCH 1 int main(int argc, char **argv) { #ifdef FOO printf("#ifdef FOO\n"); #endif #if defined(FOO) printf("#if defined(FOO)\n"); #endif #ifdef BAR printf("#ifdef BAR\n"); #endif #if defined(BAR) printf("#if defined(BAR)\n"); #endif #ifdef BLETCH printf("#ifdef BLETCH\n"); #endif #if defined(BLETCH) printf("#if defined(BLETCH)\n"); #endif #ifdef FNORD printf("#ifdef FNORD\n"); #endif #if defined(FNORD) printf("#if defined(FNORD)\n"); #endif exit(0); } hot 85 % cc c.c && ./a.out #ifdef FOO #if defined(FOO) #ifdef BAR #if defined(BAR) #ifdef BLETCH #if defined(BLETCH)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?264c2f26-dda5-129c-5cab-513bb1cb4132>