And know that from the words of the Peri Etz Chaim there, it is explained that that which the sages said, "All may ascend for the count of seven," refers to the seventh only. And he wrote the reason there: because it is smaller in stature than all of them, see there. And in the Rivash (siman 321), he wrote in the name of our teacher Tam that he may ascend for the count of seven, and only for maftir when there are two Sifrei Torah, where only one person reads from the second—a minor should not ascend. See there. And I saw one who wrote in his name that for the count of seven he does not ascend, only for maftir (Magen Avraham, subsection 6). And I am astonished, for this is the wording of the Rivash there: And for this reason the Manhig wrote in the name of our teacher Tam: that on a day when there are two scrolls, where the maftir reads that which is the obligation of the day—we do not have a minor read maftir. And even though we hold that a minor ascends for the count of seven, nevertheless it implies that for that which is the obligation of the day, where only one reads—it must be an adult. However, for the count of seven, a minor ascends when the others are adults. Thus far his words; behold, it is explicitly like our words. And in the Rokeach (siman 53) he wrote: And a minor who reads maftir in the Prophets—shall not read fewer than twenty-one verses...—implying that only for maftir does the minor ascend (and so wrote the Magen Avraham there in his name). But it is not so, for later (siman 56) he wrote: A minor does not ascend for the count of three, but for the count of seven—he ascends. Thus far his words. And it must be said that what he wrote previously was because it is the custom to call a minor for maftir. And so is our custom now, that the minor does not ascend except for maftir. But from the essential law, we have not seen any of the poskim who would prevent the minor from ascending for the count of seven, except for the Arizal, of blessed memory, who did not permit it except for the seventh, as I have written. However, for the count of three, several of the poskim hold that he does not ascend, as I have written. And certainly so it is also on Rosh Chodesh, Yom Tov, and Yom Kippur, and only on Shabbat when there are seven—he ascends. And according to the Arizal, only for the seventh. And so when the maftir is in a second Sefer Torah—the minor does not ascend, as I have written in the name of the Rivash. And in the Yerushalmi of Megillah (chapter four, halacha 3) it is stated that a slave ascends for the count of seven, see there. And our teacher, the Rema, wrote that his law is like a woman, meaning that ab initio he should not ascend because of the honor of the congregation. But if his mother is from Israel—he is permitted to ascend ab initio, for he is a complete Israelite, as he follows his mother. He further wrote that a mamzer is permitted to ascend to the Sefer Torah. And it is forbidden to read with an uncovered head, meaning if not with a complete covering. And even if he has a light covering, as in prayer where one needs either a hat or a tallit on his head, and as I have written in siman 91, section 6, see there. He further wrote that there is no prohibition to call an honored and wealthy am ha'aretz and a great man of the generation before a Torah scholar. For this is not a disgrace to the Torah scholar, but rather honor for the Torah, which is honored by great men. Thus far his words. And it is understood that this is when necessity leads to this. And above in siman 137, the order of the aliyot is explained, see there. (See Magen Avraham, subsection 8, and according to what I have written it works out well. Examine and you will find it simple.)
ודע דמדברי הפרי עץ חיים שם מבואר דזה שאמרו חכמים: "הכל עולים למניין שבעה" - זהו בהשביעי בלבד. וכתב שם הטעם: מפני שהיא קטנה במעלה מכולם, עיין שם. ובריב"ש (סימן שכ"א) כתב בשם רבנו תם דעולה למניין שבעה, ורק למפטיר כשיש שני ספר תורה, דאין קורא בהשנייה אלא אחד - אין לקטן לעלות. עיין שם. וראיתי מי שכתב בשמו דלמניין שבעה אינו עולה רק למפטיר (מגן אברהם סעיף קטן ו'). ותמיהני, דזה לשון הריב"ש שם: ומטעם זה כתב המנהיג בשם רבנו תם: דביום שיש שני ספרים, שהמפטיר קורא במה שהוא חובה ליום - אין מפטירין בו בקטן. ואף על גב דקיימא לן דקטן עולה למניין שבעה, מכל מקום משמע דמה שהוא חובה ליום, שאינו קורא אלא אחד - דצריך שיהיה גדול. אלא שלמניין שבעה עולה קטן כשאחרים גדולים. עד כאן לשונו, הרי להדיא כדברינו. וברוקח (סימן נ"ג) כתב: וקטן המפטיר בנביאים - לא יקרא פחות מעשרים ואחד פסוקים… - משמע דרק למפטיר הקטן עולה (וכן כתב המגן אברהם שם בשמו). אבל אינו כן, דלקמן (סימן נ"ו) כתב: קטן אינו עולה למניין שלושה, אבל למניין שבעה - עולה. עד כאן לשונו. וצריך לומר דזה שכתב מקודם, משום דדרך לקרוא קטן למפטיר. וכן מנהגנו עתה שאין הקטן עולה רק למפטיר. ומעיקר דינא לא ראינו לאחד מן הפוסקים שימנע את הקטן מלעלות למניין שבעה, זולת האריז"ל שלא התירו רק לשביעי כמו שכתבתי. ואמנם למניין שלושה כמה מהפוסקים סבירא ליה דאינו עולה כמו שכתבתי. ובוודאי דכן הוא גם בראש חודש ויום טוב ויום הכיפורים, ורק בשבת דיש שבעה - עולה. ולהאריז"ל רק לשביעי. וכן כשהמפטיר בספר תורה שנייה - אין הקטן עולה, כמו שכתבתי בשם הריב"ש. ובירושלמי דמגילה (פרק רביעי הלכה ג') איתא דעבד עולה למניין שבעה, עיין שם. וכתב רבינו הרמ"א דדינו כאשה, כלומר שלכתחילה לא יעלה מפני כבוד הציבור. אבל אם אמו מישראל - מותר לו לעלות לכתחילה, דישראל גמור הוא, דהולך אחר אמו. עוד כתב דממזר מותר לעלות לספר תורה. ואסור לקרות בראש מגולה, כלומר אם לא בכיסוי גמור. ואפילו יש לו כיסוי קל, כמו בתפילה דצריך או כובע או טלית על ראשו, וכמו שכתבתי בסימן צ"א סעיף ו', עיין שם. עוד כתב דאין איסור לקרא עם הארץ נכבד ועשיר וגדול הדור לפני תלמיד חכם. כי אין זה בזיון לתלמיד חכם, רק כבוד לתורה שמתכבדת באנשים גדולים. עד כאן לשונו. ומובן שזהו כשההכרח מביא לידי כך. ולעיל בסימן קל"ז מבואר סדר העליות, עיין שם. (עיין מגן אברהם סעיף קטן ח', ולפי מה שכתבתי אתי שפיר. ודייק ותמצא קל.)