Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9e7fa1a87 |
@@ -93,11 +93,6 @@ warn()
|
||||
while getopts '' opt; do usage; done
|
||||
shift `expr $OPTIND - 1`
|
||||
|
||||
if [ ! -f /CD ]
|
||||
then echo "Please run setup from the CD, not from a live system."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$USER" != root ]
|
||||
then echo "Please run setup as root."
|
||||
exit 1
|
||||
|
||||
@@ -307,7 +307,7 @@ PRIVATE void m_init()
|
||||
if (OK != (s=sys_getmachine(&machine))) {
|
||||
panic("MEM","Couldn't get machine information.",s);
|
||||
}
|
||||
if (! machine.protected) {
|
||||
if (! machine.prot) {
|
||||
m_geom[MEM_DEV].dv_size = cvul64(0x100000); /* 1M for 8086 systems */
|
||||
} else {
|
||||
#if _WORD_SIZE == 2
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#else
|
||||
/* Debugging enabled -- verify assertions at run time. */
|
||||
#ifdef _ANSI
|
||||
#define __str(x) # x
|
||||
#define __xstr(x) __str(x)
|
||||
#define __makestr(x) # x
|
||||
#define __xstr(x) __makestr(x)
|
||||
|
||||
_PROTOTYPE( void __bad_assertion, (const char *_mess) );
|
||||
#define assert(expr) ((expr)? (void)0 : \
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/* Minix release and version numbers. */
|
||||
#define OS_RELEASE "3"
|
||||
#define OS_VERSION "1.2"
|
||||
#define OS_VERSION "1.2a"
|
||||
|
||||
/* This file sets configuration parameters for the MINIX kernel, FS, and PM.
|
||||
* It is divided up into two main sections. The first section contains
|
||||
|
||||
@@ -130,7 +130,7 @@ struct machine {
|
||||
int pc_at;
|
||||
int ps_mca;
|
||||
int processor;
|
||||
int protected;
|
||||
int prot;
|
||||
int vdu_ega;
|
||||
int vdu_vga;
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@ _PROTOTYPE( int getloadavg, (double *, int) );
|
||||
#endif
|
||||
|
||||
#ifdef _MINIX
|
||||
_PROTOTYPE( int putenv, (const char *_name) );
|
||||
_PROTOTYPE( int putenv, (char *_name) );
|
||||
_PROTOTYPE( int setenv, (const char *name, const char *val, const int f));
|
||||
|
||||
/* According to POSIX, getopt should be in unistd.h. What do we do with
|
||||
|
||||
@@ -49,7 +49,7 @@ int mine;
|
||||
|
||||
intr_disable();
|
||||
|
||||
if (machine.protected) {
|
||||
if (machine.prot) {
|
||||
/* The AT and newer PS/2 have two interrupt controllers, one master,
|
||||
* one slaved at IRQ 2. (We don't have to deal with the PC that
|
||||
* has just one controller, because it must run in real mode.)
|
||||
|
||||
@@ -178,7 +178,7 @@ PRIVATE void announce(void)
|
||||
#if (CHIP == INTEL)
|
||||
/* Real mode, or 16/32-bit protected mode? */
|
||||
kprintf("Executing in %s mode.\n\n",
|
||||
machine.protected ? "32-bit protected" : "real");
|
||||
machine.prot ? "32-bit protected" : "real");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ U16_t seg;
|
||||
phys_bytes base;
|
||||
struct segdesc_s *segdp;
|
||||
|
||||
if (! machine.protected) {
|
||||
if (! machine.prot) {
|
||||
base = hclick_to_physb(seg);
|
||||
} else {
|
||||
segdp = &gdt[seg >> 3];
|
||||
@@ -286,7 +286,7 @@ phys_bytes phys;
|
||||
* address, for use by a driver doing memory I/O in the A0000 - DFFFF range.
|
||||
*/
|
||||
#if _WORD_SIZE == 2
|
||||
if (! machine.protected) {
|
||||
if (! machine.prot) {
|
||||
*seg = phys / HCLICK_SIZE;
|
||||
*off = phys % HCLICK_SIZE;
|
||||
} else {
|
||||
@@ -350,7 +350,7 @@ register struct proc *rp;
|
||||
phys_bytes data_bytes;
|
||||
int privilege;
|
||||
|
||||
if (machine.protected) {
|
||||
if (machine.prot) {
|
||||
data_bytes = (phys_bytes) (rp->p_memmap[S].mem_vir +
|
||||
rp->p_memmap[S].mem_len) << CLICK_SHIFT;
|
||||
if (rp->p_memmap[T].mem_len == 0)
|
||||
|
||||
@@ -37,7 +37,7 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */
|
||||
* done below.
|
||||
*/
|
||||
#if _WORD_SIZE != 2
|
||||
machine.protected = 1;
|
||||
machine.prot = 1;
|
||||
#endif
|
||||
|
||||
/* Record where the kernel and the monitor are. */
|
||||
@@ -75,9 +75,9 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */
|
||||
*/
|
||||
machine.processor=atoi(get_value(params, "processor"));
|
||||
#if _WORD_SIZE == 2
|
||||
machine.protected = machine.processor >= 286;
|
||||
machine.prot = machine.processor >= 286;
|
||||
#endif
|
||||
if (! machine.protected) mon_return = 0;
|
||||
if (! machine.prot) mon_return = 0;
|
||||
|
||||
/* XT, AT or MCA bus? */
|
||||
value = get_value(params, "bus");
|
||||
|
||||
@@ -44,7 +44,7 @@ register message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
if (index < 0) return(ENOSPC);
|
||||
|
||||
if (! machine.protected) {
|
||||
if (! machine.prot) {
|
||||
selector = phys / HCLICK_SIZE;
|
||||
offset = phys % HCLICK_SIZE;
|
||||
result = OK;
|
||||
|
||||
@@ -14,7 +14,7 @@ extern _CONST char ***_penviron;
|
||||
|
||||
int
|
||||
putenv(name)
|
||||
_CONST char *name;
|
||||
char *name;
|
||||
{
|
||||
register _CONST char **v = *_penviron;
|
||||
register char *r;
|
||||
|
||||
@@ -292,7 +292,7 @@ PUBLIC void kenv_dmp()
|
||||
printf("- pc_at: %3d\n", machine.pc_at);
|
||||
printf("- ps_mca: %3d\n", machine.ps_mca);
|
||||
printf("- processor: %3d\n", machine.processor);
|
||||
printf("- protected: %3d\n", machine.protected);
|
||||
printf("- protected: %3d\n", machine.prot);
|
||||
printf("- vdu_ega: %3d\n", machine.vdu_ega);
|
||||
printf("- vdu_vga: %3d\n\n", machine.vdu_vga);
|
||||
printf("Kernel info structure:\n");
|
||||
|
||||
@@ -47,8 +47,8 @@ disable=inet
|
||||
bios_wini=yes
|
||||
bios_remap_first=1
|
||||
ramimagedev=c0d7p0s0
|
||||
bootbig(1, Regular MINIX 3) { image=/boot/image/image; boot }
|
||||
bootsmall(2, Small MINIX 3 (<16MB)) {image=/boot/image/image_small; boot }
|
||||
bootbig(1, Regular MINIX 3) { image=/boot/image_big; boot }
|
||||
bootsmall(2, Small MINIX 3 (<16MB)) {image=/boot/image_small; boot }
|
||||
main() { trap 10000 boot ; menu; }
|
||||
save' | $RELEASEDIR/usr/bin/edparams $TMPDISK3
|
||||
|
||||
@@ -64,7 +64,6 @@ usb_root_changes()
|
||||
$RELEASEDIR/usr/mdec/bootblock boot/boot
|
||||
echo \
|
||||
'bios_wini=yes
|
||||
disable=inet
|
||||
bios_remap_first=1
|
||||
rootdev=c0d7p0s0
|
||||
save' | $RELEASEDIR/usr/bin/edparams $TMPDISK3
|
||||
@@ -99,7 +98,7 @@ COPY=0
|
||||
CVSTAG=HEAD
|
||||
PACKAGES=1
|
||||
|
||||
while getopts "pchu?" c
|
||||
while getopts "pchu?r:" c
|
||||
do
|
||||
case "$c" in
|
||||
\?)
|
||||
@@ -304,8 +303,10 @@ find $RELEASEDIR/usr/src/commands -name build | xargs chmod 755
|
||||
# Bug tracking system not for on cd
|
||||
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
||||
|
||||
# Make sure the CD knows it's a CD
|
||||
date >$RELEASEDIR/CD
|
||||
# Make sure the CD knows it's a CD, unless it's not
|
||||
if [ "$USB" -eq 0 ]
|
||||
then date >$RELEASEDIR/CD
|
||||
fi
|
||||
echo " * Chroot build"
|
||||
chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1
|
||||
echo " * Chroot build done"
|
||||
|
||||
Reference in New Issue
Block a user