Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / i386 / boot / kzipboot / tail.S
1 /*
2  * Boot unpacker startup routine.
3  * Copyright (C) Serge Vakulenko
4  */
5         .text
6         .globl  tail
7 tail:
8         cli                             # disable interrupts
9         pushl   4(%esp)                 # pass howto arg
10         call    _boot                   # unpack the kernel image
11         popl    %eax                    # discard howto arg
12         ljmp    $CSEG, $KADDR           # jump to unpacked kernel