1*58a2b000SEvgeniy Ivanov/* $NetBSD: label.S,v 1.3 2005/12/11 12:17:48 christos Exp $ */ 2*58a2b000SEvgeniy Ivanov 3*58a2b000SEvgeniy Ivanov#include <machine/asm.h> 4*58a2b000SEvgeniy Ivanov 5*58a2b000SEvgeniy Ivanov/* 6*58a2b000SEvgeniy Ivanov * This fills in the space taken by the NetBSD disklabel in the first 7*58a2b000SEvgeniy Ivanov * NetBSD partition on the disk. 8*58a2b000SEvgeniy Ivanov * However it is possible that we are booting from a subsequent 9*58a2b000SEvgeniy Ivanov * NetBSD partition, so must not access the disklabel in this space. 10*58a2b000SEvgeniy Ivanov * 11*58a2b000SEvgeniy Ivanov * Recent kernels (but not the disklabel program) write the label to 12*58a2b000SEvgeniy Ivanov * all NetBSD MBR partitions (including extended ones). 13*58a2b000SEvgeniy Ivanov * So we make it available to boot1(). 14*58a2b000SEvgeniy Ivanov */ 15*58a2b000SEvgeniy Ivanov 16*58a2b000SEvgeniy Ivanov .text 17*58a2b000SEvgeniy Ivanov .global _C_LABEL(ptn_disklabel) 18*58a2b000SEvgeniy Ivanov_C_LABEL(ptn_disklabel): 19*58a2b000SEvgeniy Ivanov .fill 512 20