Changes to make __REV__ constant at any place in kernel

Output SVN revision number in boot screen

git-svn-id: svn://kolibrios.org@426 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld)
2007-03-22 01:09:49 +00:00
parent 21e4bc0233
commit 6f7428a7e4
5 changed files with 145 additions and 96 deletions

View File

@@ -10,15 +10,11 @@
;; Compile with last version FASM
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
_REV_ = 0
macro $Revision a {
match =: Num =$,a \{
if _REV_ < Num
_REV_ = Num
end if
\}
}
include 'macros.inc'
$Revision$
include "proc32.inc"
include "kglobals.inc"
include "lang.inc"
@@ -5112,4 +5108,7 @@ endofcode:
IncludeUGlobals
uglobals_size = $ - endofcode
diff16 "end of kernel code",0,$
diff10 "revision",0,_REV_
__REV__ = __REV
diff10 "revision",0,__REV__