From mboxrd@z Thu Jan 1 00:00:00 1970 From: lucio@proxima.alt.za (Lucio De Re) Date: Tue, 8 Mar 2011 11:45:12 +0200 Subject: [9fans] self modifying code in intel vga bios? In-Reply-To: <80ac49ab88c41d7cef9e96285eeb4c1b@gmx.de> References: <80ac49ab88c41d7cef9e96285eeb4c1b@gmx.de> Message-ID: <20110308094512.GC4355@fangle.proxima.alt.za> Topicbox-Message-UUID: b8c65e3e-ead6-11e9-9d60-3106f5b1d025 On Tue, Mar 08, 2011 at 10:24:48AM +0100, cinap_lenrek at gmx.de wrote: > > Fish- has catched this on a Intel(r)915GM/910ML/915MS Graphics Controller > with realemu: > > bad mem write c0c11 > bad memory access > 1d17b0 4a008800 00000002 00000000 0000a002 00009000 00005108 ac007bda 00007bc0 0000 0000 0000 c000 csZoPdI 61ed c6 MOV CS:[c11], $01 > You know it's a crappy architecture when even the manufacturer needs to use self-modifying code. I thought self-modifying code (and all its dangers) had gone out of fashion a few decades ago and more advanced architectures provided safer ways to provide equivalent functionality. Heavens, with variable length instructions, the types of bugs this can give rise to are positively frightening. A case of "clever but stoopid". ++L