summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/liloldr/lilobsect.s
blob: 0c81f5ff1ba307e272992e74649981e456676679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Copyright (c) 2000 Jonathan Lemon
# All rights reserved.
#
# Redistribution and use in source and binary forms are freely
# permitted provided that the above copyright notice and this
# paragraph and the following disclaimer are duplicated in all
# such forms.
#
# This software is provided "AS IS" and without any express or
# implied warranties, including, without limitation, the implied
# warranties of merchantability and fitness for a particular
# purpose.
#
# $FreeBSD$

#
# LILO constants
#
		.set SETUP_OFF,497		# offset of setup table
		.set SETUP_SECTORS,4		# historical

		.globl start
		.org 0x0, 0x0
#
# Create an empty bootblock, but fill in the setup table.
#
bootsect:
		.org SETUP_OFF,0x00
#
# bootblock setup for LILO
#
		.byte SETUP_SECTORS		# size of setup code in sectors
		.word 0x00			# read only root
		.word LOADER_SIZE		# size of kernel in 16B units
		.word 0x00			# not used (swap dev?)
		.word 0x00			# ram disk size in KB
		.word 0xffff			# video mode (80x25)
		.byte 0x00			# root dev major number
		.byte 0x00			# root dev minor number
		.word 0xaa55			# Magic number
OpenPOWER on IntegriCloud