This is an old revision of the document!
=== Week 2: Discuss TCP and memory changes, update jme driver === == TCP / memory topic == * Current heap size is fixed at 128K. * Although it only uses 128K, all-drivers image already overlapped with heap address. * Trying to figure out a way to obtain more memory, and report it to OS. * See if it is possiable to know how much heap size we can use out of code and stack. == jme driver == * From Joshua Oreman * jme_check_link(struct net_device *netdev, int testonly)\\ * In this function, I believe the code and string data used in constructing linkmsg will make it into even non-debug versions of the executable. If that's true it would be better if you could perform all the manipulations in the final DBG() line, using the ?: operator and such. It's possible the compiler is clever enough to know what strcat() does and see that linkmsg[] is not used in non-debug, though, so this may be moot. * From Michael Brown * if (memcmp(addr, netdev->hw_addr, ETH_ALEN)) { * No need for this compare; just always write the MAC address. (This code will fail if you set the MAC to a non-default value, then try to set it back.)