1 ;; -----------------------------------------------------------------------
3 ;; Copyright 2007-2008 H. Peter Anvin - All Rights Reserved
5 ;; This program is free software; you can redistribute it and/or modify
6 ;; it under the terms of the GNU General Public License as published by
7 ;; the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ;; Boston MA 02111-1307, USA; either version 2 of the License, or
9 ;; (at your option) any later version; incorporated herein by reference.
11 ;; -----------------------------------------------------------------------
16 ;; Some final tidying before jumping to a kernel or bootsector
23 ; Shut down anything transient. *No segment assumptions*.
24 ; Can trash any registers.
29 ; Linux wants the floppy motor shut off before starting the kernel,
30 ; at least bootsect.S seems to imply so. If we don't load the floppy
31 ; driver, this is *definitely* so!
37 %if 0 ; This bug report has not been substantiated!
38 ; Vmware crashes if we scroll in the decompressor! Try to detect vmware
39 ; and if it is Vmware, clear the screen...
42 mov ecx, 10 ; Get version
48 mov ax,0x0003 ; Set mode (clear screen/home cursor)