[openfirmware] [commit] r1790 - in cpu/x86/pc/olpc: . via
repository service
svn at openfirmware.info
Wed Apr 21 10:11:30 CEST 2010
Author: wmb
Date: Wed Apr 21 10:11:29 2010
New Revision: 1790
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1790
Log:
Force serial numbers to upper case, both when they are created in manufacturing,
and when they are used in the security code.
Modified:
cpu/x86/pc/olpc/security.fth
cpu/x86/pc/olpc/via/assy.fth
cpu/x86/pc/olpc/via/smt.fth
Modified: cpu/x86/pc/olpc/security.fth
==============================================================================
--- cpu/x86/pc/olpc/security.fth Fri Apr 16 21:40:30 2010 (r1789)
+++ cpu/x86/pc/olpc/security.fth Wed Apr 21 10:11:29 2010 (r1790)
@@ -376,6 +376,7 @@
2drop true exit
then ( adr len )
machine-id-buf swap move
+ machine-id-buf d# 11 upper
[char] : machine-id-buf d# 11 + c!
Modified: cpu/x86/pc/olpc/via/assy.fth
==============================================================================
--- cpu/x86/pc/olpc/via/assy.fth Fri Apr 16 21:40:30 2010 (r1789)
+++ cpu/x86/pc/olpc/via/assy.fth Wed Apr 21 10:11:29 2010 (r1790)
@@ -99,6 +99,7 @@
then
sn-buf 2+ sn-buf 1+ d# 11 move \ Elide the T
d# 11 sn-buf c!
+ sn-buf count upper
true
;
Modified: cpu/x86/pc/olpc/via/smt.fth
==============================================================================
--- cpu/x86/pc/olpc/via/smt.fth Fri Apr 16 21:40:30 2010 (r1789)
+++ cpu/x86/pc/olpc/via/smt.fth Wed Apr 21 10:11:29 2010 (r1790)
@@ -92,6 +92,7 @@
d# 14 <> if
" Wrong length (must be 14 characters), try again" .problem
else
+ bn-buf count upper
bn-buf 1+ c@ [char] Q = if exit then
" Must begin with Q, try again" .problem
then
More information about the openfirmware
mailing list