FreeCalypso > hg > freecalypso-tools
view loadtools/scripts/fic.init @ 965:2969032bdfac
fcup-smsend[mult]: fix buglet in K&R C NULL pointer passing
The only 100% safe way to pass a NULL pointer as a function argument
in K&R C is to cast 0 to a pointer type; failing to do so may cause
mysterious bugs (invalid stack frames or garbage in argument registers)
on 64-bit machines. This issue has already been fixed in most of
FC host tools, but I just found some missed spots: passing of NULL UDH
to PDU encoding functions in fcup-smsend[mult] in the case of single
(not concatenated) SMS.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 01 Sep 2023 07:33:51 +0000 |
parents | 42ba9f015d4c |
children |
line wrap: on
line source
# Openmoko's GTA01/02 modem design is based on earlier Calypso phone or modem # designs by FIC, going back to 2004 according to dated comments in OM's FLUID # devices.txt file, and that parent design originally supported bigger flash # chips than the ones used in mass-produced GTA01/02 units. The latter have # Samsung K5A3240CTM or K5A3281CTM chips populated in them (4 MiB of flash, # 512 KiB or 1 MiB of RAM), but the PCB footprint actually fits a 16 MiB flash # chip (Spansion S71PL129J), with the second flash chip select wired to Calypso # nCS4. That devices.txt file also indicates that this nCS4 wiring was used # in FIC's 2004 design as well. # # This init script sets up Calypso MEMIF to access this maximum possibility of # 16 MiB of flash (in this particular wiring) or any subset thereof; it may be # needed if some early GTA01 prototype devices still had the bigger flash in # them or if someone finds an earlier (pre-Openmoko) FIC phone or modem. w16 fffffb00 00A4 w16 fffffb02 00A4 w16 fffffb0a 00A4 w16 fffef006 0008