bootinfo64.c (5d1531d9d4e7d1b1b706ab23ac3f864416e87522) bootinfo64.c (fc352701ff3aeb0af22c0da17c4194cf1f8ad5d0)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 124 unchanged lines hidden (view full) ---

133 if (addr < (xp->f_addr + xp->f_size))
134 addr = xp->f_addr + xp->f_size;
135 }
136 /* pad to a page boundary */
137 addr = roundup(addr, PAGE_SIZE);
138
139 /* copy our environment */
140 envp = addr;
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 124 unchanged lines hidden (view full) ---

133 if (addr < (xp->f_addr + xp->f_size))
134 addr = xp->f_addr + xp->f_size;
135 }
136 /* pad to a page boundary */
137 addr = roundup(addr, PAGE_SIZE);
138
139 /* copy our environment */
140 envp = addr;
141 addr = bi_copyenv(addr);
141 addr = md_copyenv(addr);
142
143 /* pad to a page boundary */
144 addr = roundup(addr, PAGE_SIZE);
145
146 kfp = file_findfile(NULL, "elf kernel");
147 if (kfp == NULL)
148 kfp = file_findfile(NULL, "elf64 kernel");
149 if (kfp == NULL)

--- 22 unchanged lines hidden ---
142
143 /* pad to a page boundary */
144 addr = roundup(addr, PAGE_SIZE);
145
146 kfp = file_findfile(NULL, "elf kernel");
147 if (kfp == NULL)
148 kfp = file_findfile(NULL, "elf64 kernel");
149 if (kfp == NULL)

--- 22 unchanged lines hidden ---