📄 monitor.8
字号:
(boot)178 2559 A2762(})S6984 V1440(Kernel)S1746(selecting)S2135(functions)S2540(only)S2749(add)S2925(new)S3124(options)S3451(to)S3561(this)S3738(set,)S3907(but)S4067(if)S(you)150 4161 A4343(de\256ne)S4621(a)S4698(two)S4881(argument)S7104 V1440(function)S(yourself)330 1804 A2163(then)S2365(the)S(above)240 2517 A2786(one)S2960(is)S3056(no)S(longer)257 3185 A3471(shown,)S3787(allowing)S(you)150 4167 A4345(to)S4451(customize)S4887(the)S5038(menu)S7224 V1440(completely.)S1962(Your)S2194(\256rst)S2376(function)S(de\256nition)385 2736 A(should)267 3146 A3438(therefore)S3828(be)S3948(one)S4118(that)S4294(starts)S4532(Minix.)S7392 V1440(Menu)S1702(entries)S1999(are)S2151(shown)S2441(in)S2547(the)S2699(same)S2935(order)S3177(as)S10 B3290(set)S10 R3437(shows)S3717(them.)S3997(If)S(you)150 4094 A(don't)212 4273 A4514(like)S4694(the)S4846(order)S5088(then)S7512 V(you)150 1440 A1615(have)S1830(to)S1933(unset)S2170(the)S2318(functions)S2717(and)S2887(retype)S3164(them)S3390(in)S3493(the)S3641(proper)S3929(order.)S7903 V720(Page)S941(3)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 4 4BP/slant 0 def/height 0 def480 V10 R720(MONITOR)S1199(\()S1241(8)S1299(\))S2696(Eighth)S(Edition)296 2989 A4648(MONITOR)S5127(\()S5169(8)S5227(\))S960 V1440(If)S(you)150 1533 A1708(type)S1906(a)S1976(key)S2146(then)S2344(a)S2414(scheduled)S2841(trap)S3023(is)S(killed)229 3115 A3370(and)S3541(the)S3690(appropriate)S4175(menu)S4424(function)S4785(is)S4878(executed.)S1080 V1440(If)S(you)150 1534 A1710(need)S1926(more)S2159(time)S2364(to)S(choose)279 2468 A2773(then)S2972(hit)S3104(the)S(spacebar.)378 3253 A3682(A)S3780(key)S3950(not)S4103(on)S4228(the)S4376(menu)S4624(also)S(kills)173 4811 A5009(a)S5079(trap,)S1200 V1440(but)S1593(does)S1802(nothing)S2133(more.)S1368 V10 B1080(save)S1488 V10 R1440(Save)S1661(environment.)S1608 V1440(This)S(will)157 1667 A1872(save)S2099(all)S2248(the)S2419(environment)S2975(variables)S3387(and)S3580(functions)S4002(with)S(nondefault)430 4229 A4707(values)S5012(to)S5138(the)S1728 V1440(parameter)S1873(sector)S2143(\(the)S(second)279 2329 A2637(sector)S2907(on)S3036(the)S(boot)178 3188 A3395(device\),)S3746(so)S3864(they)S4066(are)S4219(automatically)S4796(set)S4937(the)S5088(next)S1848 V1440(time)S(you)150 1644 A(boot)178 1819 A2022(the)S2170(monitor.)S2016 V10 B1080(set)S2136 V10 R1440(Show)S1694(environment.)S2256 V1440(Show)S1694(the)S1842(current)S2153(values)S2435(of)S2544(the)S2692(environment)S3226(variables)S3616(and)S3787(functions.)S4237(Default)S4566(values)S4849(are)S4999(shown)S2376 V1440(between)S1801(parentheses)S2296(to)S(distinguish)440 2399 A2864(them)S3090(from)S3311(values)S3593(that)S3769(were)S(explicitly)380 3991 A4396(set.)S2544 V10 B1080(trap)S10 I1290(msec)S(command)391 1517 A2664 V10 R1440(Schedule)S1834(command.)S2784 V1440(Schedules)S1875(a)S1947(command)S2371(to)S2477(be)S2600(executed)S2986(after)S10 I3200(msec)S10 R(milliseconds.)533 3430 A4016(Only)S4245(the)S4396(monitor)S4742(mode)S(cannot)268 4993 A2904 V1440(be)S1560(interrupted,)S2052(a)S2122(scheduled)S2549(trap)S2731(is)S(killed)229 2823 A3077(when)S3320(the)S3468(prompt)S3783(is)S3875(printed.)S4235(Example:)S3072 V1800(main\(\))S2094({trap)S(10000)250 2324 A(boot;)206 2599 A2830(menu})S3240 V1440(This)S1644(gives)S(you)150 1881 A2056(10)S(seconds)318 2181 A2524(to)S(choose)279 2627 A2931(a)S3001(menu)S3249(option)S3530(before)S3813(Minix)S4083(is)S(booted.)298 4175 A3408 V10 B1080(unset)S10 I1335(name)S10 R(...)75 1578 A3528 V1440(Unset)S1700(environment)S2233(variables.)S3648 V1440(Removes)S1845(the)S1999(named)S2298(variables)S2694(and)S2871(functions)S3277(from)S3505(the)S3660(environment,)S4225(and)S4402(sets)S4585(special)S4897(variables)S3768 V1440(back)S1656(to)S1760(their)S1971(default)S2277(values.)S2610(This)S2815(is)S2908(also)S3096(the)S3245(only)S3449(way)S3643(to)S3747(remove)S4075(the)S4223("device)S4552(name)S4795(translation")S3888 V1440(property)S1806(from)S2027(a)S2097(variable.)S4056 V10 B1080(exit)S4176 V10 R1440(Exit)S1633(the)S1781(monitor)S4296 V(Reboot)290 1440 A1755(the)S1903(machine,)S2294(exit)S2470(to)S2573(Minix)S2843(or)S2952(exit)S3128(to)S3231(DOS)S3458(as)S3567(appropriate.)S4464 V9 R720(D)S722(DE)S790(EV)S848(VI)S916(IC)S949(CE)S1011(ES)S1069(S)S4584 V10 R1080(The)S1263(Minix)S1534(kernel)S1812(can't)S2040(do)S2166(anything)S2543(with)S2748(device)S3037(names,)S3345(so)S3460(they)S3659(have)S3875(to)S3979(be)S4101(translated)S4520(to)S4625(device)S4915(numbers)S4704 V1080(before)S1370(they)S1575(are)S1731(passed)S2031(to)S2140(the)S2294(kernel.)S2627(This)S2837(number)S3175(is)S(found)234 3273 A(under)229 3538 A3798(the)S3952(st_rdev)S4279(\256eld)S4489(\(see)S10 B4683(stat)S10 R4840(\(2\)\))S5023(of)S5138(the)S4824 V1080(\256le)S1238(on)S1367(the)S(boot)178 1519 A1726(\256le)S1884(system.)S2242(The)S2428(monitor)S(will)157 2775 A(look)178 2961 A3168(for)S3315(the)S3468(device)S3761(\256le)S3920(with)S4129(the)S4282(working)S4647(directory)S5041(set)S5183(to)S4944 V1080('/dev'.)S1400(If)S1497(it)S1582(can't)S1813(\256nd)S1998(the)S2150(device)S2442(name)S2689(then)S2891(it)S(will)157 2976 A3162(translate)S3532(names)S3817(like)S3996('ram',)S4274('fd1',)S('hd6',)243 4529 A('hd3a',)288 4800 A5116(and)S5064 V1080('sd2')S1312(to)S1415(what)S1636(it)S1717(itself)S1944(thinks)S2214(the)S2362(numbers)S(should)267 2733 A3025(be.)S5232 V1080(The)S1264(special)S1571(name)S10 B1816(bootdev)S10 R2184(is)S2278(translated)S2697(to)S2802(the)S2952(name)S3197(of)S3308(the)S3458(device)S(booted)273 3749 A4050(from,)S4299(like)S4478('fd0',)S4733(or)S('hd3',)243 4845 A5116(and)S5352 V1080(then)S1286(searched)S1672(for)S1823(in)S1934(/dev.)S10 B2190(Bootdev)S10 R2575(can't)S2810(be)S2938(translated)S3363(to)S3474(a)S3552(device)S3848(other)S4088(then)S4294(the)S4449(fd)S4565(or)S4681(hd)S4813(devices,)S5172(so)S5472 V1080(SCSI)S1318(devices)S1645(for)S1788(instance)S2143(must)S2363(be)S2483(named)S(explicitly.)405 2776 A5640 V9 R720(E)S722(EX)S780(XT)S848(TE)S906(EN)S964(NS)S1032(SI)S1084(IO)S1117(ON)S1185(NS)S1253(S)S5760 V10 R1080(A)S1178(few)S1355(extensions)S1804(have)S2019(been)S2234(made)S2477(to)S2580(this)S2751(program)S3118(for)S3262(kernel)S3540(hackers.)S3924(They)S4157(may)S4356(be)S4477(triggered)S4867(by)S(setting)268 4993 A5880 V1080(bits)S1250(in)S1353(the)S1501(\257ags)S1716(word)S1948(in)S2051(the)S2199(kernel)S2476(startup)S2775(code)S2990(\(the)S3172(mpx)S3375(\256le.\))S3613(The)S3795(\257ag)S3971(bits)S4141(are:)S6048 V(0x0001)300 1080 A1580(Call)S1773(kernel)S2050(in)S(386)150 2153 A2328(mode.)S6216 V(0x0002)300 1080 A1580(Do)S1728(not)S1881(make)S(space)224 2124 A2373(for)S2516(the)S2664(bss)S2817(areas)S3050(of)S3159(processes)S3570(other)S3802(then)S4000(the)S4148(kernel.)S6384 V(0x0004)300 1080 A1580(Use)S1762(the)S1910(stack)S2142(size)S2324(set)S2461(by)S10 B2586(chmem)S10 R2900(\(1\).)S6552 V(0x0008)300 1080 A1580(Load)S1812(MM,)S2040(FS,)S2202(etc.)S2370(into)S2551(extended)S2939(memory.)S6720 V(0x0010)300 1080 A1580(No)S1728(need)S1943(to)S2046(patch)S2289(process)S2616(sizes)S2837(into)S3018(the)S3166(kernel.)S6888 V(0x0020)300 1080 A1580(The)S1762(kernel)S2039(can)S2204(return)S2470(to)S2573(the)S2721(monitor)S3064(on)S3189(halt)S3365(or)S(reboot.)282 3474 A7056 V9 R720(M)S722(MS)S804(S-)S856(-D)S889(DO)S957(OS)S1025(S)S1100(M)S1102(MO)S1184(ON)S1252(NI)S1320(IT)S1353(TO)S1411(OR)S1479(R)S7176 V10 R1080(Minix-vmd)S1566(has)S1729(a)S1803(version)S2128(of)S2241(the)S2393(monitor)S2740(that)S2920(runs)S(under)229 3122 A3380(MS-DOS)S3790(to)S(boot)178 3897 A4104(a)S4178("DOS)S4450(virtual)S4742(disk".)S5029(It)S5120(is)S5216(a)S7296 V1080(simple)S1382(COM)S1645(program)S2020(that)S2205(interprets)S2620(an)S2749(MS-DOS)S3164(\256le)S3327(as)S3445(a)S3524(disk,)S3749(loads)S3994(a)S4072(Minix)S4350(kernel)S4635(from)S4864(the)S5020(active)S7416 V(partition)341 1080 A1453(in)S1563(the)S1718(same)S1957(way)S2158(as)S2275(the)S2431(BIOS)S2694(based)S2956(monitor,)S3332(and)S3510(executes)S3890(it)S3979(to)S4090(start)S4297(Minix.)S4625(All)S4787(the)S4943(monitor)S7536 V1080(commands)S1559(function)S1938(in)S2060(the)S2227(same)S2478(way,)S2715(except)S3022(for)S3184(the)S10 B3350(boot)S10 R3583(command,)S4047(it)S4146(can)S4329(only)S4550(load)S4766(Minix.)S5104(The)S7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(4)S8143 VEP%%Page: 5 5BP/slant 0 def/height 0 def480 V10 R720(MONITOR)S1199(\()S1241(8)S1299(\))S2696(Eighth)S(Edition)296 2989 A4648(MONITOR)S5127(\()S5169(8)S5227(\))S960 V1080(memory)S1442(that)S1620(MS-DOS)S2028(has)S2189(in)S2294(use)S2455(is)S2549(copied)S2844(out)S2999(of)S3110(the)S3260(way)S3455(when)S3700(Minix)S3972(takes)S4206(control,)S4543(and)S4715(is)S4809(put)S4965(back)S5183(in)S1080 V(place)213 1080 A1323(when)S1571(Minix)S1845(exits.)S2114(This)S2322(memory)S2686(shuf\257ing)S3072(also)S3263(happens)S3621(when)S3868(the)S4020(BIOS)S4279(disk)S4475(driver)S4745(makes)S5031(BIOS)S1200 V1080(calls,)S1315(slowing)S1658(things)S1928(to)S2031(a)S2101(crawl.)S2401(It)S2488(is)S2580(better)S2835(to)S2938(use)S3097(a)S3168(Minix)S3439(driver.)S3756(The)S3939(MS-DOS)S4346(monitor)S4690(does)S4900(not)S5054(work)S1320 V1080(if)S1167(there)S1394(is)S1486(a)S1556(memory)S1916(manager)S2288(active)S2554(that)S2730(runs)S2928(in)S(386)150 3031 A3206(protected)S3606(mode,)S3879(like)S(EMM386.)415 4055 A1488 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S1608 V10 B1080(chmem)S10 R1394(\(1\),)S10 B1562(stat)S10 R1719(\(2\),)S10 B1887(installboot)S10 R2340(\(8\),)S10 B2508(usage)S10 R2748(\(8\),)S10 B2916(boot)S10 R3106(\(8\).)S1776 V9 R720(B)S722(BU)S784(UG)S852(GS)S920(S)S1896 V10 R1080(The)S10 B1270(delay)S10 R1532(command)S(will)157 1961 A2151(hang)S2379(forever)S2704(on)S2837(the)S2993(original)S3340(IBM)S3564(PC)S3721(\(not)S3917(the)S4074(XT!\).)S4361(Not)S4546(that)S4731(it)S4821(matters,)S5177(as)S2016 V1080(everything)S1535(takes)S1767(forever)S2084(on)S2209(that)S(box.)175 2385 A2184 V1080(Reading)S1441(the)S1590(\256rst)S1773(sector)S2040(to)S(boot)178 2144 A2348(a)S(\257oppy)256 2419 A2701(\(e.g.)S10 B2931(boot)S3147(fd1)S10 R3287(\),)S3373(is)S(done)195 3467 A3689(using)S3933(whatever)S(\257oppy)256 4330 A4613(parameters)S(boot)178 5083 A2304 V1080(currently)S1469(has)S1628(available.)S2067(This)S(will)157 2271 A2453(probably)S2835(always)S3140(work.)S2472 V1080(The)S1262(two)S1438(forms)S1698(of)S10 B1807(delay)S10 R2061(are)S2210(a)S2280(crock.)S2640 V1080(The)S1262(word)S10 B1494(emssize)S10 R1844(comes)S2126(from)S2347(EMS,)S2604(that)S2780(has)S2939(to)S3042(do)S3167(with)S3371(expanded)S3781(memory,)S4166(not)S4319(extended)S4707(memory.)S2808 V9 R720(A)S722(AC)S790(CK)S852(KN)S920(NO)S988(OW)S1056(WL)S1144(LE)S1202(ED)S1260(DG)S1328(GM)S1396(ME)S1478(EN)S1536(NT)S1604(TS)S1662(S)S2928 V10 R1080(Guy)S1278(Helmer,)S1631(for)S1774(the)S(\257oppy)256 1922 A2203(sensing)S2529(code)S2744(that)S2920(somehow)S3330(disappeared)S3836(into)S4017(the)S(boot)178 4165 A4368(block.)S3096 V1080(Earl)S1276(Chew,)S1563(for)S1708(the)S1858(inspiration)S2315(his)S(ShoeLace)398 2459 A2884(package)S3241(provided,)S3650(unless)S3928(he)S4050(wants)S4312(to)S4418(\256le)S4575(a)S("look)219 4648 A4895(and)S5068(feel")S3216 V1080(suit)S1250(against)S1560(me,)S1733(then)S1931(I)S(will)157 1990 A2172(say)S2331(I)S2390(modeled)S2761(it)S2842(after)S3053(the)S3201(SunOS)S3511(ROM)S(boot)178 3765 A3968(monitor,)S4336(which)S4607(is)S4699(also)S4886(true.)S3384 V9 R720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S3504 V10 R1080(Kees)S1307(J.)S1396(Bot)S1566(\(kjb@cs.vu.nl\))S7903 V720(Page)S941(5)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -