Subversion Repositories Kolibri OS

Rev

Rev 851 | Rev 855 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. format MS COFF
  3.  
  4.  
  5. include '../macros.inc'
  6.  
  7. $Revision: 849 $
  8.  
  9. __REV__ = __REV
  10.  
  11. include "../proc32.inc"
  12. include "../kglobals.inc"
  13. include "../lang.inc"
  14.  
  15. CR0_PE         equ    0x00000001   ;protected mode
  16. CR0_WP         equ    0x00010000   ;write protect
  17. CR0_PG         equ    0x80000000   ;paging
  18.  
  19.  
  20. public _enter_bootscreen
  21. public _leave_bootscreen
  22.  
  23. public _bx_from_load
  24.  
  25. extrn __setvars
  26.  
  27. section '.boot' code readable align 16
  28.  
  29.  
  30. _enter_bootscreen:
  31.  
  32. org 0
  33.  
  34. use16
  35.            mov eax, cr0
  36.            and eax, not 0x80000001
  37.            mov cr0, eax
  38.            jmp far 0x1000:start_of_code
  39.  
  40. version db    'Kolibri OS  version 0.7.1.0      ',13,10,13,10,0
  41.  
  42. include "bootstr.inc"     ; language-independent boot messages
  43. include "preboot.inc"
  44.  
  45. if lang eq en
  46. include "booteng.inc"     ; english system boot messages
  47. else if lang eq ru
  48. include "bootru.inc"      ; russian system boot messages
  49. include "ru.inc"          ; Russian font
  50. else if lang eq et
  51. include "bootet.inc"      ; estonian system boot messages
  52. include "et.inc"          ; Estonian font
  53. else
  54. include "bootge.inc"      ; german system boot messages
  55. end if
  56.  
  57. include "../data16.inc"
  58.  
  59. include "bootcode.inc"    ; 16 bit system boot code
  60. include "../bus/pci/pci16.inc"
  61. include "../detect/biosdisk.inc"
  62.  
  63. ;include "boot/shutdown.inc" ; shutdown or restart
  64.  
  65.            cli
  66.  
  67.            mov eax, cr0
  68.            or eax, CR0_PG+CR0_WP+CR0_PE
  69.            mov cr0, eax
  70.  
  71.            jmp pword 0x08:__setvars
  72.  
  73. align 4
  74. _leave_bootscreen:
  75.