Kent Brinkley wrote:
> What is the common_magic number used in for example in mips_m4k.h
I recommend using git grep:
$ git grep -n MIPSM4K_COMMON_MAGIC
mips_m4k.c:916: mips_m4k->common_magic = MIPSM4K_COMMON_MAGIC;
mips_m4k.c:1033: if (mips_m4k->common_magic != MIPSM4K_COMMON_MAGIC) {
mips_m4k.h:31:#define MIPSM4K_COMMON_MAGIC 0xB321B321
$
And then looking at those places in the source. The first is in
static int mips_m4k_init_arch_info() which initializes a struct
mips_m4k_common.
The second is in static int mips_m4k_verify_pointer() which uses this
magic value to verify that a particular pointer likely points to a
struct mips_m4k_common which was initialized by the first function.
I agree that this kind of self-verification is a bit unusual, but oh
well.
//Peter
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel