Subversion Repositories Kolibri OS

Rev

Rev 854 | 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. public _enter_bootscreen
  16. public _leave_bootscreen
  17.  
  18. public _bx_from_load
  19.  
  20. extrn __setvars
  21.  
  22. section '.boot' code readable align 16
  23.  
  24.  
  25. _enter_bootscreen:
  26.  
  27. org 0
  28.  
  29. use16
  30.            mov eax, cr0
  31.            and eax, not 0x80000001
  32.            mov cr0, eax
  33.            jmp far 0x1000:start_of_code
  34.  
  35. version db    'Kolibri OS  version 0.7.1.0      ',13,10,13,10,0
  36.  
  37. include "bootstr.inc"     ; language-independent boot messages
  38. include "preboot.inc"
  39.  
  40. if lang eq en
  41. include "booteng.inc"     ; english system boot messages
  42. else if lang eq ru
  43. include "bootru.inc"      ; russian system boot messages
  44. include "ru.inc"          ; Russian font
  45. else if lang eq et
  46. include "bootet.inc"      ; estonian system boot messages
  47. include "et.inc"          ; Estonian font
  48. else
  49. include "bootge.inc"      ; german system boot messages
  50. end if
  51.  
  52. include "../data16.inc"
  53.  
  54. include "bootcode.inc"    ; 16 bit system boot code
  55. include "../bus/pci/pci16.inc"
  56. include "../detect/biosdisk.inc"
  57.  
  58. ;include "boot/shutdown.inc" ; shutdown or restart
  59.  
  60.            cli
  61.  
  62.            mov eax, cr0
  63.            or eax, 0x80000001
  64.            mov cr0, eax
  65.  
  66.            jmp pword 0x08:__setvars
  67.  
  68. align 4
  69. _leave_bootscreen:
  70.